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

📬 Auto reload from file #1029

Merged
merged 15 commits into from
Sep 26, 2021
Merged

📬 Auto reload from file #1029

merged 15 commits into from
Sep 26, 2021

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Mar 26, 2021

Watch the notebook file for changes, and load them automatically. New changes are run automatically.

The goal here is to allow:

  • Modifying a notebook using git
  • Small changes in VS Code

Try it out

Pluto.run(auto_reload_from_file=true)

TODO

  • Throttle file events, wait until file stops changing
  • Handle corrupt notebook file
  • Detect changes to embedded Pkg 5898931 3f65b53
  • Don't trigger when Pluto changes the file
  • Detect file deleted and ... ?
  • Test on 3 OSses
  • Failing windows 1.6 test?
  • Tests
  • Update notebook from file with popup #1377

VIDEO

Schermopname.2021-03-26.om.01.42.33.mov

this PR + https://www.notion.so/malyvsen/Notebook-REST-API-4312a1acf7004806bd33f2eefee327a5 == https://darklang.com ?! @ctrekker

src/evaluation/Run.jl Outdated Show resolved Hide resolved
Panagiotis Georgakopoulos added 2 commits April 29, 2021 17:40
ericphanson added a commit to ericphanson/Pluto.jl that referenced this pull request Jun 26, 2021
Co-authored by: Fons van der Plas <fonsvdplas@gmail.com>
@fcdimitr

This comment has been minimized.

@holomorphism

This comment has been minimized.

@jbrea
Copy link
Contributor

jbrea commented Jul 28, 2021

Very useful!

@holomorphism holomorphism mentioned this pull request Aug 4, 2021
@disberd disberd mentioned this pull request Aug 9, 2021
5 tasks
@JinraeKim
Copy link

It would be really helpful and boost many programmers' productivity.
Can't wait for it!

@dralletje dralletje mentioned this pull request Sep 22, 2021
@fonsp
Copy link
Owner Author

fonsp commented Sep 25, 2021

Added a popup message

Schermopname.2021-09-26.om.01.00.33.mov

fonsp and others added 2 commits September 26, 2021 01:04
Co-Authored-By: disberd <12846528+disberd@users.noreply.github.com>
@fonsp fonsp changed the title Watch notebook file for changes 📬 Auto reload from file Sep 25, 2021
@fonsp fonsp marked this pull request as ready for review September 26, 2021 00:35
@fonsp
Copy link
Owner Author

fonsp commented Sep 26, 2021

I'm merging this, but for now it is disabled by default. Enable it using

Pluto.run(auto_reload_from_file=true)

After a longer testing period, I will turn it on by default

@fonsp fonsp merged commit e3451b1 into main Sep 26, 2021
@fonsp fonsp deleted the watch-notebook-file-1 branch September 26, 2021 00:46
@canelhasmateus
Copy link

Thank you all for your efforts.
As someone new to this ecosystem, how can i install and try out the nightly version of the package?

@fonsp
Copy link
Owner Author

fonsp commented Sep 27, 2021

julia> ]
pkg> add Pluto#main

You can revert with

pkg> rm Pluto
pkg> add Pluto

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

Successfully merging this pull request may close these issues.

Feature Request: Watch for updates to the underlying .jl file
8 participants