I'm using ein to view and work with Jupyter Notebooks.

I'd like to be able to set the cell width to that of the window so that text wraps as little as possible. In a browser this can be done with...

from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))

..but since this isn't HTML and doesn't work under EIN in Emacs.

Nothing in the docs suggests a way of controlling this.

Any pointers to documentation on how to do this or suggestions would be very much appreciated.

1 Answer 1


Pandas is sufficient, try:

pd.set_option("display.width", 120)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.