deathbeds / jupikchr

pikchr text-based diagrams for JupyterLab, etc.

Home Page:https://jupikchr.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render pikchr in static outputs

bollwyvl opened this issue · comments

Elevator Pitch

Allow pikchr to be either rendered in-browser or as img or svg tags in various outputs.

There might also be the case for rendering syntax-highlighted pikchr source.

Motivation

This would make pickhr diagrams more useful in documentation.

Prior Art

Design Ideas

drawing pikchr:

  • rendering in-browser
    • get the .wasm and a (new) .js into the document somehow and then rendering.
  • rendering in python
    • getting pickhr more widely-installable and shelling out
    • using a wasm backend (probably wasmer-python)
      • this would be an optional dependency

highlighting pikchr:

The emscripten-compiled .wasm doesn't work simply in wasmer. May proceed with getting it compiled for e.g. conda-forge.

This is now available on conda-forge as fossil-pikchr.