From bc920e98791f58dc49bb82ee34e9ec13e807085d Mon Sep 17 00:00:00 2001 From: Abhinav Sagar <40603139+abhinavsagar@users.noreply.github.com> Date: Fri, 7 Jun 2019 15:46:09 +0530 Subject: [PATCH 01/22] .travis.yml: The 'sudo' tag is now deprecated in Travis CI (#4654) --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd7304aa0..df263d4e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,6 @@ cache: python: - 3.6 -sudo: required - env: global: From 922e97922c80e0cef7edd25a3455190cb9ae5ea8 Mon Sep 17 00:00:00 2001 From: Pierre Tholoniat <32133147+tholoz@users.noreply.github.com> Date: Fri, 7 Jun 2019 20:17:18 +1000 Subject: [PATCH 02/22] Fix French typo (#4651) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrected "Échec de la connection" to "Échec de la connexion" --- notebook/i18n/fr_FR/LC_MESSAGES/nbjs.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/i18n/fr_FR/LC_MESSAGES/nbjs.po b/notebook/i18n/fr_FR/LC_MESSAGES/nbjs.po index f01c7e97d..a8b01bf13 100644 --- a/notebook/i18n/fr_FR/LC_MESSAGES/nbjs.po +++ b/notebook/i18n/fr_FR/LC_MESSAGES/nbjs.po @@ -1187,7 +1187,7 @@ msgstr "" #: notebook/static/notebook/js/notificationarea.js:166 msgid "Connection failed" -msgstr "Échec de la connection" +msgstr "Échec de la connexion" #: notebook/static/notebook/js/notificationarea.js:179 msgid "No kernel" From 6174498ab0c4047aaed81a1bb5aa71b1fd8c842b Mon Sep 17 00:00:00 2001 From: Tim <33530562+tmetzl@users.noreply.github.com> Date: Fri, 7 Jun 2019 12:20:33 +0200 Subject: [PATCH 03/22] Add id for command palette button group (#4661) --- notebook/static/notebook/js/maintoolbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notebook/static/notebook/js/maintoolbar.js b/notebook/static/notebook/js/maintoolbar.js index 2207be4a2..e870053b6 100644 --- a/notebook/static/notebook/js/maintoolbar.js +++ b/notebook/static/notebook/js/maintoolbar.js @@ -58,7 +58,9 @@ define([ ], 'run_int'], [''], - [['jupyter-notebook:show-command-palette']] + [ + ['jupyter-notebook:show-command-palette'], + 'cmd_palette'] ]; this.construct(grps); }; From dd0f5d2608b3e0501e1e2f94d5b1f42a467ae8fc Mon Sep 17 00:00:00 2001 From: Ashton Reimer Date: Thu, 13 Jun 2019 15:36:45 -0700 Subject: [PATCH 04/22] bfix: shutdown_server returns True when pid exists `check_pid` returns `True` if the PID for a notebook server still exists. Therefore, the `if check_pid(pid):` statements on lines 424 and 437 evaluate to `True` even though the notebook server is still running. This commit simply adds a `not` to each line: `if not check_pid(pid):` so that the conditional only evaluates to `True` if `check_pid` returns `False`, which happens when the notebook server has shutdown, as expected. --- notebook/notebookapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index a1a210826..ac97cf847 100755 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -421,7 +421,7 @@ def shutdown_server(server_info, timeout=5, log=None): # Poll to see if it shut down. for _ in range(timeout*10): - if check_pid(pid): + if not check_pid(pid): if log: log.debug("Server PID %s is gone", pid) return True time.sleep(0.1) @@ -434,7 +434,7 @@ def shutdown_server(server_info, timeout=5, log=None): # Poll to see if it shut down. for _ in range(timeout * 10): - if check_pid(pid): + if not check_pid(pid): if log: log.debug("Server PID %s is gone", pid) return True time.sleep(0.1) From 9b1fa3d66b85dc6d3757ec4f9e8cc691b42c0710 Mon Sep 17 00:00:00 2001 From: Joshua Zeltser Date: Fri, 7 Jun 2019 14:18:21 +0100 Subject: [PATCH 05/22] #3938: solved this issue, but more checking needs to be done to see whether this is sufficient --- notebook/static/notebook/js/maintoolbar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notebook/static/notebook/js/maintoolbar.js b/notebook/static/notebook/js/maintoolbar.js index 2207be4a2..1e89871c5 100644 --- a/notebook/static/notebook/js/maintoolbar.js +++ b/notebook/static/notebook/js/maintoolbar.js @@ -73,6 +73,8 @@ define([ var multiselect = $('