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

Any recommended steps to use jupyter notebook with mojo, now that it is installed with magic cli.
4 Replies
sazid
sazid3mo ago
Probably, something along the lines of:
$ magic init projectname --format mojoproj
$ cd projectname
$ magic shell
$ whereis mojo
$ code . (open vscode here)
$ 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.
raktimbh
raktimbhOP3mo ago
I followed the steps, and I saw the mojo kernel. But it could not connect to it. Had to add ipykernel magic add ipykernel Works now. Thanks.
Hasan Yousef
Hasan Yousef2mo ago
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
No description
Hasan Yousef
Hasan Yousef2mo ago
I got it run smoothly as explained here: https://github.com/HasanAbuKaram/mojo/blob/main/README.md
GitHub
mojo/README.md at main · HasanAbuKaram/mojo
Contribute to HasanAbuKaram/mojo development by creating an account on GitHub.
Want results from more Discord servers?
Add your server