Skip to main content

Mkdocs-Ipymd

PyPI version codecov

Mkdocs plugin for Interactive Python

This plugin allows you to use python, in VSCode interactive fashion, to create docs. The motivation was having a way to create interactive examples in the documentation, without increasing the git repository size.

Installation

pip install mkdocs-ipymd

or with poetry:

poetry add mkdocs-ipymd

Usage

1. Add the plugin to your mkdocs.yml:

plugins:
  - ipymd

2. Create a python file ".py" or ".ipy" in the docs folder:

And use the following syntax to include the file in your markdown:

# %%
import numpy as np
import matplotlib.pyplot as plt

# %%
msg = "Hello World"
print(msg)

# %%
msg = "Hello not again"
print(msg)

# %% [markdown]

## This is a markdown cell

### With some content

And some math

$$
E = mc^2
$$

The # %% is a cell separator, and the content of the cell is executed as python code.

3. Add the file to your mkdocs.yml nav (optional)

nav:
  - Home: index.md
  - Examples:
    - file1.md
    - file2.md

Important: you must add the file with ".md" extension, even if the file is a python file.

Metadata

Release files for mkdocs-ipymd 0.0.4

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

Source distribution (sdist)

Source distribution for mkdocs-ipymd 0.0.4
File Size Uploaded Provenance
mkdocs_ipymd-0.0.4.tar.gz 8.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-ipymd 0.0.4
File Interpreter ABI Platform
mkdocs_ipymd-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / mkdocs_ipymd-0.0.4.tar.gz

Download URL mkdocs_ipymd-0.0.4.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
24108e7611d16ecb1fd919531924aa2d83b2cd331fbed43c8f628d4b632dc7b7
BLAKE2b-256 checksum
How to use checksums
a3cef15e7389ca253aab6702235d8b4835eb2ff3946ae16a3e2839ebd79ef5cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.8 Darwin/23.6.0

Release files / mkdocs_ipymd-0.0.4-py3-none-any.whl

Download URL mkdocs_ipymd-0.0.4-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18fd7b4a6b6e6c7b5777aab232ae9f545a382d09dace4903e054ee502d073299
BLAKE2b-256 checksum
How to use checksums
5a0a97caa548942b9813a381cadc3c03e31f31c016ed67d929d4b7c44d890b93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.8 Darwin/23.6.0

Security for mkdocs-ipymd 0.0.4

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