Skip to main content

pikchr text-based diagrams for JupyterLab, etc.

Project description

jupickhr

docs install extend demo
rtd-badge pypi-badge
conda-badge
npm-badge binder-badge
lite-badge

pikchr text-based diagrams for JupyterLab, etc.

features

  • supports writing and rendering pikchr in:
    • pikchr fenced code blocks in .ipynb cells and .md documents
    • rich display for the text/x-pikchr MIME type
    • Open With... ⯈ Pikchr for .pikchr text documents
    • jupickhr.widget.Pikchr for live updating
  • generates:
    • portable img tags (with fixed up special entities and fonts)
      • these can be drag-and-dropped directly into other tools, like ipydrawio
    • inline SVG
  • light, dark and autodetected themes

install

pip install jupikchr "jupyterlab>=3.4,<4"

or

mamba install -c conda-forge jupikchr "jupyterlab>=3.4,<4"

or

conda install -c conda-forge jupikchr "jupyterlab>=3.4,<4"

If you want to integrate with, or just hack on, jupikchr itself, try the development installation steps.

how it works

  • in the browser
    • pikchr source and metadata is found:
      • in Markdown by jupyterlab-markup
      • in text/x-pikchr rich display outputs
      • in the Jupyter widget
    • a WebWorker is started which loads the pickchr C executable, compiled to WebAssembly
    • the resulting HTML is either displayed directly, or embedded inside a portable img tag
      • in the case of rich outputs, the text/html display type is also stored inside the output as a fallback, e.g. for nbconvert

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

jupikchr-0.2.0.tar.gz (297.4 kB view details)

Uploaded Source

Built Distribution

jupikchr-0.2.0-py3-none-any.whl (258.3 kB view details)

Uploaded Python 3

File details

Details for the file jupikchr-0.2.0.tar.gz.

File metadata

  • Download URL: jupikchr-0.2.0.tar.gz
  • Upload date:
  • Size: 297.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for jupikchr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cbe904cc82abc70ab18983ec6c1df86f2830721169ca0204cbb92321376504f6
MD5 5b458834c0aabab113af90e4de18ed92
BLAKE2b-256 0e67fb28123f778cf9ad135659f82c5bac3ac8cfb362882080dbb0c0317197a4

See more details on using hashes here.

File details

Details for the file jupikchr-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jupikchr-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 258.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for jupikchr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b9a95b6ccfe4fb3aca67514f3ef77bd7e4ae044d197d8986014f86746ff7517
MD5 765204524330f9a36d3ecbeeb9da4f0c
BLAKE2b-256 5af2e795ccee9b56e1af0d776f2a0c35a46fd63e707774c87a08df4a70c8f206

See more details on using hashes here.

Supported by

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