pydata_sphinx_theme.nbsphinx#

Interoperate with nbpshinx extension.

Attributes#

Functions#

delete_nbsphinx_css(app)

For projects using nbsphinx, delete nbsphinx's CSS.

point_nbsphinx_pages_to_our_css(app, pagename, ...)

For projects using nbsphinx, point to our notebook CSS.

Module Contents#

pydata_sphinx_theme.nbsphinx.delete_nbsphinx_css(app)[source]#

For projects using nbsphinx, delete nbsphinx’s CSS. We replace it later with our own.

Parameters:

app (sphinx.application.Sphinx)

Return type:

None

pydata_sphinx_theme.nbsphinx.point_nbsphinx_pages_to_our_css(app, pagename, templatename, context, doctree)[source]#

For projects using nbsphinx, point to our notebook CSS. nbsphinx selectively adds its CSS to certain pages (the ones it converted from notebook files) by calling the Sphinx add_css_file() method on “html-page-context” event. Here we update those pages to point to our alternative CSS file.

Parameters:
Return type:

None

pydata_sphinx_theme.nbsphinx.nbsphinx_css_filename = 'nbsphinx-code-cells.css'[source]#
pydata_sphinx_theme.nbsphinx.replacement_css_filename = 'nbsphinx-pydata-theme.css'[source]#