3 March 2023
Max-Planck-Institute Evolutionary Biology
Europe/Berlin timezone

Before the workshop

Requirements

Please bring your own laptop.

 

Before the workshop

Installing Julia: NOT covered

Installing Julia and the environment you want to program in Julia is NOT part of this workshop! There are many options, up to preference, and may even depend on your operating system.

We recommend to install Julia using the most automated, prepackaged, and fool-proof way, which is as follows:

  1. Install Julia via juliauphttps://github.com/JuliaLang/juliaup
  2. Install VSCode as your programming environment: https://code.visualstudio.com/
  3. Install the Julia for VSCode extension: Open VSCode, go to Extensions, search for Julia and install.

These steps are simple, work for "any" operating system, and out of the box you get:

  • A console for Julia which you can get by typing Alt+J, Alt+O in VSCode.
  • Using Julia in a scripting environment in VSCode. When working on a Julia script (.jl text file) you may evaluate any amount of code in the script interactively. E.g., Ctrl+Enter evaluates current line being edited. The Julia process that evaluates the script is the same as the one in the console you get in point 1.
  • Jupyter notebooks, which you can be opened from the command launch in VSCode (Ctrl+Shift+P) and then selecting "Jupyter: Import new notebook". Each Jupyter notebook launches a dedicated Julia process.

Installing Julia packages

For the workshop we will be using the following set of Julia packages:

Agents v5.8.0
Attractors v1.1.0
CairoMakie v0.10.2
DynamicalSystems v3.0.0
InteractiveDynamics v0.22.1
GLMakie v0.8.2 
Random
  1. To install them open VSCode.
  2. Open a console for Julia by typing Alt+J, Alt+O in VSCode
  3. Open the Julia Pkg REPL in the console by simply typing: ]
  4. Type add Agents to add the first package of the list
  5. Repeat step 4 for all the packages of the list
  6. Type st to check that you have added all the packages

Note: smaller versions than the ones on the list will not work for the workshop