You might take a look at https://github.com/malmaud/Autoreload.jl and see
if it meets your needs.
On Wednesday, March 12, 2014 1:20:42 AM UTC-5, David Chudzicki wrote:
>
> Hi--
>
> The workflow I'd like is to edit a file and see the effect of what I've
> done upon saving. Best would be something like conttest julia mycode.jl,
> which
> runs the script through Julia whenever it changes, but I'm finding this too
> slow (since loading some of the packages my script uses takes a few
> seconds).
>
> So as an alternative, I thought maybe I should try to include my script
> in a single, continuing Julia session whenever it changes. Can anyone help
> me out with the best way to do that?
>
> I was thinking something like this:
>
> function watch_and_include(filename)
> watch_file((f,e,s) -> {
> print("\n--------\n")
> include("mycode.jl")
> watch_and_include(filename)
> },
> filename)
> end
>
> watch_and_include("mycode.jl")
>
> ... but that seems kick off the inner watch_and_include too many times!
>
> If anyone has any overall workflow suggestions, I'd appreciate that too.
>
> Thanks,
> David
>
>