Skip to content

Support HTMLDependency() in Jupyter notebooks #101

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}}
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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