@@ -17,6 +17,7 @@ Spacemacs layer for https://github.com/dzop/emacs-jupyter
1717** Features:
1818 - Interactive REPL
1919 - Jupyter kernels support for =org-babel=
20+ - auto-completion using =Company= in REPL and =org-src-blocks=
2021
2122* Install
2223To use this configuration layer, add it to your =~/.spacemacs=. You will need to
@@ -28,7 +29,8 @@ Additionally you need to have =jupyter= available in your =PATH=.
2829The jupyter package also provides integration with =org-babel= via =ob-jupyter=.
2930To use the kernels in jupyter just add =(jupyter . t)= to your
3031=org-babel-load-languages= list as the last element.
31- Adding to the variable is sufficient as spacemacs provides a hook that loads it.
32+ If no auto-completion is used adding to the variable is sufficient as spacemacs
33+ provides a hook that loads it the first time =org-mode= is started.
3234
3335An example would be adding
3436#+BEGIN_SRC emacs-lisp
@@ -37,12 +39,15 @@ An example would be adding
3739 (append org-babel-load-languages
3840 '((latex . t)
3941 ;; jupyter has to be the last element
40- (jupyter . t)))))
42+ (jupyter . t))))
43+ ;; Execute load languages once, else autocompletion will only work in the
44+ ;; second org file one opens
45+ (spacemacs//org-babel-do-load-languages))
4146#+END_SRC
4247to your =dotspacemacs/user-config=.
4348
4449* Key bindings
45- To start a REPL use ~SPC a j r~ and to connect to one ~SPC a j c~.
50+ To start a REPL use ~SPC a j j~ or ~SPC a j r~ and to connect to one ~SPC a j c~.
4651
4752| Key Binding | Description |
4853|-------------+----------------|
0 commit comments