Skip to main content

A MAAP Jupyter plugin for managing OGC algorithms

Project description

OGC Build Status:

Build

MAAP Algorithms Jupyter Extension

A JupyterLab extension.

Requirements

  • JupyterLab >= 4.4.0

Install

To install the extension, execute:

pip install maap_algorithms_jupyter_extension

Uninstall

To remove the extension, execute:

pip uninstall maap_algorithms_jupyter_extension

Contributing

Development install

Note: You will need NodeJS to build the extension package.

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# Clone the repo to your local environment
# Change directory to the maap_algorithms_jupyter_extension directory
# Install package in development mode
pip install -e "."
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm build

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab

With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

By default, the jlpm build command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:

jupyter lab build --minimize=False

Development uninstall

pip uninstall maap_algorithms_jupyter_extension

In development mode, you will also need to remove the symlink created by jupyter labextension develop command. To find its location, you can run jupyter labextension list to figure out where the labextensions folder is located. Then you can remove the symlink named maap_algorithms_jupyter_extension within that folder.

For PRs, if it fails the lint check, run jlpm format

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

maap_algorithms_jupyter_extension-1.0.1.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file maap_algorithms_jupyter_extension-1.0.1.tar.gz.

File metadata

File hashes

Hashes for maap_algorithms_jupyter_extension-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c940c8a8947573600c0d231425b46a6a66c91f030ad6c9665faa1ca1e44bbe31
MD5 c447d51597e6c1afd94c16d44c24a385
BLAKE2b-256 48fd196e6838f5ded80b58e859c7babd9f56d58834a37b5bd9512cf5f4cf8171

See more details on using hashes here.

File details

Details for the file maap_algorithms_jupyter_extension-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for maap_algorithms_jupyter_extension-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4329aad5e628e09b5983653ab691d3cab93a91ae8a7da043726362aa69405e9
MD5 a365b18e598480c32d35c8ad1ec71180
BLAKE2b-256 596d277695d605deab68cd02f7d33a33210349b0c81261caf5d3dd898887d23b

See more details on using hashes here.

Supported by

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