The PyData Sphinx Theme is a clean, three-column, Bootstrap-based Sphinx theme designed for the PyData community. It provides a modern, responsive design with built-in light/dark mode toggling and extensive customization options via `html_theme_options`. Currently at version 0.17.0, the project maintains a regular release cadence, with new versions published frequently (typically monthly or upon significant feature additions/bug fixes).
pip install pydata-sphinx-themeVerified import paths — ran on the pinned version, not inferred.
To use the PyData Sphinx Theme, set `html_theme = "pydata_sphinx_theme"` in your `conf.py`. All theme-specific customizations are managed through the `html_theme_options` dictionary. This example also shows how to add an icon link and customize the footer.
If experiencing issues with a new Sphinx version, try pinning to an older, compatible Sphinx version (e.g., `pip install 'sphinx<6'`) or wait for a theme update. Refer to the theme's official documentation for supported Sphinx versions.
Review the theme's changelog for `v0.16.0` and subsequent releases. Update custom CSS and JavaScript to be compatible with Bootstrap 5 and vanilla JavaScript where jQuery was previously used. Some theme options might have been removed or renamed (e.g., `sidebarwidth` was removed in v0.16.1).
Always configure theme-specific settings through the `html_theme_options` dictionary. If you need to deeply customize aspects like sidebars, consult the theme's documentation for the correct approach rather than overriding global Sphinx `html_` variables directly.