joouha / euporie

Jupyter notebooks in the terminal
https://euporie.readthedocs.io
MIT License
1.54k stars 36 forks source link

Euporie crashes upon loading notebook #111

Open fonnesbeck opened 1 month ago

fonnesbeck commented 1 month ago

When I run euporie-notebook with an arbitrary notebook, it crashes almost right away. Unfortunately, the exceptions do not stay displayed in my terminal long enough for me to report them! I do see a message saying that I do not have kernels installed (I do have several installed that I use in JupyterLab and VSCode all the time), then there are Python errors that stay on the screen for only a few seconds, followed by a frozen notebook with an empty black box, which persists. It looks like this:

image

If you can provide guidance on recovering some of these exceptions/error messages I'd be happy to help debug this.

I am running the euporie version 2.8.2 on Fedora Linux and Python 3.12.

joouha commented 1 month ago

Hi,

Thanks for reporting this.

Most expections will get logged if debug logging is turned on. You can try enabling debug logging by launching euporie with the --log-level=debug --log-file=log.log flags:

$ euporie-notebook --log-level=debug --log-file=log.log ./my-notebook-file.ipynb

This will produce a log text file (log.log) which you can check for exceptions.

I have a few more questions which might help us figure this out:

Thanks