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

Watch folder for notebook changes and update automagically #31

Merged
merged 80 commits into from
Nov 23, 2021

Conversation

fonsp
Copy link
Member

@fonsp fonsp commented Nov 23, 2021

After scanning a directory for notebook files, you can now ask Pluto to continue watching the directory for changes. When notebook files are added/removed, they are also added/removed from the server. When a notebook file changes, the notebook session is restarted.

This works especially well when this directory is a git-tracked directory. When running in a git directory, PlutoSliderServer can keep git pulling the directory, updating from the repository automatically.

Continuous Deployment

The result is a Continuous Deployment setup: you can set up your PlutoSliderServer on a dedicated server running online, synced with your repository on github. You can then update the repository, and the PlutoSliderServer will update automatically.

The alternative is to redeploy the entire server every time a notebook changes. We found that this setup works fairly well, but causes long downtimes whenever a notebook changes, because all notebooks need to re-run. This can be a problem if your project consists of many notebooks, and they change frequently.

TODO:

  • Show progress in logs (e.g. [12/29] ready)
  • git reset? Don't delete html files? Require separate output folder?
  • Check for concurrency stuff
  • Remove the many example config files? Will be easy to forget to update
  • Automatic docstrings from Config structs
  • Automatic sample toml file
  • Include fix settings #30, Fix behavior of run_directory when static_export option is given #28
  • Option to update from file using pluto instead of re-running
  • Some notebooks should always rerun because they depend on other notebooks
  • Docstring for run_git_directory

Continuation of #11

@fonsp fonsp merged commit 29d9f5b into main Nov 23, 2021
@fonsp fonsp deleted the watch-folder-auto-git-pull branch November 23, 2021 22:37
@fonsp fonsp added the folder watching Problems with git or automatic folder watching label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
folder watching Problems with git or automatic folder watching
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants