Skip to content

tgoorden/UnderstandingCarbon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Download and install Julia following the instructions here: https://julialang.org/downloads/

The Julia version used in demo is 1.11.7 (stable release Sept 2025). To update Julia, use juliaup update on the command line.

Start the Julia enviroment with julia on the command line. This should bring you to a prompt that looks like this:

Julia CLI

Try it out! Simple calculations like 3+5 will already work.

Note: Julia syntax stays surprisingly close to basic calculus. For instance, you can define a simple function using something like f(x,y) = x + y . Then, you can execute it immediately with f(3,2). If there is a simple calculation you need often, this is a great way to do it.

Preparing the notebook

Clone this repository locally (or download the files) and navigate to it in your command line. Start julia from this directory.

To start a Pluto notebook, we first need to import (activate) the Package manager and add Pluto:

import Pkg; Pkg.add(\"Pluto\")

Note: Alternatively, use the ] command to go into the very useful Pkg command line and then use add Pluto for the same end result. Use backspace or Ctrl +C to exit the Pkg command line.

Note: Adding a package (and some other operations) often trigger a compilation phase. This is typical Julia behaviour and gets faster as it starts caching the packages.

Import the Pluto backend by running import Pluto (only needed once per Julia session).

Pluto.run() starts the backend. This will (should) open a browser window.

Note: Pluto uses its own package management system. Whatever you import on the Julia command line is not carried over into your notebooks.

Open and run the notebook

Use the Pluto interface (should have opened a webpage in your webbrowser) to open carbon_notebook.jl.

Use the Run notebook code button top right in the browser window to execute the code.

Adapt the code as you like.

Closing your session

Close Pluto with Ctrl+C in the Julia command line.

Close Julia with the function exit() or Ctrl+C.

Please let me know if there are technical issues.

About

Climate Arena workshop - Understanding Carbon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages