ein:quit: call ein:jupyter-server-stop only if it is already present

This commit is contained in:
Sam Steingold 2019-11-25 10:11:15 -05:00
parent 3f275425fd
commit 4afa698c9c

View file

@ -1787,7 +1787,8 @@ the first argument and CBARGS as the rest of arguments."
"Close all notebooks and servers."
(interactive "P")
(ein:notebook-close-notebooks force)
(ein:jupyter-server-stop force)) ; autoloaded
(when (featurep 'ein-jupyter)
(ein:jupyter-server-stop force))) ; autoloaded
(defun ein:notebook-kill-buffer-callback ()