This release is a pre-release and may not be stable for production use.
imscribe
Markdown, streaming and diff views for Dear ImGui
in Python: paragraphs justified and broken into lines the way TeX breaks
them, headings, lists, tables, fenced code, formulas written as $...$,
text that arrives a piece at a time, side-by-side and unified diffs,
selection and copying. You hand a view markdown source and call draw each
frame, inside your own window.
The text is set and drawn by imtypeset,
a C++ library that binds to the Dear ImGui inside the
imgui-bundle wheel. imscribe is the
Python layer over it: it reads the markdown, describes it to the library, and
is the views. There is no other renderer in it: where imtypeset is not
installed a view draws nothing and says why.
This is a beta (0.2.0b1), installed only when asked for:
pip install --pre imscribe
Two pins, held together
imscribe requires both of these exactly, and they move together:
imgui-bundle==1.92.900
imtypeset==0.4.1.192900
An imtypeset wheel is built for one imgui-bundle version and its fourth
number says which (192900 is 1.92.900). So imscribe cannot be installed
beside anything that needs another imgui-bundle. An application that pins
its own dependencies pins these two with it.
Where it runs
Anywhere imgui-bundle 1.92.900 does, as far as installing goes. It DRAWS
where imtypeset has a wheel:
| CPython | |
|---|---|
| Linux x86-64, glibc 2.28 or later | 3.11, 3.12, 3.13, 3.14 |
| macOS 14 or later on Apple Silicon | 3.11, 3.12, 3.13, 3.14 |
Not Windows, not Linux on arm64, not macOS on Intel: there pip install imscribe succeeds without imtypeset, imscribe.typesetter.kind() answers
Kind.NOT_INSTALLED, and nothing is drawn. On Linux with musl (Alpine), with
a glibc older than 2.28, and on macOS older than 14, the install fails at
imtypeset, which has no wheel that fits; imgui-bundle has none for an old
glibc or an old macOS either.
On Linux, imgui-bundle's extension module loads libX11.so.6 and
libXext.so.6 from the system when it is imported (read from the 1.92.900
wheel's binaries); neither is in a wheel. On Debian and Ubuntu they are the
packages libx11-6 and libxext6. imtypeset's library asks the system for
nothing beyond the C and C++ runtimes.
Using it
from imgui_bundle import hello_imgui, immapp
from imscribe import DARK_PALETTE, Theme, TypesetView, typesetter
SOURCE = "# Hello\n\nSome *markdown*, set in lines of even colour, and $e^{i\\pi} + 1 = 0$."
assert typesetter.module() is not None, typesetter.reason() # before any window
views = []
def fonts():
hello_imgui.imgui_default_settings.load_default_font_with_font_awesome_icons()
typesetter.load_fonts() # last, after the application's own fonts
def gui():
if not views: # on the first frame: the fonts are loaded by then
views.append(TypesetView(SOURCE, theme=Theme.build(), palette=DARK_PALETTE, math=True))
views[0].draw(palette=DARK_PALETTE)
params = hello_imgui.RunnerParams()
params.callbacks.load_additional_fonts = fonts
params.callbacks.show_gui = gui
params.callbacks.before_exit = typesetter.unload # before Dear ImGui's context goes
immapp.run(params)
Where no imtypeset was found, the assert stops with IMTYPESET_LIBRARY is not set. That is the sentence for "there is no imtypeset here": on a platform
outside the table above there is nothing to set, and the variable is only how
a developer names a library built from source.
TypesetStreamView takes text as it arrives (append), and TypesetDiffView
two texts or a unified diff. python -m imscribe.typesetter prints, with no
window, which imtypeset was found and whether it was accepted.
What is not known
- Nobody but its author has looked at what it draws. The tests measure where text is placed and that frames are drawn; none of them judges how it looks.
- macOS has not been run. imtypeset's wheels pass their own installed checks on GitHub's macOS arm64 runners (three of that project's 55 tests fail there, by its own notes); imscribe itself has never run on a Mac.
- Everything was measured on Linux x86-64, CPython 3.11, with a software renderer and a display scale of 1.
More
The repository has the examples, the demo application, the tests and the notes on every decision: https://github.com/WalterCReel3/imscribe
MIT licence. The fonts the views set text in are not in this package: they
ship in the imgui-bundle wheel under their own licences.
Metadata
Release files for imscribe 0.2.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| imscribe-0.2.0b1.tar.gz | 547.6 kB | With provenance | Details for imscribe-0.2.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imscribe-0.2.0b1-py3-none-any.whl | Python 3 | none | any | Details for imscribe-0.2.0b1-py3-none-any.whl |
Total release size: 1.1 MB
Release files / imscribe-0.2.0b1.tar.gz
| Download URL | imscribe-0.2.0b1.tar.gz |
|---|---|
| Size | 547.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e405d83fa761384ad4f38ac7a9e9c1822c6e2aa97ca400a4356cb97c43f368ef
|
|
BLAKE2b-256 checksum How to use checksums |
f01548441e7ec422d580a839508693df6df13f97883011a439e58564430539de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logRelease files / imscribe-0.2.0b1-py3-none-any.whl
| Download URL | imscribe-0.2.0b1-py3-none-any.whl |
|---|---|
| Size | 593.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
460631a015fe494e6060f0f0691b4318f2919a4b60070338e8ee8d8d90cb14e2
|
|
BLAKE2b-256 checksum How to use checksums |
d04e1ebf87e7d6216eb03343dff7c22bb8c905ad82a05341560f229c510f7aac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logSecurity for imscribe 0.2.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for imscribe-0.2.0b1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.