These are chat archives for ipython/ipython

9th
Apr 2018
Min RK
@minrk
Apr 09 2018 13:13
@szhorvat it should return a bytes object contianing the png data.
Szabolcs Horvát
@szhorvat
Apr 09 2018 18:28
@minrk Can I also control the resolution? If it's just a PNG, there's no information about what size it should be displayed at (think "retina" screens).
If I use the side-effect formatter, then this problem is automatically solved. But then I do not know how to refuse formatting a certain type of object, should it turn out to be unsuitable for formatting for whatever reason (e.g. the display is too big).