Skip to main content

JupyterLab build tools

Project description

Jupyter Builder

Jupyter Builder Tests version on npm version on PyPI version on conda-forge

Build tools for JupyterLab extensions — extracted from the core JupyterLab codebase to be maintained and used independently.

Installation

pip install jupyter_builder

CLI

build

Compile the extension JavaScript assets for consumption by a Jupyter app.

jupyter-builder build <path/to/extension>

develop

Install extension assets in development mode (analogous to pip install -e). Uses a symlink by default.

jupyter-builder develop <path/to/extension>

watch

Automatically rebuild development assets when source files change.

jupyter-builder watch <path/to/extension>

For advanced configuration, see the Advanced section for available flags.

jlpm

jupyter-builder ships jlpm, a Jupyter-aware Node.js package manager wrapper:

jlpm install
jlpm build

Advanced

CLI flags

build
Flag Description
--development Build in development mode (default: False)
--source-map Generate source maps (default: False)
--static-url=<url> Set the URL for static assets
--core-version=<version> JupyterLab core version to build against
--core-package-file=<path> Path to a core application package.json (overrides --core-version)
develop
Flag Description
--overwrite Overwrite existing files
--user Install to the user's directory
--sys-prefix Install under sys.prefix (default: True)
--labextensions-dir=<path> Install to a custom labextensions directory
watch
Flag Description
--development Build in development mode (default: True)
--source-map Generate source maps (default: False)
--core-version=<version> JupyterLab core version to build against
--core-package-file=<path> Path to a core application package.json (overrides --core-version)

Python API

from jupyter_builder.federated_extensions import (
    build_labextension,
    develop_labextension_py,
    watch_labextension,
)

build_labextension(
    "/path/to/extension",
    development=False,
    source_map=False,
    static_url=None,
    core_version=None,
    core_package_file=None,
)

develop_labextension_py(
    "/path/to/extension",
    overwrite=True,
    symlink=True,
    user=False,
    sys_prefix=True,
)

watch_labextension(
    "/path/to/extension",
    labextensions_path=[...],
    development=True,
    source_map=False,
)

Uninstall

pip uninstall jupyter_builder

Credits

This package was initially created during GSoC 2024 by @cronan03, mentored by @fcollonval.

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

jupyter_builder-0.0.9.tar.gz (962.7 kB view details)

Uploaded Source

Built Distribution

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

jupyter_builder-0.0.9-py3-none-any.whl (904.6 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_builder-0.0.9.tar.gz.

File metadata

  • Download URL: jupyter_builder-0.0.9.tar.gz
  • Upload date:
  • Size: 962.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for jupyter_builder-0.0.9.tar.gz
Algorithm Hash digest
SHA256 d266930740c0453619491b21be31b30847f8daa6f5f6aad9db5c507241e60fcf
MD5 954f34f08126d102692e934fe7eda25c
BLAKE2b-256 70fa2b775ee2c20c5976b1c0bd53ddd2b064eb5d0552b9bd6196f2374bd681c5

See more details on using hashes here.

File details

Details for the file jupyter_builder-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: jupyter_builder-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 904.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for jupyter_builder-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c5f55b434e9822ef416474e90200b70d6d77e75d51474f02ff2142a6301407de
MD5 337253a9c37f913827b65e1a266f5b04
BLAKE2b-256 2c3279545479fcd2231021418352f3a04ccc29a9d5774b63e38f89dc72a47303

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