Getting started with Turing.jl
Here is what you need to do in order to run the code:
- Download Julia and install it. I used version 1.9.2.
- Download my turing.zip with the code and extract it to a folder and open a terminal in that folder.
- Start Julia by typing
julia
in the terminal. - In Julia, type
]
and ENTER to enter the package manager. The prompt should change to something withpkg>
. - activate the environment by typing
activate .
and ENTER. (that’s activate followed by space and a dot). - Instantiate the environment with all dependencies by typing
instantiate
and ENTER. - Press BACKSPACE to exit the package manager.
- Type for example
include("iidnormalturing.jl")
and ENTER to run the code. After the sampling, a plot should appear.
If you get serious with Julia and want to use it for your own work, I recommend that you use an IDE such as VS Code with the Julia extension.