Skip to main content

Mkdocs-Matplotlib

PyPI version Test Release Pipeline Code Quality Documentation Status Python version License: MIT pre-commit Black

Mkdocs-Matplotlib is a plugin for mkdocs which allows you to automatically generate matplotlib figures and add them to your documentation. Simply write the code as markdown into your documention.

screenshot

Quick Start

This plugin can be installed with pip

pip install mkdocs-matplotlib

To enable this plugin for mkdocs you need to add the following lines to your mkdocs.yml.

plugins:
  - mkdocs_matplotlib

To render a code cell using matplotlib you simply have to add the comment # mkdocs: render at the top of the cell.

# mkdocs: render
import matplotlib.pyplot as plt
import numpy as np

xpoints = np.array([1, 8])
ypoints = np.array([3, 10])

plt.plot(xpoints, ypoints)

In addition you can add the comment # mkdocs: hidecode to hide the code and and # mkdocs: hideoutput to hide the output image of the cell.

Metadata

Release files for mkdocs-matplotlib 0.10.1

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-matplotlib 0.10.1
File Size Uploaded
mkdocs_matplotlib-0.10.1.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-matplotlib 0.10.1
File Interpreter ABI Platform
mkdocs_matplotlib-0.10.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / mkdocs_matplotlib-0.10.1.tar.gz

Download URL mkdocs_matplotlib-0.10.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5c1e6b765d9025a3ca4cc9d55b6826d1eee8e67128f1aeb06c278e4256504aa9
BLAKE2b-256 checksum
How to use checksums
a5146246fc058f3c12e9d2077a9f046e90d3c944ce1b97823b2b4e2f14616365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1029-azure

Release files / mkdocs_matplotlib-0.10.1-py3-none-any.whl

Download URL mkdocs_matplotlib-0.10.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5c3337b4b3588d6f7bbe059db85cd9d05dcaf72f71281938d8fea7df090d16a
BLAKE2b-256 checksum
How to use checksums
4411e189173d0ba2061a3f551779c8fb92aedccb37dfece51951c9a54e571b6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1029-azure

Release history Release notifications | RSS feed

This release

0.10.1 This release

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

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