mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 09:01:40 -05:00
do not assume we are always connected to a server
(ein:notification-tab-create-line ((tab ein:notification-tab))): do not fail when (ein:$notebook-kernelspec ein:%notebook%) returns nil
This commit is contained in:
parent
0c447297dd
commit
42031dbee6
1 changed files with 3 additions and 1 deletions
|
@ -252,7 +252,9 @@ insert-prev insert-next move-prev move-next)"
|
|||
'help-echo "Click (mouse-1) to insert a new tab."
|
||||
'mouse-face 'highlight
|
||||
'face 'ein:notification-tab-normal)
|
||||
(propertize (format "|%s|" (ein:$kernelspec-name (ein:$notebook-kernelspec ein:%notebook%)))
|
||||
(propertize (ein:aif (ein:$notebook-kernelspec ein:%notebook%)
|
||||
(format "|%s|" (ein:$kernelspec-name it))
|
||||
"|not connected|")
|
||||
'keymap ein:header-line-switch-kernel-map
|
||||
'help-echo "Click (mouse-1) to change the running kernel."
|
||||
'mouse-face 'highlight
|
||||
|
|
Loading…
Add table
Reference in a new issue