Is there a way to increase the width of cells in IJulia Jupyer Notebooks?
Execute this in a cell:
display(HTML("<style>.container { width:100% !important; }</style>"))
should work.
4 Likes
It works, thanks.
1 Like
Another way to do this is with a cell like what’s below. The 2000px gives it a max width, and if your browser window is narrow, it narrows the cells with the padding calls.
It would be nice if there was some “official” CSS class, id, or anchor for use in this way – in the notebook right now (February 2026 – over eight years after the above reply!) I don’t see a “container” in the HTML.
# ╔═╡ a1b2c3d4-0019-0019-0019-000000000019
html"""
<style>
@media screen {
main {
margin: 0 auto;
max-width: 2000px;
padding-left: max(160px, 10%);
padding-right: max(160px, 10%);
}
}
</style>
"""