From 3cc628e3fe0c8bf5415470ff69eb4070e8a2e4a3 Mon Sep 17 00:00:00 2001 From: user202729 <25191436+user202729@users.noreply.github.com> Date: Mon, 28 Dec 2020 21:48:41 +0700 Subject: [PATCH] Fix typo --- notebook/bundler/tests/test_bundler_api.py | 2 +- notebook/static/notebook/js/celltoolbar.js | 2 +- notebook/static/notebook/js/codecell.js | 2 +- notebook/static/notebook/js/completer.js | 4 ++-- notebook/static/notebook/js/tooltip.js | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/notebook/bundler/tests/test_bundler_api.py b/notebook/bundler/tests/test_bundler_api.py index 173ee5fb3..6c251e5e9 100644 --- a/notebook/bundler/tests/test_bundler_api.py +++ b/notebook/bundler/tests/test_bundler_api.py @@ -46,7 +46,7 @@ class BundleAPITest(NotebookTestBase): self.assertIn('Missing argument bundler', resp.text) def test_notebook_not_found(self): - """Shoudl respond with 404 error about missing notebook""" + """Should respond with 404 error about missing notebook""" resp = self.request('GET', 'bundle/fake.ipynb', params={'bundler': 'fake_bundler'}) self.assertEqual(resp.status_code, 404) diff --git a/notebook/static/notebook/js/celltoolbar.js b/notebook/static/notebook/js/celltoolbar.js index 95ee248dc..889f3c6ef 100644 --- a/notebook/static/notebook/js/celltoolbar.js +++ b/notebook/static/notebook/js/celltoolbar.js @@ -403,7 +403,7 @@ define([ * @static * * @param list_list {list_of_sublist} List of sublist of metadata value and name in the dropdown list. - * subslit should contain 2 element each, first a string that woul be displayed in the dropdown list, + * sublist should contain 2 element each, first a string that would be displayed in the dropdown list, * and second the corresponding value to be passed to setter/return by getter. the corresponding value * should not be "undefined" or behavior can be unexpected. * @param setter {function( cell, newValue )} diff --git a/notebook/static/notebook/js/codecell.js b/notebook/static/notebook/js/codecell.js index f5b21bf8c..a1b7179ec 100644 --- a/notebook/static/notebook/js/codecell.js +++ b/notebook/static/notebook/js/codecell.js @@ -253,7 +253,7 @@ define([ } if (event.which === keycodes.down && event.type === 'keypress' && this.tooltip.time_before_tooltip >= 0) { - // triger on keypress (!) otherwise inconsistent event.which depending on plateform + // triger on keypress (!) otherwise inconsistent event.which depending on platform // browser and keyboard layout ! // Pressing '(' , request tooltip, don't forget to reappend it // The second argument says to hide the tooltip if the docstring diff --git a/notebook/static/notebook/js/completer.js b/notebook/static/notebook/js/completer.js index 909438b5d..98b89161c 100644 --- a/notebook/static/notebook/js/completer.js +++ b/notebook/static/notebook/js/completer.js @@ -348,7 +348,7 @@ define([ } else if (code == keycodes.tab) { //all the fastforwarding operation, //Check that shared start is not null which can append with prefixed completion - // like %pylab , pylab have no shred start, and ff will result in py + // like %pylab , pylab have no shared start, and ff will result in py // to erase py var sh = shared_start(this.raw_result, true); if (sh.str !== '') { @@ -358,7 +358,7 @@ define([ this.carry_on_completion(); } else if (code == keycodes.up || code == keycodes.down) { // need to do that to be able to move the arrow - // when on the first or last line ofo a code cell + // when on the first or last line of a code cell event.codemirrorIgnore = true; event._ipkmIgnore = true; event.preventDefault(); diff --git a/notebook/static/notebook/js/tooltip.js b/notebook/static/notebook/js/tooltip.js index 98c1448ac..e913a3fd8 100644 --- a/notebook/static/notebook/js/tooltip.js +++ b/notebook/static/notebook/js/tooltip.js @@ -135,7 +135,7 @@ define([ }; // deal with all the logic of hiding the tooltip - // and reset it's status + // and reset its status Tooltip.prototype._hide = function () { this._hidden = true; this.tooltip.fadeOut('fast'); @@ -243,7 +243,7 @@ define([ this._sticky = false; }; - // put the tooltip in a sicky state for 10 seconds + // put the tooltip in a sticky state for 10 seconds // it won't be removed by remove_and_cancel() unless you called with // the first parameter set to true. // remove_and_cancel_tooltip(true)