These are chat archives for sandialabs/toyplot

3rd
Nov 2017
Timothy M. Shead
@tshead
Nov 03 2017 00:30
@hannes - this is expected behavior for Jupyter. If you use 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.
In a notebook, you can force PNG output instead of HTML output in a variety of ways. I think the clearest is to do
import IPython.display
IPython.display.Image(canvas)
Timothy M. Shead
@tshead
Nov 03 2017 00:38

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.

matrixbot
@matrixbot
Nov 03 2017 07:45
hannes oh that is awesome
hannes thanks!