jupyterlite / xeus

JupyterLite loader for Xeus kernels
https://jupyterlite-xeus.readthedocs.io
BSD 3-Clause "New" or "Revised" License
22 stars 11 forks source link

Show a warning if there is no kernel installed #32

Closed martinRenou closed 8 months ago

martinRenou commented 8 months ago

If there is no kernel installed, the extension fails with:

   File "/home/runner/micromamba/envs/build-env/lib/python3.12/pathlib.py", line 1056, in iterdir
    for name in os.listdir(self):
                ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp2ay0_eyo/env/envs/xeus-env/share/jupyter/kernels'

It would be nice to have a nice user-friendly message instead.

martinRenou commented 8 months ago

Fixed in https://github.com/jupyterlite/xeus/pull/37