marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
7.98k stars 282 forks source link

open notebook in "run" mode from editor #2811

Open danielkovi opened 2 weeks ago

danielkovi commented 2 weeks ago

Description

It would be really cool if one could open a notebook in the Workspace from the editor main window right into "run" mode

@mscolnick suggested in this thread it should be possible via some query parameter mode=run which I imagined like:\ localhost:2718/?file=notebook.py&mode=run\ but I could not get it running on locally running marimo editor server, was always in edit mode

it would help testing and even using notebooks locally without the extra steps of spawning a new running server, plus that gets a new port number which is sometimes inconvenient on strict corporate networks

Suggested solution

could be 2 icons on single "pop-out" on editor page:

it could look something like this:\ Image

Alternative

No response

Additional context

No response

danielkovi commented 2 weeks ago

possible liked to: https://github.com/marimo-team/marimo/issues/2812