Julia Workshop Setup

For our Julia workshops you'll need several pieces of software. To help keep the workshop on schedule, we ask that you install these things before the start of class.

Install Julia 1.6

Download Julia here.

Any version of Julia above v1.0 should work, but v1.6 is recommended.

Install VS Code

You'll also need an IDE/editor for this workshop. You can use any editor you want, but we generally recommend Julia for VSCode as this is establishing itself as a standard in the Julia community.

Its installation guide contains info about how to add Julia extensions so the editor understands Julia syntax-highlighting.

However there are many good alternative editors with Julia support:

  • Juno. Used to be the standard Julia IDE. Based on Atom.
  • Sublime Text. Fast cross platform native editor with a Julia plugin.
  • TextMate. macOS only editor.

Configure Environment

This is optional but makes it more practical to work with Julia.

Especially for Linux and macOS users it is convenient to have Julia accessible from the the terminal. You can achieve this by making a symbolic link. In the example below, Julia is installed on macOS under /Applications/Development. A symbolic link is made from the Julia executable to /usr/local/bin.

ln -s /Applications/Development/Julia-1.6.app/Contents/Resources/julia/bin/julia /usr/local/bin/julia

However any path is useable as long as it is accessible from your OS search PATH

Below is an example of a ~/.profile file which is read by the Bourne shell upon startup. Only the first and last line matters to Julia.

export JULIA_EDITOR=code
export EDITOR=vim
export GIT_EDITOR="code -w"
export PATH=/usr/local/bin:$PATH

JULIA_EDITOR allows you to open source code from the Julia REPL environment. Set it equal to any command that will open your favorite text editor.

Configure Julia REPL

This is optional, but will make the experience in the Julia command line better. To do this we add the packages Revise and OhMyREPL. This is done at by starting Julia and issuing package commands as seen below:

$ julia
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0 (2021-03-24)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Pkg

julia> Pkg.add("Revise")

julia> Pkg.add("OhMyREPL")

Stay in touch

Our business hours are 08:00 to 16:00 CET/CEST.