Skip to content

Commit 7303d42

Browse files
Merge pull request #182 from kianmeng/fix-typos
Fix typos
2 parents 07f4677 + 348b2b1 commit 7303d42

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ If you were using these versions for the couple days they were up, move to 0.5.0
109109
### Fixes
110110

111111
- Fix `OSError: [WinError 6] The handle is invalid` for windows/python<3.7 [#77](https://github.com/jupyter/nbclient/pull/77)
112-
- Async wapper Exceptions no longer loose thier caused exception information [#65](https://github.com/jupyter/nbclient/pull/65)
112+
- Async wapper Exceptions no longer loose their caused exception information [#65](https://github.com/jupyter/nbclient/pull/65)
113113
- `extra_arguments` are now configurable by config settings [#66](https://github.com/jupyter/nbclient/pull/66)
114114

115115
### Operational
@@ -143,7 +143,7 @@ If you were using these versions for the couple days they were up, move to 0.5.0
143143
### Major Changes
144144

145145
- Async support is now available on the client. Methods that support async have an `async_` prefix and can be awaited [#10](https://github.com/jupyter/nbclient/pull/10) [#35](https://github.com/jupyter/nbclient/pull/35) [#37](https://github.com/jupyter/nbclient/pull/37) [#38](https://github.com/jupyter/nbclient/pull/38)
146-
- Dropped support for Python 3.5 due to async compatability issues [#34](https://github.com/jupyter/nbclient/pull/34)
146+
- Dropped support for Python 3.5 due to async compatibility issues [#34](https://github.com/jupyter/nbclient/pull/34)
147147
- Notebook documents now include the [new kernel timing fields](https://github.com/jupyter/nbformat/pull/144) [#32](https://github.com/jupyter/nbclient/pull/32)
148148

149149
### Fixes

nbclient/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def run_notebook(self, notebook_path):
132132
# Get its parent directory so we can add it to the $PATH
133133
path = pathlib.Path(notebook_path).parent.absolute()
134134

135-
# Set the intput file paths
135+
# Set the input file paths
136136
input_path = f"{name}.ipynb"
137137

138138
# Open up the notebook we're going to run

nbclient/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def reset_execution_trackers(self) -> None:
338338
# maps to list of hooks, where the last is used, this is used
339339
# to support nested use of output widgets.
340340
self.output_hook_stack: t.Any = collections.defaultdict(list)
341-
# our front-end mimicing Output widgets
341+
# our front-end mimicking Output widgets
342342
self.comm_objects: t.Dict[str, t.Any] = {}
343343

344344
def create_kernel_manager(self) -> KernelManager:
@@ -729,7 +729,7 @@ async def async_wait_for_reply(
729729
return None
730730

731731
wait_for_reply = run_sync(async_wait_for_reply)
732-
# Backwards compatability naming for papermill
732+
# Backwards compatibility naming for papermill
733733
_wait_for_reply = wait_for_reply
734734

735735
def _passed_deadline(self, deadline: int) -> bool:
@@ -929,7 +929,7 @@ def output(
929929

930930
parent_msg_id = msg['parent_header'].get('msg_id')
931931
if self.output_hook_stack[parent_msg_id]:
932-
# if we have a hook registered, it will overrride our
932+
# if we have a hook registered, it will override our
933933
# default output behaviour (e.g. OutputWidget)
934934
hook = self.output_hook_stack[parent_msg_id][-1]
935935
hook.output(outs, msg, display_id, cell_index)
@@ -964,7 +964,7 @@ def clear_output(self, outs: t.List, msg: t.Dict, cell_index: int) -> None:
964964

965965
parent_msg_id = msg['parent_header'].get('msg_id')
966966
if self.output_hook_stack[parent_msg_id]:
967-
# if we have a hook registered, it will overrride our
967+
# if we have a hook registered, it will override our
968968
# default clear_output behaviour (e.g. OutputWidget)
969969
hook = self.output_hook_stack[parent_msg_id][-1]
970970
hook.clear_output(outs, msg, cell_index)

nbclient/tests/files/Parallel Execute A.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"# Ensure notebooks can execute in parallel\n",
88
"\n",
99
"This notebook uses a file system based \"lock\" to assert that two instances of the notebook kernel will run in parallel. Each instance writes to a file in a temporary directory, and then tries to read the other file from\n",
10-
"the temporary directory, so that running them in sequence will fail, but running them in parallel will succed.\n",
10+
"the temporary directory, so that running them in sequence will fail, but running them in parallel will succeed.\n",
1111
"\n",
1212
"Two notebooks are launched, each which sets the `this_notebook` variable. One notebook is set to `this_notebook = 'A'` and the other `this_notebook = 'B'`."
1313
]

nbclient/tests/files/Parallel Execute B.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"# Ensure notebooks can execute in parallel\n",
88
"\n",
99
"This notebook uses a file system based \"lock\" to assert that two instances of the notebook kernel will run in parallel. Each instance writes to a file in a temporary directory, and then tries to read the other file from\n",
10-
"the temporary directory, so that running them in sequence will fail, but running them in parallel will succed.\n",
10+
"the temporary directory, so that running them in sequence will fail, but running them in parallel will succeed.\n",
1111
"\n",
1212
"Two notebooks are launched, each which sets the `this_notebook` variable. One notebook is set to `this_notebook = 'A'` and the other `this_notebook = 'B'`."
1313
]

nbclient/tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def test_synchronous_setup_kernel():
408408
nb = nbformat.v4.new_notebook()
409409
executor = NotebookClient(nb)
410410
with executor.setup_kernel():
411-
# Prove it initalized client
411+
# Prove it initialized client
412412
assert executor.kc is not None
413413
# Prove it removed the client (and hopefully cleaned up)
414414
assert executor.kc is None
@@ -420,7 +420,7 @@ def test_startnewkernel_with_kernelmanager():
420420
executor = NotebookClient(nb, km=km)
421421
executor.start_new_kernel()
422422
kc = executor.start_new_kernel_client()
423-
# prove it initalized client
423+
# prove it initialized client
424424
assert kc is not None
425425
# since we are not using the setup_kernel context manager,
426426
# cleanup has to be done manually

0 commit comments

Comments
 (0)