Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simultaneously edit the same ipython notebook in two tabs

As my ipython notebooks get larger, I find myself more and more frequently wanting to quickly move between two sections. Since there is no split-window view, is there any way to edit the same notebook in two browser tabs simultaneously? Naively it seems that you have to reload the notebook in the second window after making changes in the first.

I'd also be interested in any general workflow suggestions for this, thanks!

like image 416
DilithiumMatrix Avatar asked May 08 '15 14:05

DilithiumMatrix


People also ask

Can multiple people edit the same Jupyter Notebook?

The new collaborative editing feature enables collaboration in real-time between multiple clients without user roles, when sharing the URL of a document to other users, they will have access to the same environment you are working on (they can write and execute the cells).

Can multiple people work on the same colab notebook?

Colab notebooks can be shared with other users and opened by multiple users at a time. If one person makes a change, the others will be able to see the change after a short delay. However, if two people edit the document at the same time, one person's changes must be discarded upon refreshing.

How do you edit multiple lines in Jupyter?

Multiline editing is currently possible by holding Alt and dragging the mouse to create a multiline cursor.

Can I run two instances of Jupyter Notebook?

You can run a Jupyter notebook from another Jupyter notebook that has the same type of kernel. For example, you can run a Jupyter notebook with Spark kernel from another Jupyter notebook with Spark kernel. From the left Sidebar, select and right-click on the Jupyter notebook that has to be run from another notebook.


1 Answers

It's not a perfect solution, but I use section headers and a floating table of contents to jump around to different sections. It's nice that it encourages me to make headings, although it's not super efficient. I use MinRK's extension to make the TOC (here).

If you want to go the TOC route, you should look at the How can I add a table of contents to an ipython notebook? question. The answers there (currently) suggest either MinRK's extension to the notebook as I use, or a simple browser extension that can generate a TOC for any webpage.

like image 68
user3849418 Avatar answered Oct 27 '22 01:10

user3849418