Generating Image of Plot Automatically (Use in Reproducible Research with org-babel) #27
Replies: 2 comments 3 replies
-
I believe the vega-lite image compiler does what you want. That page describes passing the specification to the vega-lite image compiler on There are a few options to get the In short, there isn't something that does exactly what you want, but the pieces are there. I'll leave this open. I'd appreciate a report when/if you get it working. Org-babel looks interesting; I might start using it myself. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the information. As an update on what I've been doing, I found vega/vl-convert which provides a program which embeds the vega-lite image compiler functionality (with the added benefit of not depending on node or a browser for the execution environment and embedded schema to facilitate offline usage). It is good enough that I will probably write a wrapper for it. It should be trivial to implement. It would just be simple wrapper around the I'll keep updating here as I get things figured out. And yes Org-babel is amazing: like Jupyter notebooks but more generalizeable to practically any language (or even multiple which you can make work together and pass values between in a single document), you get the full power of Emacs and Org mode, and more. In short, it just is so much more flexible for letting you use whatever tool you want/need to instead of constricting you one "official" interface and tool. |
Beta Was this translation helpful? Give feedback.
-
I new to the Lisp-Stat world and have generally loved the capability automatically generate and embed figures using Org-Babel in Emacs with other languages I have used for statistics/data analysis.
Goals
I want to find a method to be able to run a code block in my Org document that runs lisp-stat code that:
My Research So Far
When trying to research how to do this I wasn't able to find much of a clue on how I could achieve this. The mention of reproducible research that I did see was using Jupyter (which can be integrated with Org-Babel, but that sounds pretty roundabout and I prefer to have the SLY/SLIME being the one handling execution rather than Jupyter).
I have also found vl-convert which I am currently thinking of wrapping if there is not any more elegant solution (it pains me to think of calling a rust program with an embedded JS interpreter from CL just to get an image of the graph--still better than having to use those directly though :>).
Question
Does anyone know how do this? Even just some help figuring out how to get automatic rendering of the plot to a file would be much appreciated.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions