gregsexton / gregsexton/ob-ipython
Error executing Jupyter command
- Dominant language
- Emacs Lisp
- Stars
- 742
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for the excellent package!
When attempting to execute an org source block the minibuffer shows the following:
`There was a fatal error trying to process the request. See *ob-ipython-debug*`
The debug output contains:
`Error executing Jupyter command '/home/[user]/.emacs.d/packages/ob-ipython/client.py': [Errno 2] No such file or directory`
I ran it with EDebug to get the command line passed to jupyter and tried calling it directly from the command line with the following:
`/usr/bin/jupyter -- ~/.emacs.d/packages/ob-ipython/client.py --conn-file default --execute <<< "import numpy as np"`
But get the exact same error message.
If I incrementally run client.py in a jupyter console (excluding the argparse stuff) it all works as expected so I'm unable to work out where it's going wrong.
I have also tried with jupyter, notebook, core, client and console all at version 5.0.0 in a virtualenv with the same result.
Edit:
Executing the org source block correctly starts the kernel and places the config at `/run/user/1000/jupyter/emacs-default.json`
If I call the same command as above and provide the absolute path to the config file it still gives the same error.
Edit 2:
It seems that jupyter itself can't run the file which I guess is an oversight by me. If I change `python-shell-interpreter` to python it works fine however this breaks functionality with other packages like elpy. For now I can just set it buffer-local but it would be good for `ob-ipython--get-python` to handle this automatically.
Any ideas?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.