Skip to content

Support HTMLDependency() in Jupyter notebooks #101

@gadenbuie

Description

@gadenbuie

Apparently this isn't fully worked out but is needed for HTMLDependency support in Quarto.

# TODO: can we get htmlDependencies working in IPython?
if renderer == "ipython":
from IPython.core.display import (
display_html, # pyright: ignore[reportUnknownVariableType]
)
# https://github.com/ipython/ipython/pull/10962
return display_html( # pyright: ignore[reportUnknownVariableType]
str(self), raw=True, metadata={"text/html": {"isolated": True}}
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions