Re:Pygal – A Python SVG Charts Creator
by doug1001 on Sunday August 24, 2014 @01:50AM
(#8217831)
this is the first i have heard of this library, but i look forward to experimenting with it because it has an important use case: creating 'native' plots etc in the ipython notebook.
ipynb which has an impressive display system, eg, to view svg within the notebook:
from IPython.display import SVG
SVG(filename='plot-made-from-pygal.svg')
alternatively, you could use ipython's HTML display:
from IPython.display import HTML
and inject the pygal-created SVG into your own HTML template--a particularly nice option because ipython notebook is html rendered in a browser.
Re:Pygal – A Python SVG Charts Creator
by gerbal on Saturday August 23, 2014 @09:55PM
(#8217418)
Pygal has been ported to Javascript[1] and can be embedded in arbitrary web pages. I don't know quite what to make of that. Though the implementation in trinket.io[2] is pretty cool
Re:Pygal – A Python SVG Charts Creator
by andybak on Sunday August 24, 2014 @08:09AM
(#8218349)
Bloody hell. Last time I looked at skulpt I judged it as an 'interesting toy'.
But it's dawned on me that I'm watching a fully client-side Python app. And at 80kb it's not unrealistic to think about using it in production. Crikey...
Re:Pygal – A Python SVG Charts Creator
by bnj on Sunday August 24, 2014 @11:50AM
(#8218817)
I'd really like the 'try it online' to be able to easily save the output so that I could have students use it to create their charts and then save them...
ipynb which has an impressive display system, eg, to view svg within the notebook:
from IPython.display import SVG SVG(filename='plot-made-from-pygal.svg')
alternatively, you could use ipython's HTML display: from IPython.display import HTML
and inject the pygal-created SVG into your own HTML template--a particularly nice option because ipython notebook is html rendered in a browser.
[1] https://github.com/trinketapp/pygal.js/
[2] https://trinket.io/charts
But it's dawned on me that I'm watching a fully client-side Python app. And at 80kb it's not unrealistic to think about using it in production. Crikey...
[1] https://github.com/lebinh/aws-usage-report-analyser
- http://bokeh.pydata.org/index.html
- http://vispy.org/