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.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 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
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
Environment:
  LD_LIBRARY_PATH = /home/gh-actions1/actions-runner5/_work/_tool/julia/1.11.1/x64/bin/../lib/julia:/home/gh-actions1/actions-runner5/_work/_tool/julia/1.11.1/x64/bin/../lib

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