Workflow Tips

Workflow Tips

Here are some tips for working with Julia efficiently.

REPL-based workflow

As already elaborated in The Julia REPL, Julia's REPL provides rich functionality that facilitates an efficient interactive workflow. Here are some tips that might further enhance your experience at the command line.

A basic editor/REPL workflow

The most basic Julia workflows involve using a text editor in conjunction with the julia command line. A common pattern includes the following elements:

Simplify initialization

To simplify restarting the REPL, put project-specific initialization code in a file, say _init.jl, which you can run on startup by issuing the command:

julia -L _init.jl

If you further add the following to your ~/.julia/config/startup.jl file

isfile("_init.jl") && include(joinpath(pwd(), "_init.jl"))

then calling julia from that directory will run the initialization code without the additional command line argument.

Browser-based workflow

It is also possible to interact with a Julia REPL in the browser via IJulia. See the package home for details.