1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/julia_course.git synced 2024-11-16 13:28:10 +00:00
No description
Find a file
2024-05-14 17:09:35 +02:00
Day_1 Improve performance demo 2022-04-08 22:41:22 +02:00
Day_2 Use return value of the function in open() 2022-03-31 01:46:49 +02:00
Day_3 Small fixes 2022-03-30 22:28:47 +02:00
Day_4 Test Revise after startup 2022-04-08 22:41:33 +02:00
Day_5 Fix FourVector task 2022-04-08 22:42:43 +02:00
.gitignore Edit .gitignore 2022-10-09 15:29:10 +02:00
LICENSE Add LICENSE 2022-03-21 18:52:13 +01:00
Project.toml Init commit 2022-03-21 18:30:38 +01:00
README.md Update README 2024-05-14 17:09:35 +02:00

How 2 Julia

Installation

First, download Julia from the official website: https://julialang.org/downloads

Linux

You can either download the binary from the website above or install Julia with a package manager if it provides an up to date package (usually named julia).

In case you download the binary, add it to your PATH. The easiest way would be to move the binary to ~/.local/bin.

Windows

Follow the instructions of the installer and make sure that you choose the option to add Julia to your PATH.

macOS

Check the installation instructions on the official Julia website.

Running Pluto for the first time

Clone the repository to get the course files.

Then cd into the repository directory.

Now, launch Julia to be welcomed by the REPL.

Pluto has to be installed to be able to view, edit and run the notebooks of this course.

In the REPL, press ]. This will cause the prompt to change to a one ending with pkg>. Now run the following:

activate .

Don't forget the dot after activate! The dot means that you want to activate the environment in the current directory.

This will activate the environment of the Julia course. This environment includes only the Pluto package. Your prompt should now change from something like (v1.10) pkg> to (how-2-julia) pkg>. This means that the environment was successfully activated.

Now, run the following:

update

This will install the Pluto package (or it will update it if it is already installed).

After the installation is done, press backspace to get back to the normal prompt ending with julia>.

Now, run the following:

import Pluto
Pluto.run()

A new tab will open in your browser where you can then open one of the notebooks.

Running Pluto after the first time

If you want to run Pluto and see the notebooks after the first time, you should follow all the instructions in the section above except cloning the repository because you already have the notebooks.

Credits

Some of the used content and tasks are inspired by the following repositories: