JuliaInterop / NBInclude.jl

import code from IJulia Jupyter notebooks into Julia programs
Other
118 stars 17 forks source link

Make work with Revise.jl ? #13

Open oxinabox opened 6 years ago

oxinabox commented 6 years ago

I think it is viable to make this work with Revise.jl, so editting another notebook causes it to reinclude it.

I would require writing a custom function to do the tracking, based on applying https://github.com/timholy/Revise.jl/blob/dd6e970a23e0b998883f814742723bf53b88f57f/src/Revise.jl#L505-L516

just to the code cells. but that wouldn't be too hard.

stevengj commented 3 years ago

It might be possible to do this by defining a new subtype of AbstractString to denote the path of a notebook file, at which point we can overload Revise.includet, Revise.parse_source, etcetera as needed.