jupyter
jupyter copied to clipboard
Searching for program: No such file or directory, jupyter
I am running jupyter using
/nix/store/8f260b2k30m76pagfhfr75x3060zwzgq-ihaskell-with-packages/bin/ihaskell-notebook
So there is no jupyter binary.
jupyter-run-repl gives
apply: Searching for program: No such file or directory, jupyter
I am used to EIN where I can just connect to the running kernel using the token it has provided.
ein:notebooklist-login
What should I do?
Please see https://github.com/dzop/emacs-jupyter/issues/200#issuecomment-554334900. You need jupyter installed and on Emacs exec-path. Then install the IHaskel kernel as described in the docs.
As @fleimgruber says, you will need the jupyter command line programs available since this package relies on them.
Ideally someone would write a Nix recipe for this package that ensures those programs are propagated to the user's environment or modifies the following line
https://github.com/dzop/emacs-jupyter/blob/d4b06c54d32131b90351b6a83cfe80ee4a9f0cdd/jupyter-env.el#L52
by replacing "jupyter" with the appropriate path in the Nix store.
The package ihaskell from nixpkgs provides jupyter (there are also others, but this is the one I use).
@idontgetoutmuch Since you are using a notebook you should be able to launch a kernel REPL using jupyter-run-server-repl. See also the command jupyter-server-list-kernels (which is the entry point for working with kernels behind a Jupyter notebook) and the commands associated with the major-mode jupyter-server-kernel-list-mode.
In an Org mode source block you should be able to specify something like :session /jpy:localhost#8888:sess1 where sess1 will be the session name of a kernel launched on the notebook server at http://localhost:8888. For https you use /jpys:.
I have a similar problem, jupyter is available in the shell, python is present on the exec path (which contains jupyter), but it still doesn't pick it up.