Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ocaml Jupyter installation instruction incomplete #613

Open
emiruz opened this issue May 12, 2022 · 3 comments
Open

Ocaml Jupyter installation instruction incomplete #613

emiruz opened this issue May 12, 2022 · 3 comments
Labels

Comments

@emiruz
Copy link

emiruz commented May 12, 2022

Installation instructions here: https://ocaml.xyz/tutorial/introduction.html

These lines:

pip install jupyter
opam install jupyter
jupyter kernelspec install --name ocaml-jupyter "$(opam config var share)/jupyter"

the opam jupyter install wont create the share/jupyter directory by itself. You have to run:

ocaml-jupyter-opam-genspec

I think the jupyter kernelspec command may also be missing a parameter. Here is some corrected code sourced from https://akabe.github.io/ocaml-jupyter/:

pip install jupyter
opam install jupyter
grep topfind ~/.ocamlinit || echo '#use "topfind";;' >> ~/.ocamlinit  # For using '#require' directive
grep Topfind.log ~/.ocamlinit || echo 'Topfind.log:=ignore;;' >> ~/.ocamlinit  # Suppress logging of topfind (recommended but not necessary)
ocaml-jupyter-opam-genspec
jupyter kernelspec install --user --name "ocaml-jupyter-$(opam var switch)" "$(opam var share)/jupyter"
@mseri mseri added the bug label May 12, 2022
@mseri
Copy link
Member

mseri commented May 12, 2022

Indeed, they are pretty outdated. ocaml-jupyter had changed this installation step quite some time ago. Could you send a PR to fix it?

@mseri
Copy link
Member

mseri commented May 12, 2022

The repository should be https://github.com/owlbarn/tutorial

@emiruz
Copy link
Author

emiruz commented May 12, 2022

No problem -- will do as soon as I have some time for it. I'll be making use of owl lots soon and no doubt relying on the documentation, so I don't mind submitting new PRs to update/fix things as a I go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants