From 5d4dec996ff73c6e722626e9cbd5c295721451a8 Mon Sep 17 00:00:00 2001 From: UndeadKernel Date: Wed, 9 Jan 2019 14:06:02 +0100 Subject: [PATCH] org: let ob-async ignore ob-ipython ipython implements its own `async` keyword. As ob-async is loaded now by default, we need to explicitly tell ob-async not to touch ob-ipython blocks. --- modules/lang/org/+babel.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/+babel.el b/modules/lang/org/+babel.el index fb4bdb118..f78d10a6b 100644 --- a/modules/lang/org/+babel.el +++ b/modules/lang/org/+babel.el @@ -93,4 +93,8 @@ the first function to return non-nil.") ;; retina resolution image hack (when (eq window-system 'ns) - (advice-add 'ob-ipython--write-base64-string :around #'+org*ob-ipython--write-base64-string))) + (advice-add 'ob-ipython--write-base64-string :around #'+org*ob-ipython--write-base64-string)) + + ;; ipython has its own async keyword, disable ipython in ob-async. + (after! ob-async + (add-to-list 'ob-async-no-async-languages-alist "ipython")))