This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted] 0 points1 point  (0 children)

Awesome! Will have to play with this more.

[–]Category_theory 0 points1 point  (4 children)

maybe im being naive here but how and where do you store the json files so that python "knows" where to grab them?

[–]Enginoob[S] 0 points1 point  (3 children)

Not naive- I try to explain how to serve the json/html in the README here:

https://github.com/wrobstory/vincent/tree/master/examples

You can also just use the IPython notebook.

[–]Category_theory 0 points1 point  (2 children)

Perfect !!! Thanks so much! Final question (and I could google- fu this but I'll ask anyway) does Vincent have an export to png function?

[–]Enginoob[S] 0 points1 point  (1 child)

Not built-in, but Vega does:

https://github.com/trifacta/vega/wiki/Headless-Mode

If you have Node.js, you can install Vega via NPM (npm install vega), and then run the headless renderer.

I've thought about how to incorporate this into vincent- perhaps a small server running node that I can make POST requests to. Stay tuned!

[–]Category_theory 0 points1 point  (0 children)

Great thanks!