Skip to content

Commit 327e326

Browse files
authored
Update conf.py
- fig rendering of plotly figs in docs
1 parent b713387 commit 327e326

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def get_years(start_year=2021):
5757
# Add any Sphinx extension module names here, as strings. They can be
5858
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
5959
# ones.
60+
import plotly.io as pio
61+
pio.renderers.default = "sphinx_gallery"
62+
6063
extensions = [
6164
"sphinx.ext.autodoc",
6265
"sphinx.ext.napoleon",
@@ -68,13 +71,14 @@ def get_years(start_year=2021):
6871
"sphinx_tabs.tabs",
6972
"sphinx.ext.mathjax",
7073
"IPython.sphinxext.ipython_console_highlighting",
71-
# "sphinx_panels", # Note: package to avoid: no longer maintained.
7274
"sphinx_design",
7375
"sphinx_togglebutton",
7476
"sphinx.ext.doctest",
7577
"sphinx_gallery.load_style",
78+
"sphinx.ext.plotly_directive", # Added Plotly extension
7679
]
7780

81+
7882
coverage_show_missing_items = True
7983
panels_add_bootstrap_css = False
8084

0 commit comments

Comments
 (0)