Open
Description
Description
When starting jupyter lab from anaconda prompt on windows 11, the server crashes upon started.
Here is the TraceBack...
[I 2022-01-25 14:16:11.314 ServerApp] Kernel started: f152645f-09d3-46a0-879a-da83909cb934
[I 2022-01-25 14:16:11.316 ServerApp] Kernel started: 46cf8055-e711-47d1-8e33-9c971e8da350
[I 2022-01-25 14:16:11.317 ServerApp] Kernel started: 2183fd5a-ac7b-4b40-bbe4-2fda4851fa9a
Traceback (most recent call last):
File "G:\anaconda3\Scripts\jupyter-lab-script.py", line 9, in <module>
sys.exit(main())
File "G:\anaconda3\lib\site-packages\jupyter_server\extension\application.py", line 577, in launch_instance
File "G:\anaconda3\lib\site-packages\jupyter_server\extension\application.py", line 577, in launch_instance
File "G:\anaconda3\lib\site-packages\jupyter_server\extension\application.py", line 577, in launch_instance
serverapp.start()
File "G:\anaconda3\lib\site-packages\jupyter_server\serverapp.py", line 2668, in start
self.start_ioloop()
File "G:\anaconda3\lib\site-packages\jupyter_server\serverapp.py", line 2654, in start_ioloop
self.io_loop.start()
File "G:\anaconda3\lib\site-packages\tornado\platform\asyncio.py", line 199, in start
self.asyncio_loop.run_forever()
File "G:\anaconda3\lib\asyncio\base_events.py", line 596, in run_forever
self._run_once()
File "G:\anaconda3\lib\asyncio\base_events.py", line 1875, in _run_once
handle = self._ready.popleft()
IndexError: pop from an empty deque
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
Reproduce
This happens randomly. Often, it will run when I try a few times.
- open anaconda prompt
- type and run 'jupyter lab'
- when starting, exception it thrown (see details above)
Context
- Windows 11 - 10.0.22000 Build 22000
- Chrome Version 97.0.4692.99 (Official Build) (64-bit)
- JupyterLab version: Version 3.2.8
NOTE: Window defender running (no other anti-malware/anti-virus software running)
As part of the startup process, chrome does launch -- but the server crashes, and then chrome popup warning about server connection appears.
ALSO -- here is a list of the installed jypyter lab extensions (and I've completed an 'update all extension')
JupyterLab v3.2.8
G:\anaconda3\share\jupyter\labextensions
jupyter-matplotlib v0.10.5 enabled ok
@jupyter-widgets/jupyterlab-manager v3.0.1 enabled ok (python, jupyterlab_widgets)
Other labextensions (built into JupyterLab)
app dir: G:\anaconda3\share\jupyter\lab
Activity
krassowski commentedon Jan 26, 2022
Thanks for opening this issue @prof-tcsmith. Two questions:
jupyter_server
version?You can find those by running
jupyter troubleshoot
(feel welcome to paste the entire output of it).prof-tcsmith commentedon Jan 26, 2022
Python version 3.9.9
And, here are the jupyter related installs/versions...
Here is the entire output from troubleshoot...
0not commentedon Jan 31, 2022
I am having the same issue on Windows 10 with JupyterLab 3.2.5. Nothing has changed in my environment (no Windows updates and no Anaconda updates) from when this worked until now. It has only been a few days, during which time the computer was not used. When I run
jupyter lab
, a new browser tab opens with my old session (a few different notebooks already open). Jupyter Lab then crashes with the following messages:If I then start JupyterLab again, everything works fine. (However, when I restart JupyterLab, my old session starts up again and the error returns.) The biggest difference I can see is that on the second run of
jupyter lab
I am greated with the "Launcher" tab and not my previous notebooks. With that, I get the following printed messages:The following is the output of
jupyter troubleshoot
:krassowski commentedon Jan 31, 2022
Would you mind checking a few times if it also happens if starting
jupyter nbclassic
so we can narrow it down to either the server component or the JupyterLab codebase?0not commentedon Jan 31, 2022
I could not reproduce the crash with
jupyter nbclassic
after about 7 tries.I noticed that the crash only occurred when my "default" profile was loaded (a few tabs from a previous session). The crash does not happen when only the "Launcher" tab opens on JupyterLab launch. If I delete the default
.jupyterlab-workspace
under%USERPROFILE%\.jupyter\lab\workspaces
then the crash does not occur. If I restore the default profile, then the crash starts to happen again. I also noticed this line immediately before the traceback when usingjupyter lab --debug
:My default
.jupyterlab-workspace
is included below (with some potentially sensitive paths redacted). The only thing I can think of is something weird happening with Dropbox. I'm the only one accessing these files/directories on Dropbox (and only from this computer). I should mention again that this setup has worked well for months, and indeed still works well if I delete this default workspace file.The following is a workspace file that doesn't cause the crash:
prof-tcsmith commentedon Feb 4, 2022
I can confirm that this error is also occurring with python 3.9.10, and Jupyter lab 3.2.8.
I just updated today, and the problem detailed above continues to happen at random intervals.
masterdesky commentedon Feb 10, 2022
It's still happening randomly on Python 3.9.10 and jupyterlab 3.2.9, but only on Windows 10, using miniconda and conda-forge.
JaredDavis22 commentedon Feb 11, 2022
Fails for me as well. I tried 4 or 5 times to start up the server with "jupyter lab." I was able to start it by quickly closing the initial browser window, waiting 10 seconds then starting the browser.
85 remaining items