jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.79k stars 5.01k forks source link

jupyter notebook running issues #5959

Open arahim230 opened 3 years ago

arahim230 commented 3 years ago

I am running some python code using a jupyter notebook. The notebook should take a couple of days to finish. After a couple of running hours, a message is shown: "Error rendering Jupyter widget: missing widget manager." The hourglass at the chrome tab keeps on running, but the * symbol next to the cell no longer appears, only [ ] is appeared. I have two questions: 1. is the notebook still running? 2. How can I fix this?

kevin-bates commented 3 years ago

Hi @arahim230 - I can't speak to the widget portion of this, but you should see some indication if the kernel (processing your notebook cells) died in the notebook console's output. Typically, this would manifest itself in the form of a series of automatic restarts when the server detects the kernel process has stopped responding. You can also look for the kernel process (this will be a python process if using the python kernel) using your platform's process command (e.g., ps on *nix platforms). The kernel process's parent should be the PID of the notebook server. Of course, this only indicates if the process is still "running", but there could be issues within the process that are preventing its actual processing of cells.

If your front-end has only lost connection with the kernel, you might try reconnecting to the kernel. The option to do that is located in the kernel tab. I don't know if this action would re-enable the widget manager that went missing.