TLDR: Visit education.github.com for a nice cheatsheet
The most we will likely need to do is pull from various GitHub repos. For instance to get started with this sessions we will do
git clone https://github.com/rayegun/JuliaIntro.git
TLDR: Install VSCode
from code.visualstudio.com/
Most of our instructors will use VSCode during their tutorials. The VSCode website is fairly well documented. If you are on MacOS and have Homebrew you can simply run
brew install --cask visual-studio-code
TLDR: Install juliaup
from julialang.org/install
The most natural starting point to install Julia onto your system is the Julia downloads page, which will tell you to use juliaup
.
juliaup
together from the Windows Store.curl -fsSL https://install.julialang.org | sh
In both cases, this will make the juliaup
and julia
commands accessible from the terminal (or Windows Powershell).
On Windows this will also create an application launcher.
All users can start Julia by running
julia
Meanwhile, juliaup
provides various utilities to download, update, organize and switch between different Julia versions.
As a bonus, you no longer have to manually specify the path to your executable.
This all works thanks to adaptive shortcuts called "channels", which allow you to access specific Julia versions without giving their exact number.
For instance, the release
channel will always point to the current stable version, and the lts
channel will always point to the long-term support version.
Upon installation of juliaup
, the current stable version of Julia is downloaded and selected as the default.
Advanced: To use other channels, add them to juliaup
and put a +
in front of the channel name when you start Julia:
juliaup add lts
julia +lts
You can get an overview of the channels installed on your computer with
juliaup status
When new versions are tagged, the version associated with a given channel can change, which means a new executable needs to be downloaded. If you want to catch up with the latest developments, just do
juliaup update
Run this little program 😊:
println.(1:10 .|>_->prod(j->rand(["╱╲"...]),1:10));
TLDR: Check out the Julia extension docs
Julia supports a wide-range of workflows, although it is unique in the popularity of "REPL-driven development".