Put ob-scopes.el
on your load path or load it in your config.
Then you can either add it to the
(org-babel-do-load-languages
'org-babel-load-languages
'(
(python . t)
(shell . t)
(emacs-lisp . t)
; etc...
(scopes . t)
))
Or you can just add it to the list:
(add-to-list 'org-babel-load-languages '(scopes . t))
Doesn’t support sessions. You can execute and also export the results.
To stop it from prompting you before each execution put this into your config:
(defun my-org-confirm-babel-evaluate (lang body)
(not
(string= lang "scopes")
))
(setq org-confirm-babel-evaluate #'my-org-confirm-babel-evaluate)
Of course be wary of executing untrusted code on your computer.
If you have a 0
at the end of a block without a newline you will get
a compilation error e.g.:
#+begin_src scopes print 0 #+end_src
Just add a newline like:
#+begin_src scopes print 0 #+end_src