GitHub user astroshim opened a pull request:

    https://github.com/apache/zeppelin/pull/1985

    [ZEPPELIN-2075] Can't stop infinite `while` statement in pyspark 
Interpreter.

    ### What is this PR for?
    If following code runs with Pyspark Interpreter, there is no way to cancel 
except Zeppelin Server restart.
    ```
    %spark.pyspark
    import time
    
    while True:
        time.sleep(1)
        print("running..")
    ```
    
    ### What type of PR is it?
    Bug Fix | Improvement
    
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-2075
    
    
    ### How should this be tested?
    Run above code with Pyspark Interpreter and try to cancel.
    
    
    ### Screenshots (if appropriate)
    - before
    ![pyspark 
before](https://cloud.githubusercontent.com/assets/3348133/22696141/615c1206-ed90-11e6-9bbb-339ecdec73fc.gif)
    
    
    - after
    ![pyspark 
after](https://cloud.githubusercontent.com/assets/3348133/22696168/70899172-ed90-11e6-99e1-342eb4094b2c.gif)
    
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no
    * Does this needs documentation? no


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/astroshim/zeppelin ZEPPELIN-2075

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1985.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1985
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to