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

Precached state modified by rerendering #129

Open
theogf opened this issue Oct 24, 2023 · 1 comment
Open

Precached state modified by rerendering #129

theogf opened this issue Oct 24, 2023 · 1 comment

Comments

@theogf
Copy link
Contributor

theogf commented Oct 24, 2023

When running export_directory with the cache activated and state "unbaked", it looks like the file.plutostate is modified by rerunning the script once, future reruns do not modify the file.

To reproduce:

  • Get a notebook file.jl
  • Render it once with Export_baked_state = false and with a Export_cache_dir and get file.html, file.plutostate and some cache/<hash>.plutostate
  • Store a copy of file.plutostate.old
  • Render it again, the execution states: Loaded from cache, skipping notebook run
  • The file.plutostate is now different from file.plutostate.old
  • Make another copy file.plutostate.notthatold
  • Render again!
  • Now file.plutostate is the same as file.plutostate.notthatold
@fonsp
Copy link
Member

fonsp commented Oct 30, 2023

Love it! Do you still have these statefiles maybe?

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

No branches or pull requests

2 participants