importpython-markdown
Runnable Python examples in Markdown pages, for MkDocs, Zensical and anything else built on Python-Markdown, powered by importpython.org.
Wrap a section of ordinary Markdown in #! and !# gates:
#!mpy terminal title="A first example"
A caption, rendered as normal Markdown.
```python
print("Hello, world!")
```
!#
The section becomes a runnable example: the code, a Run button,
and the program's output beneath - nothing downloaded until a
reader presses Run. Plain fences are the program; a fence with
title="name.py" is a file delivered beside it; config and
body fences carry BFP settings and page markup (escaped for
you). The py and mpy types choose Pyodide or MicroPython,
and terminal, debug, send-embedder-url, title="...",
run-label="...", stop-label="...", theme="...",
terminal-rows="...", terminal-cols="...", class and id
pass through to the element - each documented at
importpython.org.
Install and enable:
pip install importpython-markdown
# mkdocs.yml
markdown_extensions:
- importpython
# zensical.toml
[project.markdown_extensions]
importpython = {}
Pre-release honesty: until BFP's first release, the default
script_url points at the service's test channel, which may
change; pin your own copy with the script_url option if that
matters to you today.
The full documentation lives at importpython.org/docs.
Metadata
Release files for importpython-markdown 0.1.2
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 |
|---|---|---|---|---|
| importpython_markdown-0.1.2.tar.gz | 12.4 kB | Without provenance | Details for importpython_markdown-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| importpython_markdown-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for importpython_markdown-0.1.2-py3-none-any.whl |
Total release size: 21.6 kB
Release files / importpython_markdown-0.1.2.tar.gz
| Download URL | importpython_markdown-0.1.2.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8646ae180a8b78c9210118aea1b4b66d906872184670148bd62d9b75f301b2f9
|
|
BLAKE2b-256 checksum How to use checksums |
af4f1cfb4640d01c5d3091394a995515ccfb7664cb9295098fec4bb0318a76ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / importpython_markdown-0.1.2-py3-none-any.whl
| Download URL | importpython_markdown-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d9ae4d983a012f096afdeb1a4c8be2ee9567f2c0392cbbe5f7ac877f4192a11
|
|
BLAKE2b-256 checksum How to use checksums |
40b4a86bddb54248953bd4597beab8b0c20013067de20739bef3bac55215d6c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for importpython-markdown 0.1.2
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.