sphinx-plotly-directive
A directive for including a Plotly figure in a Sphinx document.
This package is based on matplotlib's plot directive.
Install
# pypi
pip install sphinx-plotly-directive
# dev version
pip install git+https://github.com/harupy/sphinx-plotly-directive.git
Usage
Source:
.. plotly::
import plotly.express as px
px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
Output:
See documentation for details.
Development
Install dependencies
pip install -e ".[dev]"
Format code
flake8 .
isort .
black .
Run tests
pytest tests
Build document
cd docs
make html
Release files for sphinx-plotly-directive 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sphinx-plotly-directive-0.1.3.tar.gz | 12.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphinx_plotly_directive-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / sphinx-plotly-directive-0.1.3.tar.gz
| Download URL | sphinx-plotly-directive-0.1.3.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95a49e4ab96d311afcd801e965f0adfbcd21334c17bbb2ca7d3a2161fdc60b01
|
|
BLAKE2b-256 checksum How to use checksums |
8056c1a735382c92894ebea3214384494ae114f59201f0a66ded97873950fcd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
|
Release files / sphinx_plotly_directive-0.1.3-py3-none-any.whl
| Download URL | sphinx_plotly_directive-0.1.3-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
030df1d817a8668ba63db0f491879d9d3f32ebb0266c59266b2fac99c88eed86
|
|
BLAKE2b-256 checksum How to use checksums |
533de875270e1de54960bce4663c1ab9ef8d530c26cab5895a0e72b1a22d0b62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
|