Jupyter Notebooks are documents which can contain live (Python) code, equations, visualizations and narrative text and can be used as an intuitive interface for OGS projects. The following video gives an introduction to using OpenGeoSys with Jupyter Notebooks:
You can start with pre-defined container environment from one of the images
With Docker:
docker run --rm -p 8888:8888 -v $PWD:/home/jovyan/work --user `id -u $USER` \
--group-add users quay.io/jupyter/scipy-notebook
This mounts your current directory into ~/work
inside the container.
The above command only works when you run Docker from within a WSL2 Linux shell!
If your current working contains spaces write out $PWD
, e.g.:
... -v /c/Users/My\ Name/working/directory:/home/jovyan/work ...
With Singularity:
singularity run docker://quay.io/jupyter/scipy-notebook
Open the specified URL shown in the command output in your browser, e.g.
http://127.0.0.1:8888/lab?token=xxx
You may have to modify the IP address if this is running on a remote machine.
Click on Terminal and install OGSTools (which also installs ogs itself):
pip install ogstools
You install other Python packages too. Please note that this is a temporary installation. If you stop the container the manually installed packages will be deleted.
This article was written by Lars Bilke. If you are missing something or you find an error please let us know.
Generated with Hugo 0.122.0
in CI job 504124
|
Last revision: November 12, 2024
Commit: [BL/MPI] Use MPI_COMM_WORLD in reduceMin 4aae83e
| Edit this page on