Last active
November 14, 2024 11:23
-
-
Save paulochf/f6c9ed0b39f85dd85270 to your computer and use it in GitHub Desktop.
IPython/Jupyter Notebook enlarge/change cell width
This file contains 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
from IPython.display import display, HTML | |
display(HTML(data=""" | |
<style> | |
div#notebook-container { width: 95%; } | |
div#menubar-container { width: 65%; } | |
div#maintoolbar-container { width: 99%; } | |
</style> | |
""")) |
Awesome, I want to give you a hug!
But here is the other question: how do you extend the default height of a cell so that you don't get the scrollbar on the right side (so you can see an entire chart, for example, that you want to make fairly large).
Same question. How do you adjust height, e.g., setting a specific pixel count?
@kauttoj should be CSS: height: Kpx;
, for K in real numbers.
Thank you so much
Please forgive my naivete, but how and where does one execute:
from IPython.display import display, HTML
display(HTML(data="""
<style> div#notebook-container { width: 95%; } div#menubar-container { width: 65%; } div#maintoolbar-container { width: 99%; } </style>"""))
??
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extremely helpful. Thanks!