(Jun-12-2018, 09:16 PM)Larz60+ Wrote: Seems it be easier, and more logical to get the code working outside of Jupyter notebook first, and then adding it back.
I am just curious - why? I use Jupyter all the time, locally and remotely - without a glitch. There are also free Azure notebooks
I am not sure what your problem is, but if your computer receives dynamic IP, Jupyter session may become un-available - it often happens to me when I open session in the office, and then try to access it at home. You must kill the old session and start a new one.
I usually open it in "no-browser mode" and then open the produced link in a browser (I work on Linux)
Output:>jupyter-notebook --no-browser --ip=$( hostname -I | awk '{print $1}' )
[I 00:40:04.786 NotebookApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
[I 00:40:05.277 NotebookApp] Serving notebooks from local directory: /home/mark
[I 00:40:05.278 NotebookApp] 0 active kernels
[I 00:40:05.278 NotebookApp] The Jupyter Notebook is running at:
[I 00:40:05.278 NotebookApp] http://10.0.0.8:8888/?token=27296b15eb9c22614ecb6d8716cffa7a4f7d41e868d2d21a
[I 00:40:05.278 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 00:40:05.279 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://10.0.0.8:8888/?token=27296b15eb9c22614ecb6d8716cffa7a4f7d41e868d2d21a
I click the link at the bottom - and voila! - Jupyter session is ready
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.