Skip to content

display.display_html has no effect in Jupyter notebook #9172

@pwaller

Description

@pwaller

Versions:

  • IPython 4.0.3
  • Jupyter 1.0.0

Example code:

import IPython.display
IPython.display.display_html("<b>foo bar</b>")

What happens when I run this cell? No visible output.

What is expected? It should show the words "foo bar" in bold.

What works? IPython.display.display(IPython.display.HTML("<b>foo bar</b>")).

Am I doing the right thing here? How do I just show an object formatted as HTML? I want to show several objects in one cell execution, so just putting the object as the last thing in the cell isn't sufficient.

The documentation seems to imply this should work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions