0

I just installed emacs 29.1 on Linux Mint. Then I downloaded and installed Doom - which seems to be operating properly. How do I enable Doom to run jupyter-python source blocks in an org document? I have enabled (org +jupyter) in init.el and I installed jupyter, but so far all I get is, "No org-babel-execute function for jupyter-python!".

1 Answer 1

0

Posting an answer as I cannot comment.

To get to the true issue you'd have to toggle doom-debug-mode and inspect the backtrace, but I am experiencing this issue and solve it by running org-babel-jupyter-aliases-from-kernelspecs after opening an org file.

6
  • My installation of Doom doesn't have that command. The only completions I get for M-x org-babel are tangle commands. Commented Jun 18 at 15:29
  • That's because it is not an interactive function, so it not available under M-x. To run it, perform M-x eval-expression, type the function name in the minibuffer (you'll likely get a completion candidate for it), then press RET. Commented Jun 18 at 17:18
  • Thanks for that! Unfortunately, completion only went as far as org-babel. There are no jupyter commands in my emacs. Commented Jun 18 at 19:47
  • The function is declared in ob-jupyter.el, which comes packaged with the jupyter emacs package. Before attempting to run the function, ensure it is loaded by running (require 'ob-jupyter) with eval-expression. Then you should be able to run the kernelspec function Commented Jun 18 at 19:59
  • I reinstalled the jupyter package to be sure, but still no luck. Here's what I get: Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "ob-jupyter") require(ob-jupyter) eval-expression((require 'ob-jupyter) nil nil 127) funcall-interactively(eval-expression (require 'ob-jupyter) nil nil 127) command-execute(eval-expression record) execute-extended-command(nil "eval-expression" nil) funcall-interactively(execute-extended-command nil "eval-expression" nil) command-execute(execute-extended-command) Commented Jun 18 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.