Skip to content

Commit f8758ac

Browse files
authored
Merge pull request #3246 from giswqs/master
Fixed typos
2 parents f6ea8ed + af0e25e commit f8758ac

27 files changed

+53
-53
lines changed

docs/source/examples/Widget Events.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
"\n",
317317
"Linking in the kernel means linking via python. If two sliders are linked in the kernel, when one slider is changed the browser sends a message to the kernel (python in this case) updating the changed slider, the link widget in the kernel then propagates the change to the other slider object in the kernel, and then the other slider's kernel object sends a message to the browser to update the other slider's views in the browser. If the kernel is not running (as in a static web page), then the controls will not be linked.\n",
318318
"\n",
319-
"Linking using jslink (i.e., on the browser side) means contructing the link in Javascript. When one slider is changed, Javascript running in the browser changes the value of the other slider in the browser, without needing to communicate with the kernel at all. If the sliders are attached to kernel objects, each slider will update their kernel-side objects independently.\n",
319+
"Linking using jslink (i.e., on the browser side) means constructing the link in Javascript. When one slider is changed, Javascript running in the browser changes the value of the other slider in the browser, without needing to communicate with the kernel at all. If the sliders are attached to kernel objects, each slider will update their kernel-side objects independently.\n",
320320
"\n",
321321
"To see the difference between the two, go to the [static version of this page in the ipywidgets documentation](http://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Events.html) and try out the sliders near the bottom. The ones linked in the kernel with `link` and `dlink` are no longer linked, but the ones linked in the browser with `jslink` and `jsdlink` are still linked."
322322
]

docs/source/examples/Widget Styling.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@
10571057
"\n",
10581058
"Use `Image.layout.object_position` to control how where an image is positioned within a container like a box. The default value ensures that the image is centered in the box. The effect of `Image.layout.object_position` depends, in some cases, on the value of `Image.layout.object_fit`.\n",
10591059
"\n",
1060-
"There are severl ways to specify the value for `object_position`, described below."
1060+
"There are several ways to specify the value for `object_position`, described below."
10611061
]
10621062
},
10631063
{
@@ -1263,7 +1263,7 @@
12631263
"+ A mix of pixel and percent offsets.\n",
12641264
"+ A mix of keywords and offsets.\n",
12651265
"\n",
1266-
"Image scaling as determined by `object_fit` will take precendence over the positioning in some cases. For example, if `object_fit` is `fill`, so that the image is supposed to fill the container without preserving the aspect ratio, then `object_position` will have no effect because there is effectively no positioning to do. \n",
1266+
"Image scaling as determined by `object_fit` will take precedence over the positioning in some cases. For example, if `object_fit` is `fill`, so that the image is supposed to fill the container without preserving the aspect ratio, then `object_position` will have no effect because there is effectively no positioning to do. \n",
12671267
"\n",
12681268
"Another way to think about it is this: `object_position` specifies how the *white space* around an image should be distributed in a container if there is white space in a particular direction. "
12691269
]
@@ -1279,7 +1279,7 @@
12791279
"+ The horizontal position must be one of: \n",
12801280
" * `'left'`: the left side of the image should be aligned with the left side of the container\n",
12811281
" * `'center'`: the image should be centered horizontally in the container.\n",
1282-
" * `'right'`: the right side of the image should be aligned with the rigth side of the container.\n",
1282+
" * `'right'`: the right side of the image should be aligned with the right side of the container.\n",
12831283
"+ The vertical position must be one of\n",
12841284
" * `'top'`: the top of the image should be aligned with the top of the container.\n",
12851285
" * '`center`': the image should be centered vertically in the container. \n",

ipywidgets/embed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def dependency_state(widgets, drop_defaults=True):
143143
- any widget in a list/tuple attribute in the state of an included widget
144144
- any widget in a dict attribute in the state of an included widget
145145
- any jslink/jsdlink between two included widgets
146-
What this alogrithm does not do:
146+
What this alogorithm does not do:
147147
- Find widget references in nested list/dict structures
148148
- Find widget references in other types of attributes
149149

ipywidgets/widgets/tests/test_datetime_serializers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_datetime_serialize_value():
5757

5858

