Rudolf Adamkovič <[email protected]> writes: > 1. Emacs: "Evaluate this python code block on your system? (yes no) > 2. User: "yes RET" *sigh* > 3. Emacs: "No org-babel-execute function for python!" *beep* > 5. User: WAT. > > QUESTIONS: > > - Could Org not ask the question when the action is manual and explicit?
You can disable that question. It is enabled by default for safety. Please check out `org-confirm-babel-evaluate' docstring. Also, see `17.13 Code Evaluation and Security Issues' section in the manual. C-c C-c is not always explicit (because it can do many things). In fact, we even have `org-babel-no-eval-on-ctrl-c-ctrl-c' just to avoid accidentally running code blocks even when `org-confirm-babel-evaluate' is otherwise disabled. Org asking you to confirm is a deliberate design. > - Could Org require `ob-python' on behalf of the user? Maybe. But do note that babel backends are not always called ob-<language name>. For example, there is nothing like ob-elisp.el. Also, we have `org-babel-load-languages', which we should respect. I think we can add an extra customization that will make Org attempt loading not-yet-loaded languages when that customization is enabled and when `org-babel-load-languages' does not explicitly prohibit it. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
