Skip to main content

KTS dark theme for JupyterLab

Project description

kts_dark_theme

Dark theme for Knowing the Sky. Experimental, not yet for distribution.

dev environment setup

Create a conda environment with at least:

  • jupyterlab>=4.3.1
  • jupyterlab-myst
  • python<3.14
  • nodejs=22 (do not use your system node)

make is also required.

If you have the dependencies for Knowing The Sky installed, the only additional requirement is nodejs=22.

Do not install hatch-jupyter-builder.

dev installation

initial

run make build && make install. This will download all node dependencies, perform an initial build of the extension, and symlink it to the central Jupyter extensions directory. Now the extension should be available in JupyterLab, and changes you make to kts_dark_theme/labextension/themes/kts-dark-theme/index.css will appear in JupyterLab on page reload.

rebuild

If you want to ship changes to the theme, run make rebuild. This will propagate changes from kts_dark_theme/labextension/themes/kts-dark-theme/index.css into the non-editable ("regular") version of the extension.

reinstall/relink

If your links get messed up somehow such that you can't rebuild the package or Jupyter can't find your editable CSS, run make reinstall. Do not attempt to relink by directly reinstalling the package with pip. The Lab extension build sequence will cause this to fail.

full reinstall

Run make clean && make build && make install.

A note on PyCharm

The package includes ESLint configurations, which PyCharm will attempt to automatically use. It will probably fail unless you have all the correct node packages and a compatible .stylelintrc available at system level. This will create annoying error messages when editing many files. To fix this, you can either install them at system level or go to Settings/Stylelint and point it to the node module jlpm installed when you did the initial install: node_modules/stylelint (relative to repo root)

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

kts_dark_theme-0.1.1.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

kts_dark_theme-0.1.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file kts_dark_theme-0.1.1.tar.gz.

File metadata

  • Download URL: kts_dark_theme-0.1.1.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for kts_dark_theme-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f06004c8cb03cb7fcedb8abd74921f2639aeb42957af7cf286c5ad9e42ee4958
MD5 308b4ea3b041d1476d2da1ae42b4d908
BLAKE2b-256 89110f22a9ed97e7e3d85aed432553633ddbf81a49fa25237afc7a8d1a0c6d35

See more details on using hashes here.

File details

Details for the file kts_dark_theme-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kts_dark_theme-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for kts_dark_theme-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66fef03cb7d3df9736577c9056004de15f2b8be812d8e1fe8016d00a038e72f6
MD5 6529e1248270f4800fe56b5046c7fb1e
BLAKE2b-256 0db1436888ab81ef7c92e38327743a51430d996088659bb9f134aa8b3afc4f2e

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