A directive for including a Plotly figure in a Sphinx document.
This package is based on matplotlib's plot directive.
# pypi
pip install sphinx-plotly-directive
# dev version
pip install git+https://github.com/harupy/sphinx-plotly-directive.git
.. plotly::
import plotly.express as px
px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
See documentation for details.
pip install -e ".[dev]"
flake8 .
isort .
black .
pytest tests
cd docs
make html