joouha / euporie

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

Kernel died before replying to kernel_info #75

Closed librarianmage closed 11 months ago

librarianmage commented 1 year ago

Every time I try using the python kernel, it fails with the above RuntimeError.

If it is relevant, I have installed euporie using pipx and the dev branch.

librarianmage commented 1 year ago

The sage kernel, by comparison, has always worked

JustinStitt commented 1 year ago

I am having the same issue.

JustinStitt commented 1 year ago

@librarianmage Resolved with $ pip install ipykernel

joouha commented 1 year ago

This closed issue shows how to fix the problem:

This looks like your ipykernel install is probably a bit broken. Try:

Re-installing or updating ipykernel:

   pip install --upgrade ipykernel

Re-registering the ipython kernel:

   python -m ipykernel install --user
joouha commented 1 year ago

There seem to be quite a few people encountering this - I'm wondering whether when euporie is installed in a virtual environment, the default ipykernel kernelspec means that the kernel gets launched from inside euporie's virtalenv, which fails.

I'll do some testing

joouha commented 1 year ago

I think this is caused by an issue in jupyter_client (although it can be worked-around using the steps above). I've reported it upstream.

ghost commented 1 year ago

This closed issue shows how to fix the problem:

This looks like your ipykernel install is probably a bit broken. Try: Re-installing or updating ipykernel:

pip install --upgrade ipykernel

Re-registering the ipython kernel:

python -m ipykernel install --user

I had this problem and these steps fixed it.

I think they should be put in the install instructions in the README until the issue is fixed.

joouha commented 1 year ago

I think they should be put in the install instructions in the README until the issue is fixed.

This is a good idea - I'll add something