emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ob-python: support header argument `:results file graphics'


From: Liu Hui
Subject: [PATCH] ob-python: support header argument `:results file graphics'
Date: Mon, 3 Jul 2023 12:31:17 +0800

Hi,

This patch adds graphics output support for ob-python via matplotlib.
Specifically, it allows to use header argument `:results file
graphics' as follows:

#+begin_src python :file "test.png" :results graphics file
import matplotlib.pyplot as plt
plt.plot([1,2,3,4,5])
#+end_src

The feature is described in the documentation as follows and has been
supported by ob-R, ob-julia, etc.

> ‘graphics’
>      When used along with ‘file’ type, the result is a link to the file
>      specified in ‘:file’ header argument.

Attachment: 0001-ob-python-support-header-argument-results-file-graph.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]