Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.45 KB

File metadata and controls

45 lines (29 loc) · 1.45 KB

Oceananigans.jl Tutorial

The purpose of this repository to get comfortable with Oceananigans.jl.

Getting Started

  1. Download Julia

Download Julia from https://julialang.org/downloads/

  1. Activate and instantitae the environment

Make sure you are in the directory containing the Project.toml and Manifest.toml files. Then, in the Julia REPL run the following

Using Pkg; # loads the Julia package manager
Pkg.activate("."); # activates the environment defined by Project.toml
Pkg.instantiate(); # installs dependencies defined by Manifest.toml
  1. Create a Julia Jupyter kernel

From the Julia REPL, run the following:

using IJulia;
installkernel("julia"); # creates a julia kernel for Jupyter
  1. Open jupyterlab

From the Julia REPL, run the following

using IJulia; # skip this if IJulia is already loaded
jupyterlab() # starts a jupyterlab server in this directory
  1. Start using Oceananigans!

Now you can create a notebook and start experimenting with Oceananigans.jl. I suggest trying to run some of the examples in the documentation.

Additional resources