A Jupyter Notebook server extension which crawls a thredds catalog
Project description
jupyterlab_thredds
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.
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
- Start Jupyter lab with
jupyter lab
- In Jupyter lab open a notebook
- Open the
THREDDS
tab on the left side. - Fill the catalog url
- Press search button
- Select how you would like to open the dataset, by default it uses iris Python package.
- 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:
- Update version in
package.json
,CITATION.cff
andjupyterlab_thredds/version.py
- Record changes in
CHANGELOG.md
- Make sure tests pass by running
jlpm test
andpytest
- Publish lab extension to npmjs with
jlpm build
andjlpm publish --access=public
- Publish server extension to pypi with
python setup.py sdist bdist_wheel
andtwine upload dist/*
- Create GitHub release
- Update DOI in
README.md
andCITATION.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.1.tar.gz
(14.0 kB
view details)
Built Distribution
File details
Details for the file jupyterlab_thredds-0.4.1.tar.gz
.
File metadata
- Download URL: jupyterlab_thredds-0.4.1.tar.gz
- Upload date:
- Size: 14.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | db72ed465c521f50afe9aed69bafdda7bc9f6ff7deb50a9ea75dc056ea18a214 |
|
MD5 | f3ad36c73d5aa3d50513c98b2858e142 |
|
BLAKE2b-256 | 9b0b2a7ad29b36bee37a7f2858c3fbb9d849f432da74f81c8826384ed0f67e04 |
File details
Details for the file jupyterlab_thredds-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: jupyterlab_thredds-0.4.1-py3-none-any.whl
- Upload date:
- Size: 12.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f168115ad6151ef4d8b71b947c2579d94bc85d89cf859bc0050490787cb5646 |
|
MD5 | f5e137ee8e3b4f3fee7616615753e870 |
|
BLAKE2b-256 | 0526571bf1feddda78708c0646974981d169546834ecc42fc20ce7137ef76af8 |