diff --git a/docs/source/conf.py b/docs/source/conf.py index 71ede9ecd..be034aca7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -115,6 +115,9 @@ u'rustworkx Contributors', 'manual'), ] +# Jupyter Sphinx options +jupyter_execute_default_kernel = "python3" + # Texinfo options texinfo_documents = [ diff --git a/docs/source/requirements.txt b/docs/source/requirements.txt index c6e237f33..a960d2883 100644 --- a/docs/source/requirements.txt +++ b/docs/source/requirements.txt @@ -9,3 +9,4 @@ qiskit-sphinx-theme>=1.7 matplotlib>=3.4 sphinx-reredirects sphinxemoji +ipykernel diff --git a/tox.ini b/tox.ini index 8f5e71656..77451c244 100644 --- a/tox.ini +++ b/tox.ini @@ -47,6 +47,8 @@ deps = passenv = {[testenv]passenv} RETWORKX_DEV_DOCS RETWORKX_LEGACY_DOCS changedir = {toxinidir}/docs commands = + python -m ipykernel install --user + jupyter kernelspec list sphinx-build -W -b html source build/html {posargs} [testenv:black]