It depends, if the object you capture from does not have a PNG repr, no there is no way to do that.
I don't think pandas does have a way to display dataframe a PNG, so their won't be a way to get PNG out of %%capture. On Fri, Jul 23, 2021, 02:15 Jon Seymour <[email protected]> wrote: > G'day, > > I am want to display the contents of a pandas DataFrame as a table within > a notebook cell and then use a capture to capture the Rich Output of the > cell and then ideal save this as a PNG file. I understand to do the capture > (with %%capture), but I haven't been able to see way to use the capture to > generate a PNG image. > > Is there.straight forward way to achieve this with the Jupyter framework? > > jon. > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/jupyter/0526b882-39df-4b78-9fc8-5cc426ac9a2cn%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/0526b882-39df-4b78-9fc8-5cc426ac9a2cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CANJQusWL89q%3DcYqSU63CdJ30vJZXT2Rc2DTqtRrgNEkq6p1SVg%40mail.gmail.com.
