Using appbuilder but in optional EDIT/RUN modes #4600
vineetbansal
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For a larger app that I'm developing (in Reflex, which also uses
uvicorn
on the server side), I'd love to have smaller applets (marimo apps) which would normally run inRUN
mode, but could potentially run inEDIT
mode by a superuser. This would allow quick iterations on ideas without having to go through the whole commit->tag->release->compile for the larger webapp as a whole.I've been able to get this to work by relatively minor hacks to the marimo code. These are:
marimo/marimo/_server/asgi.py
Line 449 in 37bcb7a
Modifying
SessionMode
to beEDIT
.and disabling
SkewProtectionMiddleware
at:marimo/marimo/_server/main.py
Line 87 in 37bcb7a
because in my use case, a single super-user would make edits to the applet, and if clients are temporarily on an older version of the code, that's not too critical.
Obviously these are hacks, and I'm probably missing other parts of the code that might break given these, but I'm wondering what the marimo team thinks about exposing knobs like these. This would make marimo an invaluable tool that could be used with other asgi frameworks like Reflex.
Beta Was this translation helpful? Give feedback.
All reactions