marimo-team / vscode-marimo

marimo vscode extenion
https://marketplace.visualstudio.com/items?itemName=marimo-team.vscode-marimo
MIT License
36 stars 5 forks source link

Add option to run with --sandbox #53

Open gabrielgrant opened 3 days ago

gabrielgrant commented 3 days ago

AFAICT there isn't a way to do this right now? Result is that I get the missing packages error when running notebooks created using a --sandbox server:

Image

Would be great if this happened (or at least prompted) automatically (which seems to have been introduced in https://github.com/marimo-team/marimo/issues/2414 ) but not sure how that would work with the default of not even showing the terminal marimo is running in

mscolnick commented 3 days ago

We start one edit server for all notebooks started from vscode, so we would need to first add this feature to marimo core: make sandbox compatible with edit server (multiple notebooks).

gabrielgrant commented 3 days ago

As I mentioned on that issue it does seem like marimo edit --sandbox is at least partially working today. Would you be open to having a setting (default off) that would allow running in the same way? IIUC that would at least allow working with my existing sandboxed notebooks so long as there aren't package version conflicts between those currently running, yes?

mscolnick commented 3 days ago

Yea definitely open to that and I think that would be a great addition. Do you want us to add that (~1 week given other priorities)? or something you'd like to contribute? fine either way.