In a python source block in org-mode, after hitting C-c C-c, emacs says
Evaluation of python source block is disabled
Could anyone explain why?
In a python source block in org-mode, after hitting C-c C-c, emacs says
Evaluation of python source block is disabled
Could anyone explain why?
Simon's answer is not right if the org-mode version is >= 9. Here is another question on the same problem.
The solution
cd .emacs.d
cd elpa
cd org-xxxx
rm *.elc
Then, it's better to byte-recompile the directory of the org-xxxx. To do that, start emacs, then
C-0 M-x byte-recompile-directory RET ~/emacs.d/elpa/org-xxxx
Details at here.
Update 1: EmacsWiki on compile file.
In order to evaluate an org-mode code block of a specific language you will have to customize
org-babel-load-languages
as described here. Evaluating the following will probably resolve your issue:From the docs: