mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-04 16:51:38 -05:00
ein-notebook: Command to jump to an open notebook buffer.
Per issue #523, add a command that let's user select and switch to an open notebook buffer.
This commit is contained in:
parent
92fddc899e
commit
321d0e6c15
1 changed files with 7 additions and 0 deletions
|
@ -359,6 +359,13 @@ will be updated with kernel's cwd."
|
|||
(let ((if-not-found (lambda (contents status-code) )))
|
||||
(ein:notebook-open url-or-port path kernelspec callback if-not-found no-pop)))
|
||||
|
||||
;;;###autoload
|
||||
(defun ein:notebook-jump-to-opened-notebook (notebook)
|
||||
"Switch to the buffer of an open notebook."
|
||||
(interactive
|
||||
(list (completing-read "Jump to notebook:" (ein:notebook-opened-buffer-names) nil t)))
|
||||
(switch-to-buffer notebook))
|
||||
|
||||
;;;###autoload
|
||||
(defun ein:notebook-open (url-or-port path &optional kernelspec callback errback no-pop)
|
||||
"Returns notebook at URL-OR-PORT/PATH.
|
||||
|
|
Loading…
Add table
Reference in a new issue