LoginSignup
15

More than 5 years have passed since last update.

posted at

updated at

Jupyterで好きなHTMLを埋め込む

やり方

IPython.display.HTMLを使う。

Hello world!

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

その他

ローカルにある画像なんかも、base64エンコードしてimgタグのソースに文字列突っ込めば表示できます。

YouTubeの動画なんかも埋め込めます。 (nbviewerへ)
eb261656c601e6dc2cbe30468eb8f501.png

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
15