Embed your favorite HTML in Jupyter

manner

ʻI Python.display.HTML` is used.

Hello world!

from IPython.display import HTML
HTML("<h1>Hello world!</h1>")

Other

Even local images can be displayed by base64 encoding and inserting a character string into the source of the img tag.

You can also embed YouTube videos. (To nbviewer) eb261656c601e6dc2cbe30468eb8f501.png

Recommended Posts

Embed your favorite HTML in Jupyter
Display HTML in Jupyter notebook
Embed wav files in Jupyter
Allow Jupyter Notebook to embed audio data in HTML tables for playback
Bash in Jupyter
Use a free GPU in your favorite environment
Automatically save .py and .html files in Jupyter notebook.
Jupyter in Cloud9 IDE
Embed matplotlib graphs in Tkinter
Multiprocessing error in Jupyter Notebook