Installing Julia & Pluto
I - Installing Julia
When you see below add Plutoadd Pluto \(\rightarrow\) ↩ Enter↩ Enter , it means that you should type “add Pluto” followed by pressing “Enter” on our keyboard. And when you see AltGrAltGr + 99 it means that you need to press the keyboard’s keys AltGrAltGr and 99 simultaneously.
The installation instructions for Julia vary depending on the Operating System (OS) of your computer. Please choose your OS tab in the following box to see the appropriate instructions.
- To make sure that you download the correct executable for the Windows OS, you can download it from Windows installer Julia v1.10.10
- Check your DownloadsDownloads folder and double-click the file you have just downloaded to run it
- Allow the installation to be done in the default directory
- Click on: ☑️ Add Julia to Path☑️ Add Julia to Path
- Click on: FinishFinish
🎉 Well done! By now, Julia should be correctly installed on your computer.
To run it, search for and click on the Julia icon .
- Be careful to choose the correct Apple executable
according to the processor (Intel/Rosetta or Apple Silicon) you have on your Mac: this means that you have to choose (2) or (3) below. - If your Mac has an Intel or Rosetta processor, you can download the correct executable from macOS x86 (Intel or Rosetta) Julia v1.110.10
- If your Mac has an Apple Silicon processor, you can download the correct executable from macOS (Apple Silicon) Julia v1.10.10
- Check your DownloadsDownloads folder and drag the executable that you downloaded to the ApplicationsApplications folder.
🎉 Well done! By now, Julia should be correctly installed on your computer.
To run it, search for and click on the Julia icon that you will see in the folder Applications.
- Download the executable: 64-bit (.glibc) (for distributions like Ubuntu or Mint) from Generic Linux on x86 Julia v1.10.10
- Extract the compressed folder julia-1.10.10julia-1.10.10 and save it to your HomeHome directory.
- Inside the folder julia-1.10.10julia-1.10.10 there should be another folder named binbin. Get the path to that folder by clicking with the right button of your mouse and choosing PropertiesProperties
- Return to your HomeHome directory and search for a file called .profile.profile`
- At the end of the file .profile.profile add the following path:
PATH="/home/<user>/<julia-1.10.10>/bin:$PATH"
Save the changes you have just made to this file.
- Please restart your computer right now.
🎉 Well done! By now, Julia should be correctly installed on your computer.
To run it, open a terminal and run: juliajulia \(\rightarrow\) ↩ Enter↩ Enter
II - Installing Pluto
Next we will install Pluto. Remember Pluto is a Julia Package. This means that we install it and run it from inside Julia.
Run Julia the way you were told at the end of the installation instructions above (it varies according to te operating system you have). You should bee seeing a window like this:
With Julia running, type the character
], usually by using the keyboard combination AltGrAltGr + 99 or CtrlCtrl + AltAlt + 99 in Windows and Linux, and optionoption + 99 on a Mac. The previous window should become like this:
Then type: add Plutoadd Pluto \(\rightarrow\) ↩ Enter↩ Enter
When the Pluto installation is completed, go back to julia>julia> mode. To do so, you just need to:
- Press ⟵ Backscape⟵ Backscape on Windows
- Press deletedelete on a Mac
🎉 Well done! By now, Pluto should be correctly installed on your computer. To start Pluto, in the Julia window run:
import Pluto; Pluto.run()import Pluto; Pluto.run() \(\rightarrow\) ↩ Enter↩ Enter
Pluto will run in a window of your default Browser (we recommend Google Chrome or Firefox).
III - Updating Pluto
The instructions below should not be used in our course unless the teaching team explicitly tells you to do so. In Julia 1.10.10, the notebooks will load faster if we do not update our installation.
The instructions below are here for general use. If later you want to continue using Julia and the gap between now and then is quite large, it’s better to upgrade your Pluto installation to a more recent version. But, as said, do not do that throughout the upcoming semester.
For general use.
The team that created Pluto updates this package regularly. So, it is advisable to update Pluto occasionally to get the newest version on your computer. As Pluto is a Julia package, this means that we will have to update it from inside Julia.
Run Julia the way you were told at the end of the installation instructions above (it varies according to the operating system you have). You should bee seeing a window like this (see the julia>julia> mode):
With Julia running, type the character
]. In Windows (and Linux) this character is achieved using the keyboard combination AltGrAltGr + 99 or CtrlCtrl + AltAlt + 99; in Mac by using optionoption + 99. The previous window should become like this (pkg>pkg> mode):
Then type: updateupdate + ↩ Enter↩ Enter
When the Pluto update is completed, to go back to
julia>mode:- Press ⟵ Backscape⟵ Backscape on Windows
- Press deletedelete on a Mac
🎉 Well done! By now, you have the latest version of Pluto installed on your PC. To start using Pluto see the following section.