This repository contains the materials for a minimalist introduction to Julia, JuMP and InfrastructureModels packages. The tutorial was originally developed for the Los Alamos National Laboratory Grid Science Winter School, January 7-11, 2019.
This README will walk you through how to install Julia and IJulia.
To get started, you first need to install Julia.
- Download and install Julia v1.8 from https://julialang.org/downloads/.
Windows 7 Users: as instructed on the downloads page, you will need to install at least version 3.0 of the Windows Management Framework.
Next, you need to download a copy of these materials.
- If you have
git
installed, (aftercd
'ing to an appropriate directory) run
git clone https://github.com/lanl-ansi/tutorial-grid-science
- If you don't have
git
installed (i.e., the above command fails), download this zip file. Once downloaded, unzip it to an appropriate location.
Now open Julia, either by typing julia
at a terminal, or from where ever you installed it. Once open, you should be faced with the Julia REPL that looks like this:
Now we need to install Jupyter. In the Julia REPL, run the following commands (this may take a little bit of time):
] add IJulia
Okay, last step, let's launch a Jupyter notebook! Open a Julia REPL and then run:
using IJulia
IJulia.notebook(dir="/path/to/tutorial-grid-science")
Note: we've had some reports that dir="~"
fails on some NIX machines. Use an
absolute path instead.
If all goes well, a browser window will open that looks like this:
To get started on the content portion of the tutorials, click on the first notebook entitled Class I - An introduction to Julia
.