Question

IPython's notebook source code, and various code samples, suggest that a notebook can consist of several "worksheets". What does a worksheet look like, and how do I create them or switch between them? I see nothing in the browser interface that would allow me to create a second worksheet.

Was it helpful?

Solution

According to IPEP 17 (link), multiple worksheets on a single notebook will be deprecated, and a UI to handle them never existed either. Before, as in your link, the format of the notebook was

notebook["worksheets"]["cells"]

but it will soon be simply

notebook["cells"]

IPEP 17 is however an active IPEP, so changes may still occur at this stage (it is not accepted or implemented yet, see this list of IPEPs and their status)

EDIT: as a personal comment, having multiple worksheets like in Microsoft Excel may look like a nice idea, but you would often end up having many race conditions between sheets, with one cell of a worksheet depending on the output of a cell in another worksheet, often not in a self-evident way. And a scenario where many worksheets do not depend on each other is as good as a directory with as many notebooks.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top