Skip to content

Instantly share code, notes, and snippets.

@svecon
Created August 29, 2017 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svecon/562fc015e585eb3b7930cc35219381dc to your computer and use it in GitHub Desktop.
Save svecon/562fc015e585eb3b7930cc35219381dc to your computer and use it in GitHub Desktop.
Make the notebook full width and align output on the right
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))
display(HTML("<style> div.cell {display: -webkit-box; -webkit-box-orient: horizontal;-webkit-box-align: stretch;\
display: -moz-box;-moz-box-orient: horizontal;-moz-box-align: stretch;\
display: box;box-orient: horizontal;box-align: stretch;}</style>"))
display(HTML("<style> div.input{min-width:50%;}</style>"))
display(HTML("<style> div.code_cell{width: 70%;float: left;}"
+"div.text_cell{width: 30%;float: right;}"
+"div.text_cell div.prompt {display: none;}</style>"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment