Skip to content

Instantly share code, notes, and snippets.

@paulochf
Last active September 22, 2022 22:22
Show Gist options
  • Star 49 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save paulochf/f6c9ed0b39f85dd85270 to your computer and use it in GitHub Desktop.
Save paulochf/f6c9ed0b39f85dd85270 to your computer and use it in GitHub Desktop.
IPython/Jupyter Notebook enlarge/change cell width
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>
"""))
@robertplata
Copy link

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