Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter notebook: split screen vertically (i.e. add cell horizontally)

Is it possible to add a cell on the side of another cell, splitting the screen vertically? This seems very useful when comparing two lists of things.

I don't see this options supported out of the box, so I am guessing it would require some extra js?

like image 628
meto Avatar asked Apr 06 '16 21:04

meto


People also ask

Can you split screen in Jupyter notebook?

To split the screen in Jupyter Lab, select a Jupyter Lab tab with the mouse and drag it to the right to split the screen vertically, or to the bottom to split the screen horizontally.

How do you insert a horizontal line in a Jupyter notebook?

If you want to insert a horizontal line that acts as a separator spanning across the width of the markdown cell all you have to do is type three asterisks without spaces in a new line *** .


2 Answers

This is now possible in JupyterLab. See this example:

...there is a menu item to create a new side-by-side view of that same notebook that will remain synchronized with the other view:

enter image description here

Note that JupyterLab will eventually replace Jupyter Notebook. See this answer.

like image 129
Jean Monet Avatar answered Nov 14 '22 23:11

Jean Monet


You can right-click a file tab, and select, "New View for Notebook."

enter image description here

like image 30
etotheipi Avatar answered Nov 14 '22 21:11

etotheipi