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

Serialize outputs in separate file so app can be viewable when auto-instantiate is off #3082

Open
mscolnick opened this issue Dec 6, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@mscolnick
Copy link
Contributor

Description

Serialize outputs in separate file so app can be viewable when autorun is off. This is different from persistent caching, even if configured on all cells. This is much cheaper and just stores the HTML of the outputs (which can be easily found in the SessionView), this does not "hydrate" the runtime, so all outputs will be considered stale.

This helps with users who always use auto-instantiate=off

Suggested solution

SessionView has a serialize/deserialize function on it that can read/write to an outputs file. This will be stored in the shared __marimo__ folder, similar to persistent cache and auto-export.

Proposed path would be __marimo__/outputs.json.
Other options could be __marimo__/session.json, if somehow it ends up containing more than outputs (variables, datasets schemas, etc)

Alternative

No response

Additional context

No response

@mscolnick mscolnick added the enhancement New feature or request label Dec 6, 2024
@mscolnick mscolnick added this to the marimo 1.0.0 milestone Dec 6, 2024
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

1 participant