5959
def test_datetime_serialize_non_utz():
60-
# Non-existant timezone, so it wil never be the local one:
60+
# Non-existent timezone, so it will never be the local one:
6161
tz = pytz.FixedOffset(42)
6262
t = datetime.datetime(2002, 2, 20, 13, 37, 42, 7000, tz)
6363
assert datetime_to_json(t, None) == dict(

ipywidgets/widgets/tests/test_traits.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TestColor(TraitTestBase):
5454
'hsla(10,10,10, 0.5)', # rgba with float alpha
5555
]
5656
_bad_values = [
57-
"vanilla", "blues", # Invald color names
57+
"vanilla", "blues", # Invalid color names
5858
1.2, 0.0, # Should fail with float input
5959
0, 1, 2, # Should fail with int input
6060
'rgb(0.4, 512, -40)',
@@ -124,7 +124,7 @@ def test_remove_and_put_buffers(self):
124124
state = {'plain': [0, 'text'], # should not get removed
125125
'x': {'ar': mv1}, # should result in an empty dict
126126
'y': {'shape': (10, 10), 'data': mv1},
127-
'z': (mv1, mv2), # tests tuple assigment
127+
'z': (mv1, mv2), # tests tuple assignment
128128
'top': mv1, # test a top level removal
129129
'deep': {'a': 1, 'b':[0,{'deeper':mv2}]}} # deeply nested
130130
plain = state['plain']

ipywidgets/widgets/tests/test_widget_templates.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_pass_layout_options(self): #pylint: disable=no-self-use
189189
assert box.layout.justify_content == "center"
190190
assert box.layout.align_items == "center"
191191

192-
# values passed directly in the constructor should overwite layout options
192+
# values passed directly in the constructor should overwrite layout options
193193
layout = widgets.Layout(grid_gap="10px", justify_content="center",
194194
align_items="center")
195195
box = widgets.TwoByTwoLayout(top_left=button1, top_right=button2,

ipywidgets/widgets/widget_float.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class FloatProgress(_BoundedFloat):
248248
bar_style = CaselessStrEnum(
249249
values=['success', 'info', 'warning', 'danger', ''],
250250
default_value='', allow_none=True,
251-
help="Use a predefined styling for the progess bar.").tag(sync=True)
251+
help="Use a predefined styling for the progress bar.").tag(sync=True)
252252

253253
style = InstanceDict(ProgressStyle).tag(sync=True, **widget_serialization)
254254

ipywidgets/widgets/widget_int.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class IntProgress(_BoundedInt):
188188

189189
bar_style = CaselessStrEnum(
190190
values=['success', 'info', 'warning', 'danger', ''], default_value='',
191-
help="""Use a predefined styling for the progess bar.""").tag(sync=True)
191+
help="""Use a predefined styling for the progress bar.""").tag(sync=True)
192192

193193
style = InstanceDict(ProgressStyle).tag(sync=True, **widget_serialization)
194194

@@ -228,7 +228,7 @@ class Play(_BoundedInt):
228228
_model_name = Unicode('PlayModel').tag(sync=True)
229229

230230
playing = Bool(help="Whether the control is currently playing.").tag(sync=True)
231-
repeat = Bool(help="Whether the control will repeat in a continous loop.").tag(sync=True)
231+
repeat = Bool(help="Whether the control will repeat in a continuous loop.").tag(sync=True)
232232

233233
interval = CInt(100, help="The time between two animation steps (ms).").tag(sync=True)
234234
step = CInt(1, help="Increment step").tag(sync=True)

