Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 4.02 KB

README.md

File metadata and controls

60 lines (41 loc) · 4.02 KB

Julia2925: learn a fast and intuitive programming language in two workdays.

This page contains the Pluto notebooks accompanying the Julia2925 doctoral schools hosted at Ghent University.

Logo Doctoral schools Logo Flanders

Introduction

This course gives an in-depth introduction to the Julia programming language. The first day will introduce the essential elements (variables, printing, plotting, looping, collections, etc.) of Julia programming along with a peek behind the curtains of the type system. On the second day, we will cover the type system comprehensively and discuss its relation to multiple dispatch and illustrate how this translates into extensible and user-friendly programs. We cover the subject matter interactively in notebooks.

Getting started

There are two ways to download the notebooks.

  1. If you are used to Github, you can clone this repository to your computer.
  2. Download the notebooks from this link

Installing Julia

There are multiple ways to install julia on your system: install via your package manager, download the binaries, or use the Juliaup installation manager.

We recommend the Juliaup installation manager.

In the current version of the course we will be using the latest stable release 1.10.0.

using the binaries

  1. Go to this page on the official Julia website and select the binary you want to download given the version and your system specification.
  2. Have a look here to see the installation instruction for different platforms.

Juliaup

  1. Follow the installation instructions for your specific platform.
  2. Check out the using Juliaup details for how to launch Juliaup and execute some commands for your specific system.
  3. Install version 1.10.0: juliaup add 1.10.0
  4. Make this version the default version: juliaup default 1.10.0.

Starting Julia

For windows users:

  • if you are using the binaries: it is as simple as double-clicking the Julia application (after unzipping).
  • if you are using Juliaup: there is a start menu shortcut and it will show up as a profile in Windows Terminal.

For Linux users:

  • if you are using the binaries: the Julia REPL can be started by executing the binary (after unzipping), e.g. /path/to/julia-1.x.x/bin/julia. For ease of use, we recommend adding an alias to your dotfiles (.bashrc, .zshrc): alias julia=~/julia-1.x.x/bin/julia
  • if you are using Juliaup: julia is added to your path and can be started by executing julia in a shell.

Note that the VS Code extension will also automatically find this Julia installation.

Running the notebooks

Open the Julia REPL using any of the methods described in the previous section.

  1. Open the (just) installed Julia application.
  2. Install Pluto by copy-pasting the following instruction in the REPL (the terminal that just appeared): using Pkg; Pkg.add("Pluto"). This will take two minutes.
  3. Launch Pluto by copy-pasting using Pluto; Pluto.run(). It will open in your browser.
  4. In the slot "open a notebook" navigate to the notebook by typing the location of the notebooks on your computer (e.g. C:/Users\jef\notebooks\day1\01-basics.jl or /home/jef/notebooks/day1/01-basics.jl for Linux users).

This should open a browser window with the Pluto notebooks. The first time it can take a while (up to 10 minutes) since it is installing all the dependencies.

Contact

UGent Doctoral School member and Julia questions? Send one of us an email!

Meta

Authors: Bram De Jaegher, Michiel Stock, Daan Van Hauwermeiren