WS22/23 ULG Data Science

Our Exercise

Preparations

Since you are familiar with git and gitlab, you might want to fork the repository of our exercise first. To do so, head to gitlab.

Afterwards clone your forked repository with

git clone <YOUR_FORK>

Head to this project and open the Julia REPL (be sure to use the default version of this course). The project comes with a Manifest.toml and Project.toml, so be sure to activate and instantiate the environment:

(@v1.8) pkg> activate .
  Activating project at `~/uibk/teaching/ulg-ws-22-julia-workshop-exercises-pub`

(ulg-ws-22-julia-workshop-exercises-pub) pkg> instantiate

In this exercise we will work with JupyterLab. The Package IJulia is a Julia-language backend combined with the Jupyter interactive environment and enables us to use JupyterLab with Julia. You already instantiated this package in your environment, so from the REPL simply call:

julia> using IJulia

And to open JupyterLab with the current directory being the working directory, call:

julia> jupyterlab(dir=pwd())

In case you do not have Jupyter ready on your system, IJulia will offer you to install Jupyter via Conda. You might want to take this offer and let IJulia do the work for you. Once ready, JupyterLab will be started and your default Browser open with the JupyterLab start screen.

Sometimes you will not find your desired Julia Kernel. Usually closing JupyterLab, and rebuilding your IJulia from the desired Julia version should fix this problem:

pkg> activate .
  Activating project at `~/uibk/teaching/ulg_ws22_julia_workshop_exercises_pub`

(ulg_ws22_julia_workshop_exercises_pub) pkg> build IJulia
CC BY-SA 4.0 - Stephan Antholzer, Gregor Ehrensperger, Johannes Sappl. Last modified: August 31, 2023. Website built with Franklin.jl and the Julia programming language.