Skip to content

Commit e960a3a

Browse files
Condigure jupyterlite_sphinx
1 parent 3e09e1a commit e960a3a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/source/conf.py

+18
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"numpydoc",
5959
"sphinx_copybutton",
6060
"sphinx_design",
61+
"jupyterlite_sphinx",
6162
"sphinx.ext.autodoc",
6263
"sphinx.ext.autosummary",
6364
"sphinx.ext.coverage",
@@ -420,6 +421,23 @@
420421

421422
nbsphinx_allow_errors = True
422423

424+
# -- Options for jupyterlite-sphinx --------------------------------------
425+
426+
# Configuration for interactive documentation using jupyterlite-sphinx and
427+
# Pyodide. See https://jupyterlite-sphinx.readthedocs.io/en/stable/ for
428+
# more options.
429+
430+
global_enable_try_examples = True
431+
try_examples_global_button_text = "Try it!"
432+
try_examples_global_warning_text = (
433+
"Interactive examples for pandas are experimental and may not always "
434+
"work as expected. If you encounter any issues or wish to provide any "
435+
"feedback, please reach out to us on the "
436+
"[pandas issue tracker](https://github.com/pandas-dev/pandas/issues/new)."
437+
)
438+
# uncomment to ease debugging
439+
jupyterlite_silence = False
440+
423441
# -- Options for LaTeX output --------------------------------------------
424442

425443
latex_elements = {}

0 commit comments

Comments
 (0)