jkitchin / ox-ipynb

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

prevent export of ditaa src-code blocks? #37

Closed uliw closed 3 years ago

uliw commented 3 years ago

If my org file contains a ditaa source block, e.g.,

#+BEGIN_SRC ditaa :file img.png
--->
#+END_SRC

and I export this file to notebook format, the resulting notebook will not open. Is there a way to work around this limitation?

jkitchin commented 3 years ago

If it is the first cell, the problem is that it is trying to use that as the language I guess. if that is the problem, you can set #+OX-IPYNB-LANGUAGE : ipython

I think to specify the kernel.

This works for me:

image

exports to

image

uliw commented 3 years ago

ah, it is indeed related to the first cell.

Setting #+OX-IPYNB-LANGUAGE : ipython does however not help

jkitchin commented 3 years ago

My bad, you need to remove the space before : #+OX-IPYNB-LANGUAGE: ipython

uliw commented 3 years ago

got it!

On Tue, Nov 24, 2020 at 4:37 PM John Kitchin notifications@github.com wrote:

My bad, you need to remove the space before : #+OX-IPYNB-LANGUAGE: ipython

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jkitchin/ox-ipynb/issues/37#issuecomment-733247966, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWSVAV2DCXBMDAJPTWBY53SRQRTBANCNFSM4UBBWY7Q .

-- Ulrich G. Wortmann https://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Ursula Franklin Street, Toronto, ON, Canada M5S 3B1