zjffdu commented on a change in pull request #3419: [ZEPPELIN-4265]. Support 
more types of output for IPythonInterpreter
URL: https://github.com/apache/zeppelin/pull/3419#discussion_r310420521
 
 

 ##########
 File path: python/src/main/resources/grpc/python/ipython_client.py
 ##########
 @@ -23,14 +23,23 @@
 def run():
     channel = grpc.insecure_channel('localhost:50053')
     stub = ipython_pb2_grpc.IPythonStub(channel)
-    response = stub.execute(ipython_pb2.ExecuteRequest(code="import time\nfor 
i in range(1,4):\n\ttime.sleep(1)\n\tprint(i)\n" +
-                                                            "%matplotlib 
inline\nimport matplotlib.pyplot as 
plt\ndata=[1,1,2,3,4]\nplt.figure()\nplt.plot(data)"))
+    response = stub.execute(ipython_pb2.ExecuteRequest(code="""
+    
+from bokeh.io import output_notebook
+import bkzep
+output_notebook(notebook_type='zeppelin')
+
+import hvplot.streamz
+from streamz.dataframe import Random
 
 Review comment:
   This is just for my local test, I will revert these changes

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to