Skip to main content

A Jupyter Notebook server extension which crawls a thredds catalog

Project description

jupyterlab_thredds

Build Status SonarCloud Quality SonarCloud Coverage DOI

JupyterLab dataset browser for THREDDS catalog

Can inject iris/xarray/leaflet code cells into a Python notebook of a selected dataset to further process/visualize the dataset.

screenshot

Prerequisites

  • JupyterLab, pip install jupyterlab
  • ipywidgets, jupyter labextension install @jupyter-widgets/jupyterlab-manager, requirement for ipyleaflet
  • ipyleaflet, jupyter labextension install jupyter-leaflet, to load a WMS layer
  • iris, conda install -c conda-forge iris

Installation

pip install jupyterlab_thredds
jupyter labextension install @ewatercycle/jupyterlab_thredds

Usage

  1. Start Jupyter lab with jupyter lab
  2. In Jupyter lab open a notebook
  3. Open the THREDDS tab on the left side.
  4. Fill the catalog url
  5. Press search button
  6. Select how you would like to open the dataset, by default it uses iris Python package.
  7. Press a dataset to insert code into a notebook

Development

For a development install, do the following in the repository directory:

pip install -r requirements.txt
jlpm
jlpm build
jupyter labextension link .
jupyter serverextension enable --sys-prefix jupyterlab_thredds

(jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab.)

To rebuild the package and the JupyterLab app:

jlpm build
jupyter lab build

Watch mode

# shell 1
jlpm watch
# shell 2
jupyter lab --ip=0.0.0.0 --no-browser --watch

Release

To make a new release perform the following steps:

  1. Update version in package.json, CITATION.cff and jupyterlab_thredds/version.py
  2. Record changes in CHANGELOG.md
  3. Make sure tests pass by running jlpm test and pytest
  4. Publish lab extension to npmjs with jlpm build and jlpm publish --access=public
  5. Publish server extension to pypi with python setup.py sdist bdist_wheel and twine upload dist/*
  6. Create GitHub release
  7. Update DOI in README.md and CITATION.cff

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_thredds-0.4.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

jupyterlab_thredds-0.4.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_thredds-0.4.0.tar.gz.

File metadata

  • Download URL: jupyterlab_thredds-0.4.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for jupyterlab_thredds-0.4.0.tar.gz
Algorithm Hash digest
SHA256 cfdfd4cd83d94aadb7fe2d3738339232432def8452eea674e23e3cc71e815f64
MD5 8d45f1f71f99e0b82bb5e4154803197f
BLAKE2b-256 c9819a60f8ead0b1c0296bfba7dabad2060e8c7ca6352a926e25cea8b1149d77

See more details on using hashes here.

File details

Details for the file jupyterlab_thredds-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: jupyterlab_thredds-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for jupyterlab_thredds-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d74931297a49f3a3a3e60e09977ff9923d8271d94a36fb2aa71ac40e28dad824
MD5 28fed0a04b26dc9966d6007708ac1688
BLAKE2b-256 451ac1205ebe438f8249eafcc42e4672a8491fd1c85bf8d49196725b3892aef3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page