3 ms·
The trick to avoiding this problem is to keep Julia "warm" with a long running process. There are a few ways to do this - Jupyter, the Juno IDE, and vim/neovim
by bovine3dom 7y ago
The trick to avoiding this problem is to keep Julia "warm" with a long running process. There are a few ways to do this - Jupyter, the Juno IDE, and vim/neovim with a terminal pane are all popular - but the most straightforward is to switch from `julia file.jl` to
```
julia
julia> include("file.jl") # when you want to reload, ctrl-c then arrow-up and enter to include again
```
This isn't so dissimilar to MATLAB in some respects: you don't restart MATLAB every time you want to re-run your code.
- Oreb 7y agoBetter yet, use Revise.jl and do julia> includet("file.jl") # Notice the final 't' in 'includet' This will cause file.jl to get automatically reloaded whenever it is changed.
- bovine3dom 7y agoI've been using Julia for 4 years and had never heard of includet. Thanks!
- Oreb 7y agoYou're welcome! Please note the "use Revise.jl" part. The includet function is not included in the base language, you need the Revise.jl package.