Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I increase the cell width of the Jupyter/ipython notebook in my browser?

I would like to increase the width of the ipython notebook in my browser. I have a high-resolution screen, and I would like to expand the cell width/size to make use of this extra space.

Thanks!


EDIT / ANSWER : 5/2017

I now use jupyterthemes: https://github.com/dunovank/jupyter-themes

and this command:

jt -t oceans16 -f roboto -fs 12 -cellw 100% 

which sets the width to 100% with a nice theme.

like image 524
vgoklani Avatar asked Feb 23 '14 17:02

vgoklani


People also ask

How do you zoom in on a Jupyter Notebook?

How do you zoom a plot on a Jupyter notebook? Just drag the right bottom corner of the plot..

How do I change settings in Jupyter Notebook?

Notebook server jupyter directory, with all the defaults commented out, use the following command: $ jupyter notebook --generate-config :ref:`Command line arguments for configuration <config>` settings are documented in the configuration file and the user documentation.


1 Answers

If you don't want to change your default settings, and you only want to change the width of the current notebook you're working on, you can enter the following into a cell:

from IPython.core.display import display, HTML display(HTML("<style>.container { width:100% !important; }</style>")) 
like image 52
jjinking Avatar answered Oct 08 '22 08:10

jjinking