jupyter icon indicating copy to clipboard operation
jupyter copied to clipboard

Searching for program: No such file or directory, jupyter

Open idontgetoutmuch opened this issue 6 years ago • 5 comments

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?

idontgetoutmuch avatar Oct 23 '19 14:10 idontgetoutmuch

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.

fleimgruber avatar Nov 15 '19 12:11 fleimgruber

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.

nnicandro avatar Mar 06 '20 21:03 nnicandro

The package ihaskell from nixpkgs provides jupyter (there are also others, but this is the one I use).

georgewsinger avatar Mar 11 '20 14:03 georgewsinger

@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:.

nnicandro avatar Nov 21 '21 01:11 nnicandro

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.

IllustratedMan-code avatar Feb 10 '23 14:02 IllustratedMan-code