GitHub user astroshim opened a pull request: https://github.com/apache/zeppelin/pull/1924
[Pyspark] checking nhooks count. ### What is this PR for? if the `nhooks` value is `0` in this(https://github.com/apache/zeppelin/blob/master/spark/src/main/resources/python/zeppelin_pyspark.py#L324) line, python code will run twice. ### What type of PR is it? Bug Fix | Improvement ### How should this be tested? - comment https://github.com/apache/zeppelin/blob/master/spark/src/main/java/org/apache/zeppelin/spark/PySparkInterpreter.java#L114 line and build. - run pyspark code(eg, `print("hi")`), then you can see it run twice. ### 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 fix/pythoncode Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/1924.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 #1924 ---- commit 1c50c6d367e5db935c6b3ae2b06af242c30b91f4 Author: astroshim <hss...@zepl.com> Date: 2017-01-20T23:21:45Z add checking nhooks count ---- --- 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. ---