/python-snippets

Python Snippets

Primary LanguageJupyter NotebookMIT LicenseMIT

Python Snippets

These Python Snippets are tested with Python 3.7.x. and are available as Jupyter notebooks (http://jupyter.org/).

Getting Started

All the required Python packages can be installed with pipenv.

Project Setup

First you nee to install pipenv.

$ pip install --user pipenv

Install all the required packages

pipenv install --dev

Run the Notebook

You can start jupyter-lab to play around with the Juypter notebooks.

pipenv run jupyter-lab

Run the Tests (nbval)

To test the Jupyter notebooks this project uses nbval, which is a py.test plugin for validating Jupyter notebooks.

This will check all Jupyter notebooks for errors.

pipenv run py.test --nbval-lax

Upgrade Python Packages

Check which packages have changed.

pipenv update --outdated

This will upgrade everything.

pipenv update

CI Build (GitHub Actions)

  • CI Build

The Python Snippets

The Python snippets are organized by topic.

GeoJSON

RSS

HTTP

Image