rjurney / Agile_Data_Code_2

Code for Agile Data Science 2.0, O'Reilly 2017, Second Edition
http://bit.ly/agile_data_science
MIT License
456 stars 306 forks source link

Unable to run code inside IPython Notebook #79

Closed sonhmai closed 5 years ago

sonhmai commented 6 years ago

I was able to connect to Jupyter notebook through :5000 on my computer (forwarded to EC2). However, when I opened the Introduction to PySpark notebook, the status is constantly switched between 'Connected' and 'Connecting to Kernel' and I can't run any code.

Below is the log from the notebook server on EC2.

[I 10:20:06.686 NotebookApp] Adapting to protocol v5.1 for kernel 62827ece-131c-4bb5-9d8b-575b22592937 [E 10:20:06.686 NotebookApp] Uncaught exception in /api/kernels/62827ece-131c-4bb5-9d8b-575b22592937/channels Traceback (most recent call last): File "/home/ubuntu/anaconda/lib/python3.5/site-packages/tornado/websocket.py", line 498, in _run_callback result = callback(*args, **kwargs) File "/home/ubuntu/anaconda/lib/python3.5/site-packages/notebook/services/kernels/handlers.py", line 262, in open super(ZMQChannelsHandler, self).open() File "/home/ubuntu/anaconda/lib/python3.5/site-packages/notebook/base/zmqhandlers.py", line 176, in open self.send_ping, self.ping_interval, io_loop=loop, TypeError: init() got an unexpected keyword argument 'io_loop'

rjurney commented 5 years ago

Sorry for the late reply, but this should work again?