1. Installing MEDYAN.jl

Install julia

MEDYAN.jl is a julia package so first install the julia programming language.

This tutorial was generated using:

Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × Intel(R) Core(TM) i7-10700KF CPU @ 3.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

The tutorials should work on newer versions of julia, and on MacOS and Windows, please create an issue if you have a problem or question.

Julia can be installed with juliaup.

You can also download julia here.

Do not install julia using apt install julia or module load julia, as these don’t have a recent version of julia.

After installing julia, open the REPL with the julia command in terminal.

Install packages needed for tutorials

Download the exact julia environment used to generate the tutorials.

Click to Download

Next extract this zip file and cd into the extracted directory.

Now run

julia --project -e 'import Pkg; Pkg.instantiate()'

To start the julia REPL in the correct environment to run the tutorials, use:

julia --project

From inside the medyan-tutorial directory.

You can also save julia files in this directory and use the VSCode julia extension to set the environment, and run code blocks, if you prefer that over the REPL.

https://code.visualstudio.com/docs/languages/julia

Running tests

These tests may take a few minutes to run.

julia lib/MEDYAN/test/install-deps.jl
julia --project=lib/MEDYAN/test lib/MEDYAN/test/runtests.jl

If you have any errors or failing tests create an issue