Skip to content

Commit 4276414

Browse files
authored
chore: codespell (#857)
1 parent 9b7366d commit 4276414

File tree

16 files changed

+25
-25
lines changed

16 files changed

+25
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ the overall project and vision:
143143
```
144144

145145
Our [SciPy paper](https://proceedings.scipy.org/articles/NRPV2311), detailing
146-
the motivation and approach behind Jupyter Widget ecosystem compatability:
146+
the motivation and approach behind Jupyter Widget ecosystem compatibility:
147147

148148
```bibtex
149149
@inproceedings{manz2024notebooks,

anywidget/_descriptor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def open_comm(
9797
)
9898

9999

100-
# cache of comms: mapp of id(obj) -> Comm.
100+
# cache of comms: map of id(obj) -> Comm.
101101
# we use id(obj) rather than WeakKeyDictionary because we can't assume that the
102102
# object has a __hash__ method
103103
_COMMS: dict[int, comm.base_comm.BaseComm] = {}
@@ -106,7 +106,7 @@ def open_comm(
106106
def _get_or_create_comm(
107107
obj: object, get_state: Callable[[], dict]
108108
) -> comm.base_comm.BaseComm:
109-
"""Get or create a communcation channel for a given object.
109+
"""Get or create a communication channel for a given object.
110110
111111
Comms are cached by object id, so that if the same object is used in multiple
112112
places, the same comm will be used. Comms are deleted when the object is garbage
@@ -371,7 +371,7 @@ def send_state(self, include: str | Iterable[str] | None = None) -> None:
371371
state = {**self._get_state(obj, include=include), **self._extra_state}
372372
if include is not None:
373373
# ensure that we only send the keys that were requested
374-
# incase the state getter returned extra keys
374+
# in case the state getter returned extra keys
375375
state = {k: v for k, v in state.items() if k in include}
376376

377377
if not state:

anywidget/widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init_subclass__(cls, **kwargs: dict) -> None:
6666
"""Coerces _esm and _css to FileContents if they are files."""
6767
super().__init_subclass__(**kwargs)
6868
for key in (_ESM_KEY, _CSS_KEY) & cls.__dict__.keys():
69-
# TODO(manzt): Upgrate to := when we drop Python 3.7
69+
# TODO(manzt): Upgrade to := when we drop Python 3.7
7070
# https://github.com/manzt/anywidget/pull/167
7171
file_contents = try_file_contents(getattr(cls, key))
7272
if file_contents:

docs/astro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineConfig({
3737
applyBaseStyles: false,
3838
},
3939
}),
40-
// Suports components in markdown
40+
// Supports components in markdown
4141
mdx(),
4242
sitemap(),
4343
],

docs/src/components/Footer/AvatarList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function removeDupsAndFindCoAuthors(arr: Commit[]) {
111111
users.forEach((user) => map.set(email, user));
112112
}
113113
114-
// finally dedupe by user id (incase separate emails for same user)
114+
// finally dedupe by user id (in case separate emails for same user)
115115
let deduped = new Map<string, User>();
116116
for (let [_, user] of map) {
117117
deduped.set(user.id, user);

docs/src/pages/blog/a-year-with-anywidget.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ image:
1414
> [Discord](https://discord.gg/W5h4vPMbDQ) 🐣
1515
1616
_TL;DR: **anywidget** v0.9 introduces `initialize` and `render`
17-
<a class="underline" href="#introducing-widget-lifecycle-hooks">lifecyle
17+
<a class="underline" href="#introducing-widget-lifecycle-hooks">lifecycle
1818
hooks</a> to allow greater control of front-end widget behavior_. _The preferred
1919
way to define widgets is now with a `default` object export:_
2020

@@ -41,7 +41,7 @@ This update also requires developers to opt-in to
4141
[live development features](/blog/anywidget-02#native-hot-module-replacement-hmr),
4242
reducing some minor production issues for widgets.
4343

44-
### Mimimizing Friction in Jupyter Front Ends
44+
### Minimizing Friction in Jupyter Front Ends
4545

4646
**anywidget** aims to make creating and sharing Jupyter Widgets as simple as
4747
possible. We expose a narrower set of web-standard APIs, compared to traditional
@@ -64,7 +64,7 @@ stage would be very challenging for traditional Jupyter Widgets, **anywidget**
6464
can standardize certain aspects to make widget development less error-prone and
6565
more accessible.
6666

67-
Despite these goals, serveral several community members highlighted specific
67+
Despite these goals, several several community members highlighted specific
6868
instances where **anywidget**'s existing API was too restrictive
6969
([#266](https://github.com/manzt/anywidget/issues/266),
7070
[#388](https://github.com/manzt/anywidget/issues/388)), prompting us to
@@ -83,7 +83,7 @@ there are two distinct steps in a widget's lifetime:
8383
- _View Rendering_: Each notebook cell displaying the widget renders an
8484
independent view based on the model's current state.
8585

86-
![The main parts of the widget lifecyle, including model initialization and view rendering](/widget-lifecycle.png)
86+
![The main parts of the widget lifecycle, including model initialization and view rendering](/widget-lifecycle.png)
8787

8888
In **anywidget**, _view rendering_ logic is defined with `render`, but
8989
historically _model initialization_ was handled implicitly. While this

docs/src/pages/blog/anywidget-02.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ and **anywidget** will automatically read the file contents from disk for you.
9191

9292
Now for the magic 🪄. Passing a file path not only offers a convenience to
9393
loading your front-end code, but also **opts in to anywidget's native HMR
94-
<u>during developement</u>.** **anywidget** will start listening for
94+
<u>during development</u>.** **anywidget** will start listening for
9595
modifications to the referenced files and instantly apply changes to the
9696
front-end, offering an integrated development experience within Jupyter like
9797
never before.
@@ -159,7 +159,7 @@ function render({ model, el }) {
159159
export default { render };
160160
```
161161
162-
The `import("@anywidget/types").Render<Model>` utilty strictly types the
162+
The `import("@anywidget/types").Render<Model>` utility strictly types the
163163
`render` function such that `model.get` and `model.set` are typed based on the
164164
user-defined `Model`.
165165

docs/src/pages/blog/introducing-anywidget.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ with the `sync=True` metadata – just like regular Jupyter Widgets!
472472
#### Two-Way Data Binding
473473

474474
The `ExampleWidget` demonstrates simple one-way data binding from the Python kernel
475-
to front-end view. This example is slightly more sophisicated and synchronizes the
475+
to front-end view. This example is slightly more sophisticated and synchronizes the
476476
model state between the widget front end and the Python kernel (i.e., two-way data binding).
477477

478478
The `render` function creates a `button` element and registers an event handler

docs/src/pages/en/community.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Community"
3-
discription: "Open-source projects built with anywidget"
3+
description: "Open-source projects built with anywidget"
44
layout: "../../layouts/MainLayout.astro"
55
image:
66
{

docs/src/pages/en/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ allowing real-time updates to your widget during development (below).
153153
154154
## Watch & Learn
155155
156-
This video provides a detailed exploration of **anywidget** fundementals,
156+
This video provides a detailed exploration of **anywidget** fundamentals,
157157
including synchronizing Python and JavaScript state, binary data, animations,
158158
and publishing a package on PyPI.
159159

0 commit comments

Comments
 (0)