mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
22 KiB
22 KiB
Test notebook for overflowing content¶
markdown image:
unconfined markdown image:
In [1]:
from IPython.display import Image, IFrame
Overflow image in HTML (non-embedded)
In [2]:
Image(url="http://placehold.it/800x200.png", embed=False)
Out[2]:
Overflow image:
In [3]:
Image(url="http://placehold.it/800x200.png", embed=True)
Out[3]:
Overflow, unconfined
In [4]:
Image(url="http://placehold.it/800x200.png", embed=True, unconfined=True)
Out[4]:
Overflow with explicit height, width (retina):
In [5]:
Image(url="http://placehold.it/1800x200.jpg", embed=True, retina=True)
Out[5]:
Overflowing IFrame:
In [ ]:
IFrame(src="http://ipython.org", width=900, height=400)
Out[ ]:
Overflowing table:
In [ ]:
import pandas as pd pd.DataFrame([['column'] * 15])
Out[ ]:
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | column | column | column | column | column | column | column | column | column | column | column | column | column | column | column |