gregsexton / ob-ipython

org-babel integration with Jupyter for evaluation of (Python by default) code blocks
739 stars 109 forks source link

Getting output and figures together and more control over output #157

Open jkitchin opened 6 years ago

jkitchin commented 6 years ago

It looks like right now you can either get figures in the output if you use :results value, or the output of the block if you use :results output. I usually have both printed output and figure output from a single block that I want to capture. Is that possible in ob-ipython now? and if not, would you be interested in making :results output show the output and figures?

For some blocks there could be multiple outputs, e.g. plain text, html, latex, and or image output. Would you be interested in using a header argument to select the output?

jchkoch commented 6 years ago

I, too, would find this a useful feature. I will see if I find some time to look into this.

jkitchin commented 6 years ago

This is all solved now in scimax in https://github.com/jkitchin/scimax/blob/master/scimax-org-babel-ipython-upstream.el. I would start looking around line 826.

There is a lot in this file. You might find this overview useful too: https://github.com/jkitchin/scimax/blob/master/scimax-ipython.org.

jchkoch commented 6 years ago

Thanks for the resource.