I'm wondering how to access the :file
header argument passed to a src block, from inside the src block itself?
I'm wondering specifically for python
, and in this case ipython
with %matplotlib inline
as the example below (here I use the ob-ipython
library)
#+begin_src ipython :session :file /tmp/py87133eo.png :exports results
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
#+end_src