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

Can Pluto.jl & Revise.jl work together? #238

Closed
jarvist opened this issue Jul 30, 2020 · 6 comments
Closed

Can Pluto.jl & Revise.jl work together? #238

jarvist opened this issue Jul 30, 2020 · 6 comments
Assignees
Labels
almost closed enhancement New feature or request other packages Integration with other Julia packages
Milestone

Comments

@jarvist
Copy link

jarvist commented Jul 30, 2020

I'm a computational scientist, so I often have a workflow where I'm simultaneously writing a Julia package, and then using a notebook to run experiments & make plots as I change stuff. Using Tim Holy's Revise.jl is really useful here, as you can edit functions & all it just works.
In a Jupyter notebook, this workflow requires a first cell something like:

using Revise
using Pkg
Pkg.activate("../")
using MyPackage

However, this doesn't seem to work in Pluto. It doesn't give any errors, but also Revise.jl does not automatically update. Instead you have to shut down & restart the kernel as you make edits.
Am I doing something wrong, or is there some fundamental incompatibility with Revise.jl?

@fonsp
Copy link
Owner

fonsp commented Jul 30, 2020

Thanks for the suggestion, I agree that it would be very useful! I am considering enabling Revise by default, and doing the same from include: #78 and #115 (comment)

I'll come back to this later :)

@jarvist
Copy link
Author

jarvist commented Jul 30, 2020

Great! I think Revise (or equivalent) and Pluto would be very natural to use together.

@fonsp fonsp added the enhancement New feature or request label Aug 2, 2020
@lungben
Copy link
Contributor

lungben commented Aug 14, 2020

I am very much in favor of it, it would have saved me quite some time yesterday ;-)

Should Revise be executed on the Pluto server side, e.g.

using Revise
using Pluto
Pluto.run(1234)

or in the notebooks?

Probably both are fine from user perpective.

@fonsp fonsp added the other packages Integration with other Julia packages label Aug 16, 2020
@fonsp fonsp added the help welcome If you are experienced in this topic - let us know! label Aug 24, 2020
@fonsp fonsp self-assigned this Sep 11, 2020
@fonsp
Copy link
Owner

fonsp commented Sep 11, 2020

#416

@fonsp fonsp added almost closed and removed help welcome If you are experienced in this topic - let us know! labels Sep 11, 2020
@jarvist
Copy link
Author

jarvist commented Sep 11, 2020

Fantastic!

@fonsp fonsp added this to the 🧭 v0.12 milestone Sep 18, 2020
@fonsp
Copy link
Owner

fonsp commented Sep 18, 2020

Done! You need Revise 2.7.6 or 3.0.0 and Pluto 0.12.0 (not released yet) 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
almost closed enhancement New feature or request other packages Integration with other Julia packages
Projects
None yet
Development

No branches or pull requests

3 participants