Create OGC Earth Observation Application Packages from Jupyter notebooks
Project description
xcengine: turn Jupyter notebooks into Application Packages
xcengine provides tools to convert a Jupyter notebook into one of several parameterized, headlessly runnable forms:
- A Python script
- A Docker container image
- An OGC Earth Observation Application Package
Defining parameters in a notebook
xcengine uses the same convention as
papermill
for defining parameters in a notebook. All parameters should be set as
Python variables in the same notebook code cell, and that cell should be
designated as the parameter cell by giving it the tag parameters. In
JupyterLab, you can do this using the property inspector (⚙⚙ icon in the
right sidebar). See the papermill
documentation
for more details.
During conversion, xcetool will detect any variables that are set in the
parameters cell and make them available as command-line parameters for the
output script and container, and as workflow parameters for the application
package.
xcetool usage
xcengine provides a command-line tool called xcetool, which has several
subcommands for different functions. Use the --help option with these
subcommands to get more details on usage.
xcetool make-script
Convert a Jupyter notebook to a non-interactive Python script.
xcetool image build
Convert a Jupyter notebook to a Docker container image. This subcommand can additionally produce a Common Workflow Language (CWL) file defining an OGC Earth Observation Application Package which uses the container image.
xcetool image run
Run a Docker container using an image converted from a Jupyter notebook.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xcengine-0.1.0.tar.gz.
File metadata
- Download URL: xcengine-0.1.0.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
598c616d0b3910eda03b8e8a0d18ed5942e516ecc11bc2ea18114eb0c52941d5
|
|
| MD5 |
1e73b575bbe40f3f6fc7f8da8c02bef1
|
|
| BLAKE2b-256 |
687c2c87067d77027d2e0b0b86df65e2ac67f6fc35882317ce77d0c0f937b10f
|
File details
Details for the file xcengine-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xcengine-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f4e33556eb8bd1279172b06950db8886a35ad79bcce85a32d884edda1751c36
|
|
| MD5 |
f282a72024f17de1f794d82cb76ac830
|
|
| BLAKE2b-256 |
30d8174eeb3a958b404b3162ae0efe0d6801b88aa74c4059c0dd3b065f5b3d59
|