Python Forum
Jupyter error - 'The kernel appears to have died, it will restart automatically'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jupyter error - 'The kernel appears to have died, it will restart automatically'
#3
(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.
Reply


Messages In This Thread
RE: Jupyter error - 'The kernel appears to have died, it will restart automatically' - by volcano63 - Jun-12-2018, 09:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error handler appears to be turned off. How do I turn it back on? jpotter0 0 614 Nov-26-2022, 11:44 AM
Last Post: jpotter0
  Joining two jupyter notebooks and getting an error! Led_Zeppelin 1 1,195 Oct-20-2022, 04:28 PM
Last Post: deanhystad
  Setting up new Python kernel for JupyterLab Desktop on M1 Mac daler6 0 1,297 Jun-20-2022, 03:45 AM
Last Post: daler6
  Jupyter kernel restarts russellm10 0 1,518 Sep-14-2021, 04:24 AM
Last Post: russellm10
  Problem: Restart kernel onPydev console when trying to install a python package poppy2020 1 7,799 Nov-25-2020, 06:13 PM
Last Post: Larz60+
  How a Mac OS software can restart itself with admin permission in Python 3.7? Formationgrowthhacking 0 1,820 Sep-03-2020, 05:29 PM
Last Post: Formationgrowthhacking
  Using a button to kill and restart a script duckredbeard 3 3,384 Sep-01-2020, 12:53 AM
Last Post: duckredbeard
  How to convert what appears to be a JSON file to CSV NewBeie 4 2,584 Aug-28-2020, 04:45 PM
Last Post: Larz60+
  Print a certain string only the first time it appears in a test file buttercup 5 2,875 Jul-23-2020, 01:30 PM
Last Post: palladium
  fileinput package appears to be zeroing files rexrf 0 1,509 Jul-01-2020, 06:05 PM
Last Post: rexrf

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020