Please visit JuliaLang/Downloads to download and install Julia.
Tip: platform-specific instructions can help with post-installation conveniences such as launching Julia by typing julia
in the terminal.
Julia consists of a Base
library and is also shipped with a standard set of libraries. One example of these is LinearAlgebra
.
To use a standard library package such as LinearAlgebra
, just type using LinearAlgebra
at the julia>
prompt. To see what a package contains, type LinearAlgebra.<TAB>
. This will show you all the types and functions that are declared within.
To add a registered package from the Julia community's ecosystem hosted on GitHub
, switch from execution mode (julia>
) to package mode ((@v1.6) pkg>
) by typing ]
. Add Pluto.jl by typing add Pluto
followed by enter
. This may take a while as it initializes your package environment for the first time. To exit package mode, press backspace
. Let's also add Plots
as it's used in the first notebook.
To use Pluto
, type using Pluto; Pluto.run()
. This will open the Pluto
landing page in your default browser (and by default at the local web address http://localhost:1234
). Here, you can take a look at a few sample notebooks, start a new notebook, and even open a notebook that's hosted on the Internet by pasting the link in the Open from file
box.
For a short YouTube video that shows these steps, please see here.
Our Pluto notebooks can also be viewed statically by downloading the PDF file or by using a GitHub HTML viewer: