{"id":13856404,"url":"https://github.com/urbica/gis-notebook","last_synced_at":"2025-09-07T14:16:53.526Z","repository":{"id":77862390,"uuid":"75196506","full_name":"urbica/gis-notebook","owner":"urbica","description":"Jupyter Notebook Python GIS Stack","archived":false,"fork":false,"pushed_at":"2018-07-12T15:11:13.000Z","size":8,"stargazers_count":45,"open_issues_count":0,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-13T17:48:47.774Z","etag":null,"topics":["gis","jupiter","python"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/urbica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-11-30T14:48:43.000Z","updated_at":"2025-04-14T18:27:30.000Z","dependencies_parsed_at":"2023-02-25T20:15:24.782Z","dependency_job_id":null,"html_url":"https://github.com/urbica/gis-notebook","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"2553506ffb82e18079540fe9eb1581d2bdefa2e3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/urbica/gis-notebook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fgis-notebook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fgis-notebook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fgis-notebook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fgis-notebook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urbica","download_url":"https://codeload.github.com/urbica/gis-notebook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fgis-notebook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046016,"owners_count":25212985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gis","jupiter","python"],"created_at":"2024-08-05T03:00:59.588Z","updated_at":"2025-09-07T14:16:53.475Z","avatar_url":"https://github.com/urbica.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/urbica/gis-notebook.svg?branch=master)](https://travis-ci.org/urbica/gis-notebook)\n![Docker pulls](https://img.shields.io/docker/pulls/urbica/gis-notebook.svg)\n![Docker stars](https://img.shields.io/docker/stars/urbica/gis-notebook.svg)\n[![Metadata](https://images.microbadger.com/badges/image/urbica/gis-notebook.svg)](https://microbadger.com/images/urbica/gis-notebook)\n\n# Urbica Jupyter Notebook Python GIS Stack\n\nThis image is based on [Jupyter Notebook Scientific Python Stack](https://github.com/jupyter/docker-stacks/tree/master/scipy-notebook).\n\n## What it Gives You\n\n* Jupyter Notebook 5.2.x\n* Conda Python 3.x environment\n* pandas, matplotlib, scipy, seaborn, scikit-learn, scikit-image, sympy, cython, patsy, statsmodel, cloudpickle, dill, numba, bokeh, vincent, beautifulsoup, xlrd pre-installed\n* **fiona, folium, gdal, geocoder, geopandas, geopy, googlemaps, psycopg2, pyproj, pysal, rtree, shapely pre-installed**\n* Unprivileged user `jovyan` (uid=1000, configurable, see options) in group `users` (gid=100) with ownership over `/home/jovyan` and `/opt/conda`\n* [tini](https://github.com/krallin/tini) as the container entrypoint and [start-notebook.sh](../base-notebook/start-notebook.sh) as the default command\n* A [start-singleuser.sh](../base-notebook/start-singleuser.sh) script useful for running a single-user instance of the Notebook server, as required by JupyterHub\n* A [start.sh](../base-notebook/start.sh) script useful for running alternative commands in the container (e.g. `ipython`, `jupyter kernelgateway`, `jupyter lab`)\n* Options for HTTPS, password auth, and passwordless `sudo`\n\n## Basic Use\n\nThe following command starts a container with the Notebook server listening for HTTP connections on port 8888 with a randomly generated authentication token configured.\n\n```\ndocker run -it --rm -p 8888:8888 urbica/gis-notebook\n```\n\nTake note of the authentication token included in the notebook startup log messages. Include it in the URL you visit to access the Notebook server or enter it in the Notebook login form.\n\n## Notebook Options\n\nThe Docker container executes a [`start-notebook.sh` script](../base-notebook/start-notebook.sh) script by default. The `start-notebook.sh` script handles the `NB_UID`, `NB_GID` and `GRANT_SUDO` features documented in the next section, and then executes the `jupyter notebook`.\n\nYou can pass [Jupyter command line options](https://jupyter.readthedocs.io/en/latest/projects/jupyter-command.html) through the `start-notebook.sh` script when launching the container. For example, to secure the Notebook server with a custom password hashed using `IPython.lib.passwd()` instead of the default token, run the following:\n\n```\ndocker run -d -p 8888:8888 urbica/gis-notebook start-notebook.sh --NotebookApp.password='sha1:74ba40f8a388:c913541b7ee99d15d5ed31d4226bf7838f83a50e'\n```\n\nFor example, to set the base URL of the notebook server, run the following:\n\n```\ndocker run -d -p 8888:8888 urbica/gis-notebook start-notebook.sh --NotebookApp.base_url=/some/path\n```\n\nFor example, to disable all authentication mechanisms (not a recommended practice):\n\n```\ndocker run -d -p 8888:8888 urbica/gis-notebook start-notebook.sh --NotebookApp.token=''\n```\n\nYou can sidestep the `start-notebook.sh` script and run your own commands in the container. See the _Alternative Commands_ section later in this document for more information.\n\n## Docker Options\n\nYou may customize the execution of the Docker container and the Notebook server it contains with the following optional arguments.\n\n* `-e GEN_CERT=yes` - Generates a self-signed SSL certificate and configures Jupyter Notebook to use it to accept encrypted HTTPS connections.\n* `-e NB_UID=1000` - Specify the uid of the `jovyan` user. Useful to mount host volumes with specific file ownership. For this option to take effect, you must run the container with `--user root`. (The `start-notebook.sh` script will `su jovyan` after adjusting the user id.)\n* `-e NB_GID=100` - Specify the gid of the `jovyan` user. Useful to mount host volumes with specific file ownership. For this option to take effect, you must run the container with `--user root`. (The `start-notebook.sh` script will `su jovyan` after adjusting the group id.)\n* `-e GRANT_SUDO=yes` - Gives the `jovyan` user passwordless `sudo` capability. Useful for installing OS packages. For this option to take effect, you must run the container with `--user root`. (The `start-notebook.sh` script will `su jovyan` after adding `jovyan` to sudoers.) **You should only enable `sudo` if you trust the user or if the container is running on an isolated host.**\n* `-v /some/host/folder/for/work:/home/jovyan/work` - Mounts a host machine directory as folder in the container. Useful when you want to preserve notebooks and other work even after the container is destroyed. **You must grant the within-container notebook user or group (`NB_UID` or `NB_GID`) write access to the host directory (e.g., `sudo chown 1000 /some/host/folder/for/work`).**\n\n## SSL Certificates\n\nYou may mount SSL key and certificate files into a container and configure Jupyter Notebook to use them to accept HTTPS connections. For example, to mount a host folder containing a `notebook.key` and `notebook.crt`:\n\n```\ndocker run -d -p 8888:8888 \\\n    -v /some/host/folder:/etc/ssl/notebook \\\n    urbica/gis-notebook start-notebook.sh \\\n    --NotebookApp.keyfile=/etc/ssl/notebook/notebook.key\n    --NotebookApp.certfile=/etc/ssl/notebook/notebook.crt\n```\n\nAlternatively, you may mount a single PEM file containing both the key and certificate. For example:\n\n```\ndocker run -d -p 8888:8888 \\\n    -v /some/host/folder/notebook.pem:/etc/ssl/notebook.pem \\\n    urbica/gis-notebook start-notebook.sh \\\n    --NotebookApp.certfile=/etc/ssl/notebook.pem\n```\n\nIn either case, Jupyter Notebook expects the key and certificate to be a base64 encoded text file. The certificate file or PEM may contain one or more certificates (e.g., server, intermediate, and root).\n\nFor additional information about using SSL, see the following:\n\n* The [docker-stacks/examples](https://github.com/jupyter/docker-stacks/tree/master/examples) for information about how to use [Let's Encrypt](https://letsencrypt.org/) certificates when you run these stacks on a publicly visible domain.\n* The [jupyter_notebook_config.py](jupyter_notebook_config.py) file for how this Docker image generates a self-signed certificate.\n* The [Jupyter Notebook documentation](https://jupyter-notebook.readthedocs.io/en/latest/public_server.html#using-ssl-for-encrypted-communication) for best practices about running a public notebook server in general, most of which are encoded in this image.\n\n## Conda Environments\n\nThe default Python 3.x [Conda environment](http://conda.pydata.org/docs/using/envs.html) resides in `/opt/conda`.\n\nThe commands `jupyter`, `ipython`, `python`, `pip`, and `conda` (among others) are available in both environments. For convenience, you can install packages into either environment regardless of what environment is currently active using commands like the following:\n\n```\n# install a package into the default (python 3.x) environment\npip install some-package\nconda install some-package\n```\n\n## Alternative Commands\n\n### start.sh\n\nThe `start.sh` script supports the same features as the default `start-notebook.sh` script (e.g., `GRANT_SUDO`), but allows you to specify an arbitrary command to execute. For example, to run the text-based `ipython` console in a container, do the following:\n\n```\ndocker run -it --rm urbica/gis-notebook start.sh ipython\n```\n\nOr, to run JupyterLab instead of the classic notebook, run the following:\n\n```\ndocker run -it --rm -p 8888:8888 urbica/gis-notebook start.sh jupyter lab\n```\n\nThis script is particularly useful when you derive a new Dockerfile from this image and install additional Jupyter applications with subcommands like `jupyter console`, `jupyter kernelgateway`, etc.\n\n### Others\n\nYou can bypass the provided scripts and specify your an arbitrary start command. If you do, keep in mind that certain features documented above will not function (e.g., `GRANT_SUDO`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbica%2Fgis-notebook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furbica%2Fgis-notebook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbica%2Fgis-notebook/lists"}