Live rendering of python code using matplotlib
Project description
Mkdocs-Matplotlib
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.
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_matplotlib-0.8.1.tar.gz.
File metadata
- Download URL: mkdocs_matplotlib-0.8.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2490b10e5e2af07759d276282b96cb1026eead175aacb5b80c2878c8a9b2dad8
|
|
| MD5 |
e7fe488d2404ef7c05d8d4ec40676ab5
|
|
| BLAKE2b-256 |
eb87f8e0788e7124d7d2091ff82835f3f29cae124ef4dff5cd31e0a64564d212
|
File details
Details for the file mkdocs_matplotlib-0.8.1-py3-none-any.whl.
File metadata
- Download URL: mkdocs_matplotlib-0.8.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d309d56dbd9de1c400cf48f148669b259b778607dcbfc078d0acbc3cfc630881
|
|
| MD5 |
dd23b4473b6356cb443e79c640d3c714
|
|
| BLAKE2b-256 |
dce57e4fb4ab060f070dedda7d6aeb1299592e25cabc8951263ad9323926e7da
|