mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-repl-associate-buffer: Fix interactive argument
This commit is contained in:
parent
ac053e16d4
commit
3734b2d3a4
1 changed files with 4 additions and 2 deletions
|
@ -2480,8 +2480,10 @@ If CLIENT is a buffer or the name of a buffer, use the
|
|||
(interactive
|
||||
(list
|
||||
(let ((repls (jupyter-repl-available-repl-buffers major-mode)))
|
||||
(if repls (completing-read "jupyter-repl: " repls nil t)
|
||||
nil))))
|
||||
(when repls
|
||||
(with-current-buffer
|
||||
(completing-read "jupyter-repl: " repls nil t)
|
||||
jupyter-current-client)))))
|
||||
(if (not client)
|
||||
(when (y-or-n-p "No REPL for `major-mode' exists. Start one? ")
|
||||
(call-interactively #'run-jupyter-repl))
|
||||
|
|
Loading…
Add table
Reference in a new issue