Last active
January 18, 2025 18:33
-
-
Save sebastianrothbucher/5bd84528c32b51d999d4d90f28f7577b to your computer and use it in GitHub Desktop.
Jupyter HTML and several displays - just store for once
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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