feat: dynamic gallery index refresh on marimo run <folder> --watch#8460
Merged
mscolnick merged 3 commits intomarimo-team:mainfrom Feb 25, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mscolnick
reviewed
Feb 25, 2026
| folder index on each workspace request. This means added and removed notebooks | ||
| appear after refreshing or revisiting the gallery page. | ||
|
|
||
| !!! warn "Security note for watched folders" |
Contributor
There was a problem hiding this comment.
i think this is sufficient, since already technically a user could create a file named after a common built-in (e.g called os.py) which would get imported when a notebook runs import os. so users should generally be cautious of allowing file uploads and saving to disk
mscolnick
previously approved these changes
Feb 25, 2026
7ee8edf to
4e111d7
Compare
Contributor
Author
|
@mscolnick just resolved the merge conflicts |
mscolnick
approved these changes
Feb 25, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is complementary to #8459 based on request outlined in #8444. It supports dynamic inclusion of notebooks into gallery index page spawned by
marimo run <folder> --watch.Opening this only as a draft for the sake of discussion (cc @mscolnick). This feature comes with the security consideration that a notebook allowing file upload / folder mutation could add a new (potentially malicious)
.pyfile to the served gallery folder which executes code on open.