Issue
I just upgraded to IPython 1.0 and the new notebook interface performs really well. On my screen it now has a default width of about 50% of the page which improves readability. However, i often work with long timeseries which i prefer to display as wide as possible.
Very wide pictures will only extend further to the right. Is there a way to display output wider then the default to expand in a centered matter?
The attached picture shows a normal inline plot in the first cell, which is less wide then the default notebook width. The second plot is wider and expands to the right. This leaves about the left quarter of my screen unused.
Solution
The answer given by @tooblippe, although changes the style of the notebook, does not address the question. However, using the first part of that solution, you would be able to achieve the centering of the plots. This solution works for ipython==3.1.0
. For higher versions that include Jupyter, you would want to edit the styling of Jupyter
instead.
So, the solution would be: You can either modify the above css file or add this line to the styling of your ipython environment in the ipython folder:
.output_png {
display: table-cell;
text-align: center;
vertical-align: middle;
}
Answered By - oxtay
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.