Introduction

Introduction

Welcome to the tutorial pages of the Gridap.jl project.

How to start

The easiest way to start using the tutorials is to click in one of the following links to start reading the html version of the tutorial you want.

Jupyter notebooks

In addition, the tutorials are available as jupyter notebooks. You can access them in three different ways:

How to run the notebooks locally

Clone the repository

$ git clone https://github.com/gridap/Tutorials.git

Move into the folder and open a Julia REPL setting the current folder as the project environment. NOTE: use at least Julia 1.1

$ cd Tutorials
$ julia --project=.
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.1.0 (2019-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> 

Instantiate the environment. This will automatically download all required packages.

# Type ] to enter in pkg mode
(Tutorials) pkg> instantiate

Build the notebooks

# Type Ctrl+C to get back to command mode
julia> include("deps/build.jl")

Open the notebooks

julia> using IJulia
julia> notebook(dir=pwd())

This will open a browser window. Navigate to the notebooks folder and open the tutorial you want. Enjoy!

How to pull the latest version of the tutorials

If you have cloned the repository a while ago, you can update to the newest version with these steps.

Go to the Tutorials repo folder and git pull

$ git pull

Open Julia REPL

$ julia --project=.

and instantiate the environment and build the notebooks again

# Type ] to enter in pkg mode
(Tutorials) pkg> instantiate

# Type Ctrl+C to get back to command mode
julia> include("deps/build.jl")

Done!