Skip to content

Special-case xarray so that its repr_html shows up #274

@choldgraf

Description

@choldgraf

In executablebooks/sphinx-book-theme#238 we uncovered that the xarray package uses a kind-of hacky approach to its repr_html outputs that causes them to not show up if bootstrap is loaded.

In this comment @benbovy described a simple hack to get around this, which is to add a CSS rule like:

.xr-wrap { display: block !important }

That would make xarray outputs work with this theme.

I'm +1 on special-casing xarray here since they are in the pydata ecosystem. I'll open a PR to do this in a day or so, but wanted to see if anyone particularly objects to this approach (we all know that xarray is doing something kinda hacky here, but this still seems like the easiest path forward for all)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions