[IPython-dev] Notebook: Horizontal layout for multiple figures in output cell

Nicholas Bollweg nick.bollweg at gmail.com
Fri Feb 21 17:01:55 EST 2014

@antonino: can you use a css selector, like :first-child, to keep the your
format from bleeding over onto the text output?

@patrick: I think your insight is good: IPEP 23 provide the capability to
do what you want (and more), but may still not be simple enough for quick
comparisons like what anotnino wants.

I have, at times, hacked up a dirty nest of HTML displays to create just
such panels that contain the data I want... but something that was able to
store a second, zoomable layout in cell metadata would be very slick
indeed... perhaps built on impress.js? While I love nbconvert's reveal.js
capabilities, I could see this being more engaging for run-time hacking
than the slides of reveal...

On Fri, Feb 21, 2014 at 3:08 PM, Patrick Surry <patrick.surry at gmail.com>wrote:

> Yes, completely agree.  Sorry I misunderstood your question.
> For a while I used the separate viewer (non-inline) which gave a new
> window for every plot.  This allowed nice side-by-side comparison, but it
> became unmanageable in a typical ad hoc session where you had twenty
> similar windows without proper labeling and couldn't find what you wanted.
>  And you lost track of where each figure had come from in the original
> notebook.
> Inline is better from point of view of keeping a record of what you did,
> but I always end up scrolling up and down to compare things, and often end
> up then inserting new cells in a non-linear order which breaks dependencies
> if I later re-run.
> Your idea of putting new plots side by side would help to some extent but
> not sure it would really solve it.  I almost want a separate tab or frame
> that contains all my plots in some kind of paged or tabbed layout, where I
> could save interesting ones or kill ones I'm done with.  A bit like what
> R-Studio does.
> Maybe there's a general concept of separating the linear "lab notebook"
> where you always add new notes/code/diagrams at the end (current ipython
> notebook), and some new "pinboard" area where you can collect, compare,
> reorder "interesting" bits of output?  Read-only, linked to original output
> cells in the notebook?   Maybe you just need to be able to "pin" or
> favourite any notebook output cell and have it appear on this separate
> pinboard thing?
> Sorry for the stream of conciousness...
> Patrick
> On Fri, Feb 21, 2014 at 1:44 PM, Antonino Ingargiola <tritemio at gmail.com>wrote:
>> On Fri, Feb 21, 2014 at 10:41 AM, Antonino Ingargiola <tritemio at gmail.com
>> > wrote:
>>> In this use case I value simplicity over everything else. For example
>>> when I plot a series of plots I need to scale the subplots if the number of
>>> plots changes (otherwise the plots becomes smaller, labels overlaps an so
>>> on).
>> Here I mean: if I use subplots I need to take care of rescaling, avoiding
>> overlaps and so on. Problems absent when using separate figures.
>> Antonio
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140221/fb6078ad/attachment.html>

More information about the IPython-dev mailing list