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
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.
-
My installation of Doom doesn't have that command. The only completions I get for M-x org-babel are tangle commands.Mike– Mike2025-06-18 15:29:12 +00:00Commented Jun 18 at 15:29
-
That's because it is not an interactive function, so it not available under
M-x. To run it, performM-x eval-expression, type the function name in the minibuffer (you'll likely get a completion candidate for it), then pressRET.nanowillis– nanowillis2025-06-18 17:18:17 +00:00Commented 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.Mike– Mike2025-06-18 19:47:23 +00:00Commented Jun 18 at 19:47
-
The function is declared in
ob-jupyter.el, which comes packaged with thejupyteremacs package. Before attempting to run the function, ensure it is loaded by running(require 'ob-jupyter)witheval-expression. Then you should be able to run the kernelspec functionnanowillis– nanowillis2025-06-18 19:59:35 +00:00Commented 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)Mike– Mike2025-06-18 20:11:49 +00:00Commented Jun 18 at 20:11