Skip to content

Instantly share code, notes, and snippets.

@sebastianrothbucher
Last active January 18, 2025 18:33
Show Gist options
  • Save sebastianrothbucher/5bd84528c32b51d999d4d90f28f7577b to your computer and use it in GitHub Desktop.
Save sebastianrothbucher/5bd84528c32b51d999d4d90f28f7577b to your computer and use it in GitHub Desktop.
Jupyter HTML and several displays - just store for once
import pandas as pd
from IPython.core.display import HTML
# display several
display("one")
display(pd.DataFrame({"a": [1, 2]}))
print("two-a")
display(HTML('<em style="color: hotpink">two-b</em><a href="https://bla">Link gets rendered in PDF</a>'))
display("two-c")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment