Skip to content

[ENH]: Sphinx plot_directive: add an option for embedding pngs as base64 data-urls #21918

@martinRenou

Description

@martinRenou

Problem

When using the Sphinx plot_directive in a context like IPython + JupyterLab, pointing to image files does not work, as showed in the following screenshot:

jupyterlab_sphinxify

Proposed solution

It would be nice to add an option for embedding pngs as base64 data in the resulting HTML.

If you're open to such a feature, I can make a PR myself adding this option.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions