These are chat archives for sandialabs/toyplot
toyplot.png.render(canvas)without a filename / file-like object, it returns the png data directly, so you can skip the round-trip to disk. See http://toyplot.readthedocs.io/en/stable/rendering.html for details.
import IPython.display IPython.display.Image(canvas)
If you are generating lots of figures in a notebook and want to force them all to be rendered as PNG, do the following:
import toyplot.config toyplot.config.autoformat = “png”
… and then every canvas will be automatically rendered as an inline PNG.