https://github.com/ipython/ipython/pull/9851/files
I'm not sure if that's what we want to do, but there's what it would take. On 9 August 2016 at 14:05, Thomas Kluyver <[email protected]> wrote: > I'm working on a PR to capture the result as well. > > On 9 August 2016 at 13:49, MinRK <[email protected]> wrote: > >> The capture magic captures any explicit displayed/printed output. It does >> not include the *result* of the computation, triggered by the displayhook. >> If you called, instead, `display(df)`, it would capture it. >> >> We could capture the result as well, though part of the impetus for this >> utilitiy was for output-flooding libraries, where you may just want to >> suppress all the side-effect output on your way to a result, and only look >> at it if something failed. In this use case, also hiding results wouldn't >> be desirable, but I can see how the current behavior might be surprising. >> >> -MinRK >> >> On Tue, Aug 9, 2016 at 2:22 PM, Paul A <[email protected]> wrote: >> >>> Nope, does not work: >>> >>> See e.g. http://jupyter.cloudet.xyz/user/ri0KGeHgFqTG/notebooks/captu >>> re_does_not_work.ipynb >>> >>> >>> On Monday, August 8, 2016 at 12:54:52 PM UTC+1, takowl wrote: >>>> >>>> It should do. Make sure that your IPython is up to date. >>>> >>>> On 8 August 2016 at 12:43, Paul A <[email protected]> wrote: >>>> >>>>> %%capture does not seem to capture rich output, such as pandas >>>>> dataframe or interactive widgets. Could anyone suggest examples/ways to >>>>> intercept those? >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Project Jupyter" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/jupyter/561cab7e-4522-4f88 >>>>> -8630-3f5dc4265ca9%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/jupyter/561cab7e-4522-4f88-8630-3f5dc4265ca9%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Project Jupyter" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/jupyter/f3b78eb4-7555-494b-8d4a-096bb017bc4b%40googlegroups.com >>> <https://groups.google.com/d/msgid/jupyter/f3b78eb4-7555-494b-8d4a-096bb017bc4b%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Project Jupyter" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/jupyter/CAHNn8BXnQPYEbBuXfmibxC%2BUpJMTqrfMrta7NkEtPRHbf >> KVhrg%40mail.gmail.com >> <https://groups.google.com/d/msgid/jupyter/CAHNn8BXnQPYEbBuXfmibxC%2BUpJMTqrfMrta7NkEtPRHbfKVhrg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qhRkrqdXn6XfYSr7h5AeAyaWx%3Drj1_zggFzuBErqRF_Rg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
