I had problems launching the cadabra kernel in jupyter notebook, then I used it in WSL with Ubuntu 20.04, the terminal writes the following errors:
[I 16:58:47.156 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/dist-packages/cadabra2_jupyter/__main__.py", line 1, in <module>
from ipykernel.kernelapp import IPKernelApp
ModuleNotFoundError: No module named 'ipykernel'
[I 16:58:50.187 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/dist-packages/cadabra2_jupyter/__main__.py", line 1, in <module>
from ipykernel.kernelapp import IPKernelApp
ModuleNotFoundError: No module named 'ipykernel'
[I 16:58:53.223 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/dist-packages/cadabra2_jupyter/__main__.py", line 1, in <module>
from ipykernel.kernelapp import IPKernelApp
ModuleNotFoundError: No module named 'ipykernel'
[I 16:58:56.255 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/dist-packages/cadabra2_jupyter/__main__.py", line 1, in <module>
from ipykernel.kernelapp import IPKernelApp
ModuleNotFoundError: No module named 'ipykernel'
[W 16:58:59.286 NotebookApp] KernelRestarter: restart failed
[W 16:58:59.287 NotebookApp] Kernel 223785de-f6fd-410f-9f0f-c335a46eeae2 died, removing from map.
[W 16:59:44.491 NotebookApp] Timeout waiting for kernel_info reply from 223785de-f6fd-410f-9f0f-c335a46eeae2
[E 16:59:44.496 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 223785de-f6fd-410f-9f0f-c335a46eeae2)
[W 16:59:46.527 NotebookApp] 404 GET /api/kernels/223785de-f6fd-410f-9f0f-c335a46eeae2/channels?session_id=54b01b8891fc4a6db4ab414b0d1bdbaa (127.0.0.1): Kernel does not exist: 223785de-f6fd-410f-9f0f-c335a46eeae2
[W 16:59:46.600 NotebookApp] 404 GET /api/kernels/223785de-f6fd-410f-9f0f-c335a46eeae2/channels?session_id=54b01b8891fc4a6db4ab414b0d1bdbaa (127.0.0.1) 78.57ms referer=None
[W 16:59:49.523 NotebookApp] Replacing stale connection: 223785de-f6fd-410f-9f0f-c335a46eeae2:54b01b8891fc4a6db4ab414b0d1bdbaa
I tried to reinstall ipykernel, but conda says that it is ok:
conda install ipykernel
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.