-
Notifications
You must be signed in to change notification settings - Fork 185
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
Autoreload #775
Comments
I think you could use IPython itself for this, at least from IJulia. Something like: autoreload = pyimport("IPython.extensions.autoreload").AutoreloadMagics()
IJulia.push_preexecute_hook(() -> autoreload.pre_run_cell())
IJulia.push_postexecute_hook(() -> autoreload.post_execute_hook()) |
I'll give that a try! I'm curious, though, if we can get the same functionality for use on the command line too. Our REPL is much closer to ipython REPL than the python REPL, so if we can make it work without having to use IJulia, that would be awesome! |
Yes, in Julia 1.5 you can use the new REPL AST transformation feature to push a transformation that calls the IPython This is very similar to what Revise.jl does. See timholy/Revise.jl#425 |
If you get this to work, I would suggest putting it in a |
Sounds good! I'll go ahead and close this considering your point about the auxiliary package. Thanks! |
This is a feature request
I've recently been doing a lot of coding two packages in Julia and python side-by-side and have been sorely missing the
%autoreload 2
magic from ipython. Is this something that can be incorporated into PyCall? The ideal usage I could image is something likeThe text was updated successfully, but these errors were encountered: