Fork me on GitHub
#data-science
<
2018-12-18
>
otfrom10:12:23

@metasoarous I'm really excited about being able to create static svg/png/html from it as well as that is what I'd need it for most (the server bits are good for data exploration, but I need to do a fair bit of report generation)

jsa-aerial16:12:07

The IDL folks already give you this capability. You can do that directly from VG/VGL plots themselves

jsa-aerial16:12:23

That's just part of vega-embed - in fact, this directly supports svg, png, opening in vega/vega-lite editor and getting the final source

metasoarous17:12:20

@U0525KG62 Are you specifically looking for batch/server-side rendering? @U06C63VL4 is right that when you load up a Vega visualization in the browser with vega-embed (which Oz uses), it provides a little drop down menu from which you can export static svg/png files. If however you want "batch"/"server-side" rendering, we have an issue on this, and folks have been expressing interest there: https://github.com/metasoarous/oz/issues/5.

jsa-aerial18:12:32

I've thought about rendering static html as an option (button) for Saite. As it is, I've started giving presentations with it since you can have tabs for 'chapters' and all your plots can have annotations, not just hiccup, but active components - nifty things like modal panels, info buttons, popovers, etc. This is actually very nice since you keep VG/VGL interactions active and so can directly explore during presentation. But, the idea of pushing the whole notebook out as static html has an appeal to it. Altair does this with selenium and headless Chrome or Firefox. I'm not really sure about this though. Making the thing static sort of defeats the entire point of VG/VGL. Plus Saite has named sessions so that many users (browser pages) can see the same notebook at the same time. Yeah, not sure - but if I went this route, I would probably take what Altair does and use that.

jsa-aerial18:12:19

A much more interesting issue is saving notebooks as 'live' documents that can be simply loaded and rendered in a Saite session. I have given rather more thought to that as it is much more useful.

otfrom09:12:09

I am looking for something batch. I do need to do interactive things on websites, but I need something that is a good replacement for ggplot more atm.

jsa-aerial16:12:12

Out of curiosity, what's wrong with ggplot for this sort of thing? Would seem to be exactly what you want in that it can be batch and can generate a bunch of plots one whack. We do this a lot in the labs I'm with. The last stage of some pipelines use ggplot to generate a boatload of plots. Works well. The reason we want to move away from this is that, well, they are static and have no interaction abilty. And when a researcher goes to look at them they find them not so useful. OTOH, VG/VGL is giving some amazing results for us in fixing that.

otfrom16:12:59

most of the problem is calling out to R (in how we're currently doing it)

otfrom16:12:55

I'd quite like to be able to do a unified look and feel across pdf/presentation charts and online ones too (which I'm sure can be done with both vega and ggplot2 but I'd prefer to have one code base)

jsa-aerial16:12:51

Calling out to R: been fairly routine for us. The main server code and many services are written in Clj, Services are basically nodes in a job flow. And services can be written in R, Python, and Perl. Other stuff could be accommodated but that's what there now. Calling out to R for some modeling and plot generation in this context has been rather straight forward. ¯\(ツ)

otfrom09:12:09

I am looking for something batch. I do need to do interactive things on websites, but I need something that is a good replacement for ggplot more atm.

jsa-aerial16:12:12

Out of curiosity, what's wrong with ggplot for this sort of thing? Would seem to be exactly what you want in that it can be batch and can generate a bunch of plots one whack. We do this a lot in the labs I'm with. The last stage of some pipelines use ggplot to generate a boatload of plots. Works well. The reason we want to move away from this is that, well, they are static and have no interaction abilty. And when a researcher goes to look at them they find them not so useful. OTOH, VG/VGL is giving some amazing results for us in fixing that.