anaconda / nbpresent

next generation slides for Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
162 stars 23 forks source link

link region with layout to each output/widget of a cell #45

Open bollwyvl opened 8 years ago

bollwyvl commented 8 years ago

At present, we can show "all the outputs of a cell" or "all the widgets of a cell" in a region.

However, the DOM would support rejiggering each of the .output_areas or widget that might have been serially displayed. Now, we can't let people start talking about output[0] but we can talk about 0 or more outputs.

With this, one could do a masonry-style layout, a treemap, a carousel (arg) or other kind of user- or data-driven layout, such that:

[display(Image(img) for img in glob("*.png"))]

would create a nice space-filling packing of the outputs.

The PART would probably be output and widget (vs outputs and widgets) and would take some more precise selector work.

Further, one still wouldn't be able to put output and outputs from a single cell on a single slide, but that seems reasonable.