Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos #3246

Merged
merged 1 commit into from
Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/examples/Widget Events.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
"\n",
"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",
"\n",
"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",
"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",
"\n",
"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."
]
Expand Down
6 changes: 3 additions & 3 deletions docs/source/examples/Widget Styling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@
"\n",
"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",
"\n",
"There are severl ways to specify the value for `object_position`, described below."
"There are several ways to specify the value for `object_position`, described below."
]
},
{
Expand Down Expand Up @@ -1263,7 +1263,7 @@
"+ A mix of pixel and percent offsets.\n",
"+ A mix of keywords and offsets.\n",
"\n",
"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",
"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",
"\n",
"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. "
]
Expand All @@ -1279,7 +1279,7 @@
"+ The horizontal position must be one of: \n",
" * `'left'`: the left side of the image should be aligned with the left side of the container\n",
" * `'center'`: the image should be centered horizontally in the container.\n",
" * `'right'`: the right side of the image should be aligned with the rigth side of the container.\n",
" * `'right'`: the right side of the image should be aligned with the right side of the container.\n",
"+ The vertical position must be one of\n",
" * `'top'`: the top of the image should be aligned with the top of the container.\n",
" * '`center`': the image should be centered vertically in the container. \n",
Expand Down
2 changes: 1 addition & 1 deletion ipywidgets/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def dependency_state(widgets, drop_defaults=True):
- any widget in a list/tuple attribute in the state of an included widget
- any widget in a dict attribute in the state of an included widget
- any jslink/jsdlink between two included widgets
What this alogrithm does not do:
What this alogorithm does not do:
- Find widget references in nested list/dict structures
- Find widget references in other types of attributes

Expand Down
2 changes: 1 addition & 1 deletion ipywidgets/widgets/tests/test_datetime_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_datetime_serialize_value():


