mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
Implement jupyter-repl-scratch-buffer
This commit is contained in:
parent
53ebf1ad35
commit
6fec4e2d85
1 changed files with 12 additions and 0 deletions
|
@ -1662,6 +1662,18 @@ in the appropriate direction, to the saved element."
|
|||
|
||||
;;; `jupyter-repl-mode'
|
||||
|
||||
(defun jupyter-repl-scratch-buffer ()
|
||||
"Display a scratch buffer associated with the current REPL buffer."
|
||||
(interactive)
|
||||
(if (jupyter-repl-connected-p)
|
||||
(let ((client jupyter-repl-current-client))
|
||||
(with-current-buffer (get-buffer-create
|
||||
(concat "*jupyter-scratch*"))
|
||||
(funcall (jupyter-repl-language-mode client))
|
||||
(jupyter-repl-associate-buffer client)
|
||||
(pop-to-buffer (current-buffer))))
|
||||
(error "Not in a valid REPL buffer")))
|
||||
|
||||
(defvar jupyter-repl-mode-map
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(define-key map "q" nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue