Connecting to your mojo playground from VSCode or DataSpell #277
Locked
strangemonad
started this conversation in
Show and tell
Replies: 2 comments 4 replies
-
Thanks mate! I'm thinking of integrating it in my new project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is less of a show and tell about something built in mojo and more about how to build something with mojo. Maybe a new topic type would be useful?
tl;dr;
Note: I was able to get this working with Data Spell but not VSCode. I'm not as fluent with VSCode and in my experience with VSCode's Jupyter integration is that I tend to experience errors that don't get logged anywhere. It's probably something on my end. If someone can comment about VSCode working that would be great.
Connecting to Jupyter Hub
Until there's a standalone toolchain we can run on our hardware, mojo code runs in Modular's mojo playground. Even once there's a standalone toolchain, hosted environments are convenient.
If you're like me, without a bunch of Jupyter Lab extensions and configurations, I find the out of box Jupyter Lab editing experience painful. I also want to be able to use all my editor settings, auto-complete and GitHub Copilot. Thankfully, the mojo playground is hosted using Jupyter Hub. Many IDEs and editors like VSCode, DataSpell, and PyCharm can connect to Jupyter Hub via its API.
File > Hub Control Panel
https://playground.modular.com/hub/homeFollow your IDE or editor workflow to connect to a remote Jupyter server
Mojo.Playground.Server.Data.Spell.mp4
Beta Was this translation helpful? Give feedback.
All reactions