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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy