Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
/ ogc-jupyter Public archive

Jupyter notebook(s) to showcase OGC developments

Notifications You must be signed in to change notification settings

avillar/ogc-jupyter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ISO19157-3 properties uplift example Jupyter notebook

Running the notebook

Docker (recommended)

Since the notebook has external dependencies (namely the ogc-na module), the easiest way to view the notebook is by using Docker.

After ensuring that you have a working Docker environment, run the following command:

docker run --rm -p 8888:8888 -v "$(pwd)/output:/output" dockerogc/jupyter-iso19157-3

This will start the Notebook, making it available on port 8888. Check the console output for a link in the form http://127.0.0.1:8888/lab?token=abcdef123456; you will need to use it to access the Notebook. You can then open the Uplift pipeline example.ipynb Notebook file.

Notes:

  • The --rm flag above will destroy the Notebook container once you are done with it.
  • The -p 8888:8888 configuration is used to forward port 8888 on your machine to port 8888 in the container.
  • -v $(pwd)/output:/output mounts a local (in the current directory) output subdirectory to the /output directory in the container, so that all files created when running the notebook will be available even after the Notebook is closed. The syntax maybe different for Windows environments.

Locally

To run the Notebook locally, you first need to create a Python virtual environment and install the required packages:

  1. Run python -m venv venv. This will create a venv subdirectory with a virtual environment.
  2. Execute . venv/bin/activate to activate the virtual environment.
  3. Install Jupyter Lab by running python -m pip install jupyterlab
  4. Install the required dependencies with python -m pip install -r requirements.txt.
  5. Start the Notebook: jupyter-lab

The Notebook will be available on port 8888 (the last of the commands above should automatically open a browser window). You can then open the Uplift pipeline example.ipynb Notebook file.

About

Jupyter notebook(s) to showcase OGC developments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published