Skip to content

Toggle light/dark images from notebook #243

@j-faria

Description

@j-faria

The material theme allows to show different images for light and dark color schemes (as explained here).
Is there a way to use this feature with a matplotlib plot inside a notebook embedded with mkdocs-jupyter?

I'm thinking that a given cell could create two versions of a plot and somehow add the hash fragment to the image "url", but I'm not sure how to go about doing that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions