mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Add jupyter-repl-eval-buffer
This commit is contained in:
parent
19fcf4bd9a
commit
c7eaed8f95
1 changed files with 6 additions and 0 deletions
|
@ -2078,6 +2078,12 @@ are displayed."
|
|||
(kill-buffer)))
|
||||
(error "Not a file (%s)" file)))
|
||||
|
||||
(defun jupyter-repl-eval-buffer (buffer)
|
||||
"Send the contents of BUFFER using `jupyter-current-client'."
|
||||
(interactive (list (current-buffer)))
|
||||
(jupyter-repl-eval-string
|
||||
(with-current-buffer buffer (buffer-string)) 'silently))
|
||||
|
||||
(defun jupyter-repl-eval-region (beg end &optional silently)
|
||||
"Evaluate a region with the `jupyter-current-client'.
|
||||
BEG and END are the beginning and end of the region to evaluate.
|
||||
|
|
Loading…
Add table
Reference in a new issue