Skip to main content

The JupyterLab ASCEND theme

Project description

jupyter_ascend_theme https://pypi.org/project/jupyter-ascend-theme/

The JupyterLab ASCEND theme.
An extension for JupyterLab, published as a pip package, adds two ASCEND-branded themes (light and dark) and some UI elements.

This project was initialized using a copier template for JupyterLab extensions: https://github.com/jupyterlab/extension-template.

The following instructions are based our internal suggestions and the original README generated by the copier.

Development Requirements

To initialize a working development environment, ensure you have the following installed on your machine:

  • Node.js
  • npm
  • Yarn
  • pip
  • Python 3
  • JupyterLab

The tested development environment uses the following versions:

  • Node.js: 20.12.2
  • npm: 10.5.0
  • pip: 24.2
  • Python: 3.11.3
  • JupyterLab: 4.2.4

The template used to create this extension suggests using:

  • JupyterLab >= 4.0.0

Install the published package (production use)

⚠️ Note: Your extensions may break with new releases of JupyterLab. As noted in Backwards Compatibility, Versions and Breaking Changes, JupyterLab development and release cycles follow semantic versioning, so we recommend planning your development process to account for possible future breaking changes that may disrupt users of your extensions. Consider documenting your maintenance plans to users in your project, or setting an upper bound on the version of JupyterLab your extension is compatible with in your project’s package metadata.

https://jupyterlab.readthedocs.io/en/stable/extension/extension_dev.html

To install the extension, execute:

pip install jupyter_ascend_theme

Uninstall

To remove the extension, execute:

pip uninstall jupyter_ascend_theme

Development

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 instead of jlpm below.

# Clone the repository to your local environment
git clone https://gitlab.dev.eoss-cloud.it/cgi-italy/poieo/uis/jupyter-ascend-theme.git

# Change directory to the repository directory
cd jupyter-ascend-theme

# Install python packages in development mode
pip install -e "."

# Install js packages
jlpm install

# 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 simultaneously 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 jupyter_ascend_theme

In development mode, you will also need to remove the symlink created by the 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 jupyter-ascend-theme within that folder.

Packaging and releasing the extension

See RELEASE

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_ascend_theme-0.18.0.tar.gz (474.6 kB view details)

Uploaded Source

Built Distribution

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

jupyter_ascend_theme-0.18.0-py3-none-any.whl (221.7 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_ascend_theme-0.18.0.tar.gz.

File metadata

  • Download URL: jupyter_ascend_theme-0.18.0.tar.gz
  • Upload date:
  • Size: 474.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for jupyter_ascend_theme-0.18.0.tar.gz
Algorithm Hash digest
SHA256 d662f29ebd0b2ca0add1ee620f6d425ea97a459fad59d93127d1d5cfd29a5639
MD5 2bb255eea75622523c1e503a887c8e3e
BLAKE2b-256 98f78c95f04107c82b0b0dcb1266a7dda2c8d55fb0858e68acfc13e8dc3a4451

See more details on using hashes here.

File details

Details for the file jupyter_ascend_theme-0.18.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_ascend_theme-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e25d0f3279b1bde2b7e7afa9fb3e66c4635081bfc871d60ff950e4ea2a3c7c55
MD5 10b6f8851daa88da3236eaa2a1ad68af
BLAKE2b-256 39b33e9222c7c69d228fbc1ebca1cc0f5500c07e24443b5140a5845e113eaa89

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