Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marimo "run server" #2812

Open
danielkovi opened this issue Nov 7, 2024 · 3 comments
Open

marimo "run server" #2812

danielkovi opened this issue Nov 7, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@danielkovi
Copy link

Description

It would be really cool if one could spawn a running-notebooks-only server via simpler cli as marimo run which would open to a similar landing page as marimo edit with a Workspace showing available notebooks in that folder - but clicking on them would only open them in a new tab in 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 on-site deployment on strict corporate networks as it could preserve both url and port number, and it makes it easier to "bookmark" the main landing page that shows all available notebooks

Suggested solution

on console if you could
C:\marimo run
which would open up a similar Workspace as in an editor, but clicking on a notebook it opens it in a new browser tab like
localhost:2718/?file=notebook.py&mode=run
on same server with same url and port

Image

and if we could still get to the Files helper panel:
Image
and if that would allow jumping to a new notebook, but perhaps preserving some state in query parameters that would be truly epic 🤩

Alternative

No response

Additional context

No response

@danielkovi danielkovi added the enhancement New feature or request label Nov 7, 2024
@danielkovi
Copy link
Author

possibly linked to: #2811

@mscolnick
Copy link
Contributor

Not quite the same request, but if this feature is for deployment (instead of local development), you may be interested in this example:

https://github.com/marimo-team/marimo/tree/main/examples/frameworks/fastapi

It's a fastapi server (we another example for fasthtml, that will read from a directory and serve all your notebooks from that directory under different paths. It will also create a "home/landing page" for the notebooks.


Only mentioning the above to unblock today, but otherwise, we I think this is a feature we eventually would like to support.

@danielkovi
Copy link
Author

thanks @mscolnick , this is excellent!
i plan to try the frameworks this week and read up on ASGI and then try to play with the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants