Closed akhmerov closed 4 years ago
Hi @akhmerov - this is a fairly well-known issue inherent in the IPython/ipykernel machinery and python scoping. There are several instances of this (with varying filenames involved), but here's the "most root" issue I find: https://github.com/ipython/ipykernel/issues/112.
I would suggest "namespacing" local files with a common prefix or something of that sort.
Since this isn't related to this repository (more of a kernel issue), I'm going ahead and closing the issue here.
It seems that jupyter will fail to launch new kernels if there's a name collision with e.g. a module in stdlib in the notebook folder. To observe this behavior:
sudo docker run --rm -it -p 8888:8888 jupyter/base-notebook
email.py
in the notebook folder e.g. by executing!touch email.py
in a new cell.In local logs I see the following
traceback
``` Traceback (most recent call last): File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/opt/conda/lib/python3.8/site-packages/ipykernel_launcher.py", line 15, inI believe that this behavior us confusing to the users and undesirable.
Apologies if this is a wrong repository for the issue and/or if the issue has already been reported.