#How to use mojo in jupyter notebook with the new magic based installation of max-mojo?

8 messages · Page 1 of 1 (latest)

agile ferry
#

Any recommended steps to use jupyter notebook with mojo, now that it is installed with magic cli.

opaque frostBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

lean carbon
#

Probably, something along the lines of:

$ magic init projectname --format mojoproj
$ cd projectname
$ magic shell
$ whereis mojo
$ code . (open vscode here)

And then create your notebook and set it's env to point to the mojo binary inside the shell (not sure if it's auto detected, you may need to point to the exact dir yourself.

I haven't tried myself yet.

opaque frostBOT
agile ferry
#

Had to add ipykernel

magic add ipykernel

#

Works now. Thanks.

red steppe
#

I could not get it done, error while loading shared libraries libedit.so2, I got the same while trying mojo reply. by the way I'm ar Arch linux, not Ubuntu, but everything else is working smoothly