You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have always shut down jupyter applications by hitting Ctrl-C twice. For a long time this seemed to work fine, however recently I've noticed that doing so so results is this error:
Traceback (most recent call last):
File "/home/ian/mambaforge/envs/micro/bin/jupyter-lab", line 10, in <module>
sys.exit(main())
File "/home/ian/mambaforge/envs/micro/lib/python3.8/site-packages/jupyter_server/extension/application.py", line 520, in launch_instance
serverapp.start()
File "/home/ian/mambaforge/envs/micro/lib/python3.8/site-packages/jupyter_server/serverapp.py", line 2101, in start
self.start_ioloop()
File "/home/ian/mambaforge/envs/micro/lib/python3.8/site-packages/jupyter_server/serverapp.py", line 2093, in start_ioloop
self._cleanup()
File "/home/ian/mambaforge/envs/micro/lib/python3.8/site-packages/jupyter_server/serverapp.py", line 2078, in _cleanup
self.cleanup_kernels()
File "/home/ian/mambaforge/envs/micro/lib/python3.8/site-packages/jupyter_server/serverapp.py", line 1847, in cleanup_kernels
run_sync(self.kernel_manager.shutdown_all())
File "/home/ian/mambaforge/envs/micro/lib/python3.8/site-packages/jupyter_server/utils.py", line 228, in run_sync
return wrapped()
File "/home/ian/mambaforge/envs/micro/lib/python3.8/site-packages/jupyter_server/utils.py", line 227, in wrapped
return result
UnboundLocalError: local variable 'result' referenced before assignment
Reproduce
I'm not sure the exact situation that reproduces this. Just opening jupyterlab is inadequate, but this tends to happen to me after a day of work with multiple open notebooks. However, it is clear that this is a risk as there is an if without a corresponding else in the code:
I have always shut down jupyter applications by hitting
Ctrl-C
twice. For a long time this seemed to work fine, however recently I've noticed that doing so so results is this error:Reproduce
I'm not sure the exact situation that reproduces this. Just opening jupyterlab is inadequate, but this tends to happen to me after a day of work with multiple open notebooks. However, it is clear that this is a risk as there is an
if
without a correspondingelse
in the code:jupyter_server/jupyter_server/utils.py
Lines 222 to 227 in 36218db
Environment:
conda list | grep jupyter
The text was updated successfully, but these errors were encountered: