This is an intensive 2-hour workshop for the Julia language, including 3 web-based Pluto notebooks covering concepts from basic to intermediate level in Julia. It assumes that the attendees have some basic familiarity with programming. It also has an emphasis on scientific computing, so it would be beneficial if you have some experience in this field as well. The goal of the workshop is to help you gain experience and have fun in Julia programming.
To participate in this workshop, we recommend that you follow these steps to get started with a Julia programming environment:
Clone this repository using Git
(which we assume you have some basic experience with; if not, run git clone https://github.com/Cambridge-ICCS/Summer-School-Julia-Tutorial.git
).
If you have not done so, download Julia from https://julialang.org/downloads/, and install it following the instructions on the same page.
In your command line, run julia
to open an interactive REPL (read-evaluate-print loop) session. Enter expressions like 1 + 2
, [1, 2, 3][1:2]
, 2sqrt(pi)
to play around a bit.
In the Julia REPL session, you can install packages by entering ]
(which changes the prompt to pkg>
) followed by add PACKAGE
. Now try to install the web-based notebook package Pluto
. Pluto
is similar to the Jupyter
notebook (which supports both Python and Julia), but it has some advantages like reactivity and reproducibility).
Enter a backspace to return to the normal mode from the package mode. Then run using Pluto; Pluto.run()
to open a Pluto Notebook session (a webpage will automatically pop up).
After a webpage for the Pluto Notebook session has poped up in your browser, open a notebook by entering its file path. Start with basics.jl
.
Type the corresponding LaTeX-like character sequence (starting with \
), followed by a tab
.
The following pages give further background on the Julia language: