Skip to main content

jupyter_anywidget_pandoc

Example Jupyter anywidget that will sideload georgestagg/pandoc-wasm into the browser and support pandoc conversions using it.

For example:

from jupyter_anywidget_pandoc import pandoc_headless

# Load the headless widget
p = pandoc_headless()

# Wait for pandoc wasm to load (blocking;; does not work in JupyterLite)
p.ready()

# Try a conversion
# This is blocking - does not work in JupyterLite
output = p.convert("## Some markdown\nWith *feeling...*")
output
> '<h2 id="some-markdown">Some markdown</h2>\n<p>With <em>feeling…</em></p>'

#Non-blocking
p.base_convert("## Some markdown\nWith *feeling...*")
# When it's ready, collect from:
p.response
> {'status': 'processing'}
> {'status': 'completed', 'output_raw': '<p>Another example</p>'}

Use p.convert_from_file(path, output_format="markdown", timeout=3) etc. to load from a local file path or a URL. If no input_format= is specified, the function will attempt to identify the input file type from a file suffix in the path.

Installation

pip install jupyter_anywidget_pandoc

or with uv:

uv add jupyter_anywidget_pandoc

Open example.ipynb in JupyterLab, VS Code, for a demo...

Metadata

Release files for jupyter-anywidget-pandoc 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-anywidget-pandoc 0.0.5
File Size Uploaded Provenance Actions
jupyter_anywidget_pandoc-0.0.5.tar.gz 66.4 kB Without provenance Details for jupyter_anywidget_pandoc-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-anywidget-pandoc 0.0.5
File Interpreter ABI Platform Actions
jupyter_anywidget_pandoc-0.0.5-py2.py3-none-any.whl Python 2, Python 3 none any Details for jupyter_anywidget_pandoc-0.0.5-py2.py3-none-any.whl

Total release size: 135.1 kB

Release files / jupyter_anywidget_pandoc-0.0.5.tar.gz

Download URL jupyter_anywidget_pandoc-0.0.5.tar.gz
Size 66.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f43c108775c0b962bf76cf269b759b18ecbe1e082380819b972f1895cbdf3b36
BLAKE2b-256 checksum
How to use checksums
f09d4108fd235dedfe04766cc2c1530d19493b4c637e9d606ccb7178866b848f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Release files / jupyter_anywidget_pandoc-0.0.5-py2.py3-none-any.whl

Download URL jupyter_anywidget_pandoc-0.0.5-py2.py3-none-any.whl
Size 68.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8c77bd9a7a20fa40510527f5fbd195e4a0060ffd27c113d6421f6f054cc7d423
BLAKE2b-256 checksum
How to use checksums
48ee56421745c6f6fa3abe55273ab981e1d3b21538f5331fa229a7a105f282a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Security for jupyter-anywidget-pandoc 0.0.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page