0

IPython display module HTML class, h is display object. and according to official website rich object, it could display by using display.display(). However both statement give object information instead of displaying anything.

  from IPython import display
  ...
  h = display.HTML(html)
  display.display(h)
  print(h)

output:

<IPython.core.display.HTML object>
<IPython.core.display.HTML object>

1 Answer 1

0

I think you need to write html code to display something.

    from IPython import display
    h = display.HTML('<h1>Hello, world!</h1>')
    display.display(h)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.