packages/base/src/widget.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function unpack_models(
4949
});
5050
return utils.resolvePromisesDict(unpacked);
5151
} else if (typeof value === 'string' && value.slice(0, 10) === 'IPY_MODEL_') {
52-
// get_model returns a promise already (except when it retunrs undefined!)
52+
// get_model returns a promise already (except when it returns undefined!)
5353
return Promise.resolve(manager.get_model(value.slice(10, value.length)));
5454
} else {
5555
return Promise.resolve(value);

packages/controls/css/labvariables.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ all of MD as it is not optimized for dense, information rich UIs.
3939
/* @import url('https://fonts.googleapis.com/css?family=Roboto+Mono'); */
4040

4141
/*
42-
* Added for compabitility with output area
42+
* Added for compatibility with output area
4343
*/
4444
:root {
4545
--jp-icon-search: none;

packages/controls/css/widgets-base.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@
594594
display: none;
595595
}
596596

597-
/* Widget Text and TextArea Stying */
597+
/* Widget Text and TextArea Styling */
598598

599599
/* <DEPRECATED> */
600600
.widget-textarea, /* <DEPRECATED> */

packages/controls/src/widget_bool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class CheckboxView extends DescriptionView {
6868
}
6969

7070
/**
71-
* Overriden from super class
71+
* Overridden from super class
7272
*
7373
* Update the description span (rather than the label) since
7474
* we want the description to the right of the checkbox.

packages/controls/src/widget_selectioncontainer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export class TabView extends DOMWidgetView {
347347
widget.title.closable = false;
348348

349349
const i = ArrayExt.firstIndexOf(tabs.widgets, placeholder);
350-
// insert after placeholder so that if placholder is selected, the
350+
// insert after placeholder so that if placeholder is selected, the
351351
// real widget will be selected now (this depends on the tab bar
352352
// insert behavior)
353353
tabs.insertWidget(i + 1, widget);

packages/controls/test/src/widget_datetime_test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Datetime', () => {
2323
expect(model.get('value')).to.be.a('null');
2424
});
2525

26-
it('should be createable with a value', () => {
26+
it('should be creatable with a value', () => {
2727
const state = { value: date };
2828
const model = createTestModel(DatetimeModel, state);
2929
expect(model).to.be.instanceof(DatetimeModel);
@@ -122,7 +122,7 @@ describe('Datetime', () => {
122122
expect(model.get('value')).to.be.a('null');
123123
});
124124

125-
it('should be createable with a value', () => {
125+
it('should be creatable with a value', () => {
126126
const state = { value: date };
127127
const model = createTestModel(NaiveDatetimeModel, state);
128128
expect(model).to.be.an.instanceof(NaiveDatetimeModel);

packages/controls/test/src/widget_time_test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Time', () => {
2222
expect(model.get('value')).to.be.a('null');
2323
});
2424

25-
it('should be createable with a value', () => {
25+
it('should be creatable with a value', () => {
2626
const state = { value: timeString };
2727
const model = createTestModel(TimeModel, state);
2828
expect(model).to.be.an.instanceof(TimeModel);

packages/html-manager/src/libembed-amd.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function moduleNameToCDNUrl(moduleName: string, moduleVersion: string): string {
5555
* @param version The semver range for the module, if loaded from a CDN.
5656
*
5757
* By default, the CDN service used is jsDelivr. However, this default can be
58-
* overriden by specifying another URL via the HTML attribute
58+
* overridden by specifying another URL via the HTML attribute
5959
* "data-jupyter-widgets-cdn" on a script tag of the page.
6060
*
6161
* The semver range is only used with the CDN.

packages/schema/jupyterwidgetmodels.latest.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2892,7 +2892,7 @@
28922892
"allow_none": true,
28932893
"default": "",
28942894
"enum": ["success", "info", "warning", "danger", ""],
2895-
"help": "Use a predefined styling for the progess bar.",
2895+
"help": "Use a predefined styling for the progress bar.",
28962896
"name": "bar_style",
28972897
"type": "string"
28982898
},
@@ -4163,7 +4163,7 @@
41634163
{
41644164
"default": "",
41654165
"enum": ["success", "info", "warning", "danger", ""],
4166-
"help": "Use a predefined styling for the progess bar.",
4166+
"help": "Use a predefined styling for the progress bar.",
41674167
"name": "bar_style",
41684168
"type": "string"
41694169
},
@@ -5472,7 +5472,7 @@
54725472
},
54735473
{
54745474
"default": false,
5475-
"help": "Whether the control will repeat in a continous loop.",
5475+
"help": "Whether the control will repeat in a continuous loop.",
54765476
"name": "repeat",
54775477
"type": "bool"
54785478
},

packages/schema/jupyterwidgetmodels.latest.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ Attribute | Type | Default | Help
516516
`_view_module` | string | `'@jupyter-widgets/controls'` |
517517
`_view_module_version` | string | `'2.0.0'` |
518518
`_view_name` | string | `'ProgressView'` |
519-
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
519+
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
520520
`description` | string | `''` | Description of the control.
521521
`description_allow_html` | boolean | `false` | Accept HTML in the description.
522522
`layout` | reference to Layout widget | reference to new instance |
@@ -733,7 +733,7 @@ Attribute | Type | Default | Help
733733
`_view_module` | string | `'@jupyter-widgets/controls'` |
734734
`_view_module_version` | string | `'2.0.0'` |
735735
`_view_name` | string | `'ProgressView'` |
736-
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
736+
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
737737
`description` | string | `''` | Description of the control.
738738
`description_allow_html` | boolean | `false` | Accept HTML in the description.
739739
`layout` | reference to Layout widget | reference to new instance |
@@ -942,7 +942,7 @@ Attribute | Type | Default | Help
942942
`max` | number (integer) | `100` | Max value
943943
`min` | number (integer) | `0` | Min value
944944
`playing` | boolean | `false` | Whether the control is currently playing.
945-
`repeat` | boolean | `false` | Whether the control will repeat in a continous loop.
945+
`repeat` | boolean | `false` | Whether the control will repeat in a continuous loop.
946946
`show_repeat` | boolean | `true` | Show the repeat toggle button in the widget.
947947
`step` | number (integer) | `1` | Increment step
948948
`style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations

packages/schema/jupyterwidgetmodels.v6.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ Attribute | Type | Default | Help
243243
`_view_module` | string | `'jupyter-js-widgets'` |
244244
`_view_module_version` | string | `'~2.1.0'` |
245245
`_view_name` | string | `'ProgressView'` |
246-
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
246+
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
247247
`description` | string | `''` | Description of the control.
248248
`disabled` | boolean | `false` | Enable or disable user changes
249249
`layout` | reference to Layout widget | reference to new instance |
@@ -404,7 +404,7 @@ Attribute | Type | Default | Help
404404
`_view_module` | string | `'jupyter-js-widgets'` |
405405
`_view_module_version` | string | `'~2.1.0'` |
406406
`_view_name` | string | `'ProgressView'` |
407-
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
407+
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
408408
`description` | string | `''` | Description of the control.
409409
`disabled` | boolean | `false` | Enable or disable user changes
410410
`layout` | reference to Layout widget | reference to new instance |
@@ -839,7 +839,7 @@ Attribute | Type | Default | Help
839839

840840
## Inheritance
841841

842-
In the list below, the notation `WidgetB(WidgetA)` indicates that WidgetB inherits all of the attributes from WidgetA. This may help in implementing widgets to easily see the inheritance hierarcy.
842+
In the list below, the notation `WidgetB(WidgetA)` indicates that WidgetB inherits all of the attributes from WidgetA. This may help in implementing widgets to easily see the inheritance hierarchy.
843843

844844
* CoreWidget - Abstract
845845
* DOMWidget(Widget) - Abstract

packages/schema/jupyterwidgetmodels.v7-1.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Attribute | Type | Default | Help
307307
`_view_module` | string | `'@jupyter-widgets/controls'` |
308308
`_view_module_version` | string | `'1.1.0'` |
309309
`_view_name` | string | `'ProgressView'` |
310-
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
310+
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
311311
`description` | string | `''` | Description of the control.
312312
`layout` | reference to Layout widget | reference to new instance |
313313
`max` | number (float) | `100.0` | Max value
@@ -460,7 +460,7 @@ Attribute | Type | Default | Help
460460
`_view_module` | string | `'@jupyter-widgets/controls'` |
461461
`_view_module_version` | string | `'1.1.0'` |
462462
`_view_name` | string | `'ProgressView'` |
463-
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
463+
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
464464
`description` | string | `''` | Description of the control.
465465
`layout` | reference to Layout widget | reference to new instance |
466466
`max` | number (integer) | `100` | Max value
@@ -594,7 +594,7 @@ Attribute | Type | Default | Help
594594
`_model_module_version` | string | `'1.1.0'` |
595595
`_model_name` | string | `'PlayModel'` |
596596
`_playing` | boolean | `false` | Whether the control is currently playing.
597-
`_repeat` | boolean | `false` | Whether the control will repeat in a continous loop.
597+
`_repeat` | boolean | `false` | Whether the control will repeat in a continuous loop.
598598
`_view_module` | string | `'@jupyter-widgets/controls'` |
599599
`_view_module_version` | string | `'1.1.0'` |
600600
`_view_name` | string | `'PlayView'` |

0 commit comments

Comments
 (0)