jkitchin / ox-ipynb

org-mode exporter to Jupyter notebooks
175 stars 40 forks source link

Support lisp expressions in :exports values #40

Closed eginhard closed 4 years ago

eginhard commented 4 years ago

Previously, values to :exports had to be strings. This change adds support for Lisp expressions, which allows to differentiate between backends like this:

#+BEGIN_SRC jupyter-python :exports (if (eq 'latex org-export-current-backend) "none" "code")

Let me know if there is a better way to do this, I'm new to Lisp.

jkitchin commented 4 years ago

looks good, thanks!