Take care of comment
Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/cef7a616 Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/cef7a616 Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/cef7a616 Branch: refs/heads/master Commit: cef7a61626e99d79b7fa8334305a164d07400367 Parents: fe75baf Author: Lee moon soo <[email protected]> Authored: Thu Mar 12 11:39:17 2015 +0900 Committer: Lee moon soo <[email protected]> Committed: Thu Mar 12 11:39:17 2015 +0900 ---------------------------------------------------------------------- spark/src/main/resources/python/zeppelin_pyspark.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/cef7a616/spark/src/main/resources/python/zeppelin_pyspark.py ---------------------------------------------------------------------- diff --git a/spark/src/main/resources/python/zeppelin_pyspark.py b/spark/src/main/resources/python/zeppelin_pyspark.py index 5c4529d..5d956d9 100644 --- a/spark/src/main/resources/python/zeppelin_pyspark.py +++ b/spark/src/main/resources/python/zeppelin_pyspark.py @@ -67,6 +67,10 @@ while True : if s == None or len(s.strip()) == 0: continue + # skip comment + if s.strip().startswith("#"): + continue + if single == None: single = s else:
