jkitchin / ox-ipynb

org-mode exporter to Jupyter notebooks
170 stars 39 forks source link

Support lisp expressions in :exports values #40

Closed eginhard closed 3 years ago

eginhard commented 3 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 3 years ago

looks good, thanks!