Description
Issue:
Variable "z" seems to be bound to the ZeppelinContext
Now "z" can be assigned with any value, e.g.
%pyspark z=[]
This leads to
Traceback (most recent call last): File "/var/folders/sf/prpc_v7d1vbdjz61kshfh9x00000gp/T/zeppelin_pyspark-6677949145168225238.py", line 344, in <module> exec(code) File "<stdin>", line 3, in <module> AttributeError: 'list' object has no attribute '_displayhook' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/var/folders/sf/prpc_v7d1vbdjz61kshfh9x00000gp/T/zeppelin_pyspark-6677949145168225238.py", line 346, in <module> raise Exception(traceback.format_exc()) Exception: Traceback (most recent call last): File "/var/folders/sf/prpc_v7d1vbdjz61kshfh9x00000gp/T/zeppelin_pyspark-6677949145168225238.py", line 344, in <module> exec(code) File "<stdin>", line 3, in <module> AttributeError: 'list' object has no attribute '_displayhook'
in every cell that is executed later on.
Since z is a very common variable in math and statistics science, it should not be used for ZeppelinContext.
Propsal (use double underscore like in python for private stuff):
__z
or better
__zeppelinContext
Environment:
Downloaded http://apache.mirror.digionline.de/zeppelin/zeppelin-0.7.0/zeppelin-0.7.0-bin-netinst.tgz and installed spark, python, sh, md and angular interpreter
Started via bin/zeppelin.sh