def test_datetime_serialize_non_utz():
# Non-existant timezone, so it wil never be the local one:
# Non-existent timezone, so it will never be the local one:
tz = pytz.FixedOffset(42)
t = datetime.datetime(2002, 2, 20, 13, 37, 42, 7000, tz)
assert datetime_to_json(t, None) == dict(
Expand Down
4 changes: 2 additions & 2 deletions ipywidgets/widgets/tests/test_traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class TestColor(TraitTestBase):
'hsla(10,10,10, 0.5)', # rgba with float alpha
]
_bad_values = [
"vanilla", "blues", # Invald color names
"vanilla", "blues", # Invalid color names
1.2, 0.0, # Should fail with float input
0, 1, 2, # Should fail with int input
'rgb(0.4, 512, -40)',
Expand Down Expand Up @@ -124,7 +124,7 @@ def test_remove_and_put_buffers(self):
state = {'plain': [0, 'text'], # should not get removed
'x': {'ar': mv1}, # should result in an empty dict
'y': {'shape': (10, 10), 'data': mv1},
'z': (mv1, mv2), # tests tuple assigment
'z': (mv1, mv2), # tests tuple assignment
'top': mv1, # test a top level removal
'deep': {'a': 1, 'b':[0,{'deeper':mv2}]}} # deeply nested
plain = state['plain']
Expand Down
2 changes: 1 addition & 1 deletion ipywidgets/widgets/tests/test_widget_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def test_pass_layout_options(self): #pylint: disable=no-self-use
assert box.layout.justify_content == "center"
assert box.layout.align_items == "center"

# values passed directly in the constructor should overwite layout options
# values passed directly in the constructor should overwrite layout options
layout = widgets.Layout(grid_gap="10px", justify_content="center",
align_items="center")
box = widgets.TwoByTwoLayout(top_left=button1, top_right=button2,
Expand Down
2 changes: 1 addition & 1 deletion ipywidgets/widgets/widget_float.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class FloatProgress(_BoundedFloat):
bar_style = CaselessStrEnum(
values=['success', 'info', 'warning', 'danger', ''],
default_value='', allow_none=True,
help="Use a predefined styling for the progess bar.").tag(sync=True)
help="Use a predefined styling for the progress bar.").tag(sync=True)

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

Expand Down
4 changes: 2 additions & 2 deletions ipywidgets/widgets/widget_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class IntProgress(_BoundedInt):

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

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

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

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

interval = CInt(100, help="The time between two animation steps (ms).").tag(sync=True)
step = CInt(1, help="Increment step").tag(sync=True)
Expand Down
2 changes: 1 addition & 1 deletion packages/base/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function unpack_models(
});
return utils.resolvePromisesDict(unpacked);
} else if (typeof value === 'string' && value.slice(0, 10) === 'IPY_MODEL_') {
// get_model returns a promise already (except when it retunrs undefined!)
// get_model returns a promise already (except when it returns undefined!)
return Promise.resolve(manager.get_model(value.slice(10, value.length)));
} else {
return Promise.resolve(value);
Expand Down
2 changes: 1 addition & 1 deletion packages/controls/css/labvariables.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ all of MD as it is not optimized for dense, information rich UIs.
/* @import url('https://fonts.googleapis.com/css?family=Roboto+Mono'); */

/*
* Added for compabitility with output area
* Added for compatibility with output area
*/
:root {
--jp-icon-search: none;
Expand Down
2 changes: 1 addition & 1 deletion packages/controls/css/widgets-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@
display: none;
}

/* Widget Text and TextArea Stying */
/* Widget Text and TextArea Styling */

/* <DEPRECATED> */
.widget-textarea, /* <DEPRECATED> */
Expand Down
2 changes: 1 addition & 1 deletion packages/controls/src/widget_bool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class CheckboxView extends DescriptionView {
}

/**
* Overriden from super class
* Overridden from super class
*
* Update the description span (rather than the label) since
* we want the description to the right of the checkbox.
Expand Down
2 changes: 1 addition & 1 deletion packages/controls/src/widget_selectioncontainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export class TabView extends DOMWidgetView {
widget.title.closable = false;

const i = ArrayExt.firstIndexOf(tabs.widgets, placeholder);
// insert after placeholder so that if placholder is selected, the
// insert after placeholder so that if placeholder is selected, the
// real widget will be selected now (this depends on the tab bar
// insert behavior)
tabs.insertWidget(i + 1, widget);
Expand Down
4 changes: 2 additions & 2 deletions packages/controls/test/src/widget_datetime_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Datetime', () => {
expect(model.get('value')).to.be.a('null');
});

it('should be createable with a value', () => {
it('should be creatable with a value', () => {
const state = { value: date };
const model = createTestModel(DatetimeModel, state);
expect(model).to.be.instanceof(DatetimeModel);
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('Datetime', () => {
expect(model.get('value')).to.be.a('null');
});

it('should be createable with a value', () => {
it('should be creatable with a value', () => {
const state = { value: date };
const model = createTestModel(NaiveDatetimeModel, state);
expect(model).to.be.an.instanceof(NaiveDatetimeModel);
Expand Down
2 changes: 1 addition & 1 deletion packages/controls/test/src/widget_time_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Time', () => {
expect(model.get('value')).to.be.a('null');
});

it('should be createable with a value', () => {
it('should be creatable with a value', () => {
const state = { value: timeString };
const model = createTestModel(TimeModel, state);
expect(model).to.be.an.instanceof(TimeModel);
Expand Down
2 changes: 1 addition & 1 deletion packages/html-manager/src/libembed-amd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function moduleNameToCDNUrl(moduleName: string, moduleVersion: string): string {
* @param version The semver range for the module, if loaded from a CDN.
*
* By default, the CDN service used is jsDelivr. However, this default can be
* overriden by specifying another URL via the HTML attribute
* overridden by specifying another URL via the HTML attribute
* "data-jupyter-widgets-cdn" on a script tag of the page.
*
* The semver range is only used with the CDN.
Expand Down
6 changes: 3 additions & 3 deletions packages/schema/jupyterwidgetmodels.latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2892,7 +2892,7 @@
"allow_none": true,
"default": "",
"enum": ["success", "info", "warning", "danger", ""],
"help": "Use a predefined styling for the progess bar.",
"help": "Use a predefined styling for the progress bar.",
"name": "bar_style",
"type": "string"
},
Expand Down Expand Up @@ -4163,7 +4163,7 @@
{
"default": "",
"enum": ["success", "info", "warning", "danger", ""],
"help": "Use a predefined styling for the progess bar.",
"help": "Use a predefined styling for the progress bar.",
"name": "bar_style",
"type": "string"
},
Expand Down Expand Up @@ -5472,7 +5472,7 @@
},
{
"default": false,
"help": "Whether the control will repeat in a continous loop.",
"help": "Whether the control will repeat in a continuous loop.",
"name": "repeat",
"type": "bool"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/schema/jupyterwidgetmodels.latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ Attribute | Type | Default | Help
`_view_module` | string | `'@jupyter-widgets/controls'` |
`_view_module_version` | string | `'2.0.0'` |
`_view_name` | string | `'ProgressView'` |
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
`description` | string | `''` | Description of the control.
`description_allow_html` | boolean | `false` | Accept HTML in the description.
`layout` | reference to Layout widget | reference to new instance |
Expand Down Expand Up @@ -733,7 +733,7 @@ Attribute | Type | Default | Help
`_view_module` | string | `'@jupyter-widgets/controls'` |
`_view_module_version` | string | `'2.0.0'` |
`_view_name` | string | `'ProgressView'` |
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
`description` | string | `''` | Description of the control.
`description_allow_html` | boolean | `false` | Accept HTML in the description.
`layout` | reference to Layout widget | reference to new instance |
Expand Down Expand Up @@ -942,7 +942,7 @@ Attribute | Type | Default | Help
`max` | number (integer) | `100` | Max value
`min` | number (integer) | `0` | Min value
`playing` | boolean | `false` | Whether the control is currently playing.
`repeat` | boolean | `false` | Whether the control will repeat in a continous loop.
`repeat` | boolean | `false` | Whether the control will repeat in a continuous loop.
`show_repeat` | boolean | `true` | Show the repeat toggle button in the widget.
`step` | number (integer) | `1` | Increment step
`style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations
Expand Down
6 changes: 3 additions & 3 deletions packages/schema/jupyterwidgetmodels.v6.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Attribute | Type | Default | Help
`_view_module` | string | `'jupyter-js-widgets'` |
`_view_module_version` | string | `'~2.1.0'` |
`_view_name` | string | `'ProgressView'` |
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
`description` | string | `''` | Description of the control.
`disabled` | boolean | `false` | Enable or disable user changes
`layout` | reference to Layout widget | reference to new instance |
Expand Down Expand Up @@ -404,7 +404,7 @@ Attribute | Type | Default | Help
`_view_module` | string | `'jupyter-js-widgets'` |
`_view_module_version` | string | `'~2.1.0'` |
`_view_name` | string | `'ProgressView'` |
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
`description` | string | `''` | Description of the control.
`disabled` | boolean | `false` | Enable or disable user changes
`layout` | reference to Layout widget | reference to new instance |
Expand Down Expand Up @@ -839,7 +839,7 @@ Attribute | Type | Default | Help

## Inheritance

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.
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.

* CoreWidget - Abstract
* DOMWidget(Widget) - Abstract
Expand Down
6 changes: 3 additions & 3 deletions packages/schema/jupyterwidgetmodels.v7-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ Attribute | Type | Default | Help
`_view_module` | string | `'@jupyter-widgets/controls'` |
`_view_module_version` | string | `'1.1.0'` |
`_view_name` | string | `'ProgressView'` |
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
`bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
`description` | string | `''` | Description of the control.
`layout` | reference to Layout widget | reference to new instance |
`max` | number (float) | `100.0` | Max value
Expand Down Expand Up @@ -460,7 +460,7 @@ Attribute | Type | Default | Help
`_view_module` | string | `'@jupyter-widgets/controls'` |
`_view_module_version` | string | `'1.1.0'` |
`_view_name` | string | `'ProgressView'` |
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar.
`bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progress bar.
`description` | string | `''` | Description of the control.
`layout` | reference to Layout widget | reference to new instance |
`max` | number (integer) | `100` | Max value
Expand Down Expand Up @@ -594,7 +594,7 @@ Attribute | Type | Default | Help
`_model_module_version` | string | `'1.1.0'` |
`_model_name` | string | `'PlayModel'` |
`_playing` | boolean | `false` | Whether the control is currently playing.
`_repeat` | boolean | `false` | Whether the control will repeat in a continous loop.
`_repeat` | boolean | `false` | Whether the control will repeat in a continuous loop.
`_view_module` | string | `'@jupyter-widgets/controls'` |
`_view_module_version` | string | `'1.1.0'` |
`_view_name` | string | `'PlayView'` |
Expand Down
Loading