modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo/manual/
Other
23.28k stars 2.59k forks source link

[Feature Request] Auto-reimport mojo code in Jupyter code cell #787

Open guidorice opened 1 year ago

guidorice commented 1 year ago

Review Mojo's priorities

What is your request?

When running mojo kernel in a notebook (in vscode), I can import mojo modules, but changes are not seen unless I restart the Jupyter kernel. would be great to have something like this https://stackoverflow.com/questions/40389171/rerun-import-in-jupyter-notebook#49335931 btw, the vscode extension and LSP seems really nice so far! 👍

What is your motivation for this change?

Increase productivity when prototyping in a notebook.

Any other details?

This was from 2023-08-26 in Discord- I have not tried it again since then.

River707 commented 1 year ago

Thanks for filing this! I had no idea that feature existed, looks really useful as well! We'll definitely add that to the list of magics to look into. If you have anymore you think would be useful, please file issues for those as well!