From fca6f355605dc9e04062ce0eec4a7acbb5632ae2 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 23 Mar 2018 15:13:19 -0700 Subject: [PATCH 1/8] Bump the controls version to 1.2.0. --- ipywidgets/_version.py | 2 +- packages/controls/src/version.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipywidgets/_version.py b/ipywidgets/_version.py index 6ae9f061a6..b1122f826e 100644 --- a/ipywidgets/_version.py +++ b/ipywidgets/_version.py @@ -11,7 +11,7 @@ __protocol_version__ = '2.0.0' __jupyter_widgets_base_version__ = '1.0.0' __jupyter_widgets_output_version__ = '1.0.0' -__jupyter_widgets_controls_version__ = '1.1.0' +__jupyter_widgets_controls_version__ = '1.2.0' # A compatible @jupyter-widgets/html-manager npm package semver range __html_manager_version__ = '^0.11.0' diff --git a/packages/controls/src/version.ts b/packages/controls/src/version.ts index 53ac249e2e..d8e97e26b6 100644 --- a/packages/controls/src/version.ts +++ b/packages/controls/src/version.ts @@ -6,4 +6,4 @@ * implements. */ export -const JUPYTER_CONTROLS_VERSION = '1.1.0'; +const JUPYTER_CONTROLS_VERSION = '1.2.0'; From aca418714c0c3a3a7ceb9c7165e4c3f6b8eb0f86 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 23 Mar 2018 15:13:32 -0700 Subject: [PATCH 2/8] Regenerate the spec docs with new controls version. --- packages/schema/jupyterwidgetmodels.latest.md | 272 +++++++++--------- 1 file changed, 136 insertions(+), 136 deletions(-) diff --git a/packages/schema/jupyterwidgetmodels.latest.md b/packages/schema/jupyterwidgetmodels.latest.md index b6cc1d191b..0e629e8eb9 100644 --- a/packages/schema/jupyterwidgetmodels.latest.md +++ b/packages/schema/jupyterwidgetmodels.latest.md @@ -45,33 +45,33 @@ Attribute | Type | Default | Help `visibility` | `null` or string (one of `'visible'`, `'hidden'`, `'inherit'`, `'initial'`, `'unset'`) | `null` | The visibility CSS attribute. `width` | `null` or string | `null` | The width CSS attribute. -### AccordionModel (@jupyter-widgets/controls, 1.1.0); AccordionView (@jupyter-widgets/controls, 1.1.0) +### AccordionModel (@jupyter-widgets/controls, 1.2.0); AccordionView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'AccordionModel'` | `_titles` | object | `{}` | Titles of the pages `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'AccordionView'` | `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. `children` | array | `[]` | List of widget children `layout` | reference to Layout widget | reference to new instance | `selected_index` | `null` or number (integer) | `0` | The index of the selected page. This is either an integer selecting a particular sub-widget, or None to have no widgets selected. -### BoundedFloatTextModel (@jupyter-widgets/controls, 1.1.0); FloatTextView (@jupyter-widgets/controls, 1.1.0) +### BoundedFloatTextModel (@jupyter-widgets/controls, 1.2.0); FloatTextView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'BoundedFloatTextModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'FloatTextView'` | `continuous_update` | boolean | `false` | Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away. `description` | string | `''` | Description of the control. @@ -83,16 +83,16 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | number (float) | `0.0` | Float value -### BoundedIntTextModel (@jupyter-widgets/controls, 1.1.0); IntTextView (@jupyter-widgets/controls, 1.1.0) +### BoundedIntTextModel (@jupyter-widgets/controls, 1.2.0); IntTextView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'BoundedIntTextModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'IntTextView'` | `continuous_update` | boolean | `false` | Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away. `description` | string | `''` | Description of the control. @@ -104,31 +104,31 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | number (integer) | `0` | Int value -### BoxModel (@jupyter-widgets/controls, 1.1.0); BoxView (@jupyter-widgets/controls, 1.1.0) +### BoxModel (@jupyter-widgets/controls, 1.2.0); BoxView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'BoxModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'BoxView'` | `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. `children` | array | `[]` | List of widget children `layout` | reference to Layout widget | reference to new instance | -### ButtonModel (@jupyter-widgets/controls, 1.1.0); ButtonView (@jupyter-widgets/controls, 1.1.0) +### ButtonModel (@jupyter-widgets/controls, 1.2.0); ButtonView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ButtonModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ButtonView'` | `button_style` | string (one of `'primary'`, `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the button. `description` | string | `''` | Button label. @@ -138,12 +138,12 @@ Attribute | Type | Default | Help `style` | reference to ButtonStyle widget | reference to new instance | `tooltip` | string | `''` | Tooltip caption of the button. -### ButtonStyleModel (@jupyter-widgets/controls, 1.1.0); StyleView (@jupyter-widgets/base, 1.0.0) +### ButtonStyleModel (@jupyter-widgets/controls, 1.2.0); StyleView (@jupyter-widgets/base, 1.0.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ButtonStyleModel'` | `_view_module` | string | `'@jupyter-widgets/base'` | `_view_module_version` | string | `'1.0.0'` | @@ -151,16 +151,16 @@ Attribute | Type | Default | Help `button_color` | `null` or string | `null` | Color of the button `font_weight` | string | `''` | Button text font weight. -### CheckboxModel (@jupyter-widgets/controls, 1.1.0); CheckboxView (@jupyter-widgets/controls, 1.1.0) +### CheckboxModel (@jupyter-widgets/controls, 1.2.0); CheckboxView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'CheckboxModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'CheckboxView'` | `description` | string | `''` | Description of the control. `disabled` | boolean | `false` | Enable or disable user changes. @@ -169,16 +169,16 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | boolean | `false` | Bool value -### ColorPickerModel (@jupyter-widgets/controls, 1.1.0); ColorPickerView (@jupyter-widgets/controls, 1.1.0) +### ColorPickerModel (@jupyter-widgets/controls, 1.2.0); ColorPickerView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ColorPickerModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ColorPickerView'` | `concise` | boolean | `false` | Display short version with just a color selector. `description` | string | `''` | Description of the control. @@ -187,45 +187,45 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | string | `'black'` | The color value. -### ControllerAxisModel (@jupyter-widgets/controls, 1.1.0); ControllerAxisView (@jupyter-widgets/controls, 1.1.0) +### ControllerAxisModel (@jupyter-widgets/controls, 1.2.0); ControllerAxisView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ControllerAxisModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ControllerAxisView'` | `layout` | reference to Layout widget | reference to new instance | `value` | number (float) | `0.0` | The value of the axis. -### ControllerButtonModel (@jupyter-widgets/controls, 1.1.0); ControllerButtonView (@jupyter-widgets/controls, 1.1.0) +### ControllerButtonModel (@jupyter-widgets/controls, 1.2.0); ControllerButtonView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ControllerButtonModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ControllerButtonView'` | `layout` | reference to Layout widget | reference to new instance | `pressed` | boolean | `false` | Whether the button is pressed. `value` | number (float) | `0.0` | The value of the button. -### ControllerModel (@jupyter-widgets/controls, 1.1.0); ControllerView (@jupyter-widgets/controls, 1.1.0) +### ControllerModel (@jupyter-widgets/controls, 1.2.0); ControllerView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ControllerModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ControllerView'` | `axes` | array | `[]` | The axes on the gamepad. `buttons` | array | `[]` | The buttons on the gamepad. @@ -236,16 +236,16 @@ Attribute | Type | Default | Help `name` | string | `''` | The name of the controller. `timestamp` | number (float) | `0.0` | The last time the data from this gamepad was updated. -### DatePickerModel (@jupyter-widgets/controls, 1.1.0); DatePickerView (@jupyter-widgets/controls, 1.1.0) +### DatePickerModel (@jupyter-widgets/controls, 1.2.0); DatePickerView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'DatePickerModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'DatePickerView'` | `description` | string | `''` | Description of the control. `disabled` | boolean | `false` | Enable or disable user changes. @@ -253,42 +253,42 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | `null` or Date | `null` | -### DescriptionStyleModel (@jupyter-widgets/controls, 1.1.0); StyleView (@jupyter-widgets/base, 1.0.0) +### DescriptionStyleModel (@jupyter-widgets/controls, 1.2.0); StyleView (@jupyter-widgets/base, 1.0.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'DescriptionStyleModel'` | `_view_module` | string | `'@jupyter-widgets/base'` | `_view_module_version` | string | `'1.0.0'` | `_view_name` | string | `'StyleView'` | `description_width` | string | `''` | Width of the description to the side of the control. -### DirectionalLinkModel (@jupyter-widgets/controls, 1.1.0); None (@jupyter-widgets/controls, 1.1.0) +### DirectionalLinkModel (@jupyter-widgets/controls, 1.2.0); None (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'DirectionalLinkModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | `null` or string | `null` | Name of the view. `source` | array | `[]` | The source (widget, 'trait_name') pair `target` | array | `[]` | The target (widget, 'trait_name') pair -### DropdownModel (@jupyter-widgets/controls, 1.1.0); DropdownView (@jupyter-widgets/controls, 1.1.0) +### DropdownModel (@jupyter-widgets/controls, 1.2.0); DropdownView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'DropdownModel'` | `_options_labels` | array | `[]` | The labels for the options. `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'DropdownView'` | `description` | string | `''` | Description of the control. `disabled` | boolean | `false` | Enable or disable user changes @@ -296,16 +296,16 @@ Attribute | Type | Default | Help `layout` | reference to Layout widget | reference to new instance | `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations -### FloatLogSliderModel (@jupyter-widgets/controls, 1.1.0); FloatLogSliderView (@jupyter-widgets/controls, 1.1.0) +### FloatLogSliderModel (@jupyter-widgets/controls, 1.2.0); FloatLogSliderView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'FloatLogSliderModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'FloatLogSliderView'` | `base` | number (float) | `10.0` | Base for the logarithm `continuous_update` | boolean | `true` | Update the value of the widget as the user is holding the slider. @@ -321,16 +321,16 @@ Attribute | Type | Default | Help `style` | reference to SliderStyle widget | reference to new instance | `value` | number (float) | `1.0` | Float value -### FloatProgressModel (@jupyter-widgets/controls, 1.1.0); ProgressView (@jupyter-widgets/controls, 1.1.0) +### FloatProgressModel (@jupyter-widgets/controls, 1.2.0); ProgressView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'FloatProgressModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ProgressView'` | `bar_style` | `null` or string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar. `description` | string | `''` | Description of the control. @@ -341,16 +341,16 @@ Attribute | Type | Default | Help `style` | reference to ProgressStyle widget | reference to new instance | `value` | number (float) | `0.0` | Float value -### FloatRangeSliderModel (@jupyter-widgets/controls, 1.1.0); FloatRangeSliderView (@jupyter-widgets/controls, 1.1.0) +### FloatRangeSliderModel (@jupyter-widgets/controls, 1.2.0); FloatRangeSliderView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'FloatRangeSliderModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'FloatRangeSliderView'` | `continuous_update` | boolean | `true` | Update the value of the widget as the user is sliding the slider. `description` | string | `''` | Description of the control. @@ -365,16 +365,16 @@ Attribute | Type | Default | Help `style` | reference to SliderStyle widget | reference to new instance | `value` | array | `[0.0, 1.0]` | Tuple of (lower, upper) bounds -### FloatSliderModel (@jupyter-widgets/controls, 1.1.0); FloatSliderView (@jupyter-widgets/controls, 1.1.0) +### FloatSliderModel (@jupyter-widgets/controls, 1.2.0); FloatSliderView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'FloatSliderModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'FloatSliderView'` | `continuous_update` | boolean | `true` | Update the value of the widget as the user is holding the slider. `description` | string | `''` | Description of the control. @@ -389,16 +389,16 @@ Attribute | Type | Default | Help `style` | reference to SliderStyle widget | reference to new instance | `value` | number (float) | `0.0` | Float value -### FloatTextModel (@jupyter-widgets/controls, 1.1.0); FloatTextView (@jupyter-widgets/controls, 1.1.0) +### FloatTextModel (@jupyter-widgets/controls, 1.2.0); FloatTextView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'FloatTextModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'FloatTextView'` | `continuous_update` | boolean | `false` | Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away. `description` | string | `''` | Description of the control. @@ -408,31 +408,31 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | number (float) | `0.0` | Float value -### HBoxModel (@jupyter-widgets/controls, 1.1.0); HBoxView (@jupyter-widgets/controls, 1.1.0) +### HBoxModel (@jupyter-widgets/controls, 1.2.0); HBoxView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'HBoxModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'HBoxView'` | `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. `children` | array | `[]` | List of widget children `layout` | reference to Layout widget | reference to new instance | -### HTMLMathModel (@jupyter-widgets/controls, 1.1.0); HTMLMathView (@jupyter-widgets/controls, 1.1.0) +### HTMLMathModel (@jupyter-widgets/controls, 1.2.0); HTMLMathView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'HTMLMathModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'HTMLMathView'` | `description` | string | `''` | Description of the control. `layout` | reference to Layout widget | reference to new instance | @@ -440,16 +440,16 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | string | `''` | String value -### HTMLModel (@jupyter-widgets/controls, 1.1.0); HTMLView (@jupyter-widgets/controls, 1.1.0) +### HTMLModel (@jupyter-widgets/controls, 1.2.0); HTMLView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'HTMLModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'HTMLView'` | `description` | string | `''` | Description of the control. `layout` | reference to Layout widget | reference to new instance | @@ -457,16 +457,16 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | string | `''` | String value -### ImageModel (@jupyter-widgets/controls, 1.1.0); ImageView (@jupyter-widgets/controls, 1.1.0) +### ImageModel (@jupyter-widgets/controls, 1.2.0); ImageView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ImageModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ImageView'` | `format` | string | `'png'` | The format of the image. `height` | string | `''` | Height of the image in pixels. @@ -474,16 +474,16 @@ Attribute | Type | Default | Help `value` | Bytes | `b''` | The image data as a byte string. `width` | string | `''` | Width of the image in pixels. -### IntProgressModel (@jupyter-widgets/controls, 1.1.0); ProgressView (@jupyter-widgets/controls, 1.1.0) +### IntProgressModel (@jupyter-widgets/controls, 1.2.0); ProgressView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'IntProgressModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ProgressView'` | `bar_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the progess bar. `description` | string | `''` | Description of the control. @@ -494,16 +494,16 @@ Attribute | Type | Default | Help `style` | reference to ProgressStyle widget | reference to new instance | `value` | number (integer) | `0` | Int value -### IntRangeSliderModel (@jupyter-widgets/controls, 1.1.0); IntRangeSliderView (@jupyter-widgets/controls, 1.1.0) +### IntRangeSliderModel (@jupyter-widgets/controls, 1.2.0); IntRangeSliderView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'IntRangeSliderModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'IntRangeSliderView'` | `continuous_update` | boolean | `true` | Update the value of the widget as the user is sliding the slider. `description` | string | `''` | Description of the control. @@ -518,16 +518,16 @@ Attribute | Type | Default | Help `style` | reference to SliderStyle widget | reference to new instance | Slider style customizations. `value` | array | `[0, 1]` | Tuple of (lower, upper) bounds -### IntSliderModel (@jupyter-widgets/controls, 1.1.0); IntSliderView (@jupyter-widgets/controls, 1.1.0) +### IntSliderModel (@jupyter-widgets/controls, 1.2.0); IntSliderView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'IntSliderModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'IntSliderView'` | `continuous_update` | boolean | `true` | Update the value of the widget as the user is holding the slider. `description` | string | `''` | Description of the control. @@ -542,16 +542,16 @@ Attribute | Type | Default | Help `style` | reference to SliderStyle widget | reference to new instance | `value` | number (integer) | `0` | Int value -### IntTextModel (@jupyter-widgets/controls, 1.1.0); IntTextView (@jupyter-widgets/controls, 1.1.0) +### IntTextModel (@jupyter-widgets/controls, 1.2.0); IntTextView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'IntTextModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'IntTextView'` | `continuous_update` | boolean | `false` | Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away. `description` | string | `''` | Description of the control. @@ -561,16 +561,16 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | number (integer) | `0` | Int value -### LabelModel (@jupyter-widgets/controls, 1.1.0); LabelView (@jupyter-widgets/controls, 1.1.0) +### LabelModel (@jupyter-widgets/controls, 1.2.0); LabelView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'LabelModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'LabelView'` | `description` | string | `''` | Description of the control. `layout` | reference to Layout widget | reference to new instance | @@ -578,29 +578,29 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | string | `''` | String value -### LinkModel (@jupyter-widgets/controls, 1.1.0); None (@jupyter-widgets/controls, 1.1.0) +### LinkModel (@jupyter-widgets/controls, 1.2.0); None (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'LinkModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | `null` or string | `null` | Name of the view. `source` | array | `[]` | The source (widget, 'trait_name') pair `target` | array | `[]` | The target (widget, 'trait_name') pair -### PasswordModel (@jupyter-widgets/controls, 1.1.0); PasswordView (@jupyter-widgets/controls, 1.1.0) +### PasswordModel (@jupyter-widgets/controls, 1.2.0); PasswordView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'PasswordModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'PasswordView'` | `continuous_update` | boolean | `true` | Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away. `description` | string | `''` | Description of the control. @@ -610,18 +610,18 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | string | `''` | String value -### PlayModel (@jupyter-widgets/controls, 1.1.0); PlayView (@jupyter-widgets/controls, 1.1.0) +### PlayModel (@jupyter-widgets/controls, 1.2.0); PlayView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.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. `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'PlayView'` | `description` | string | `''` | Description of the control. `disabled` | boolean | `false` | Enable or disable user changes @@ -634,12 +634,12 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | number (integer) | `0` | Int value -### ProgressStyleModel (@jupyter-widgets/controls, 1.1.0); StyleView (@jupyter-widgets/base, 1.0.0) +### ProgressStyleModel (@jupyter-widgets/controls, 1.2.0); StyleView (@jupyter-widgets/base, 1.0.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ProgressStyleModel'` | `_view_module` | string | `'@jupyter-widgets/base'` | `_view_module_version` | string | `'1.0.0'` | @@ -647,17 +647,17 @@ Attribute | Type | Default | Help `bar_color` | `null` or string | `null` | Color of the progress bar. `description_width` | string | `''` | Width of the description to the side of the control. -### RadioButtonsModel (@jupyter-widgets/controls, 1.1.0); RadioButtonsView (@jupyter-widgets/controls, 1.1.0) +### RadioButtonsModel (@jupyter-widgets/controls, 1.2.0); RadioButtonsView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'RadioButtonsModel'` | `_options_labels` | array | `[]` | The labels for the options. `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'RadioButtonsView'` | `description` | string | `''` | Description of the control. `disabled` | boolean | `false` | Enable or disable user changes @@ -665,17 +665,17 @@ Attribute | Type | Default | Help `layout` | reference to Layout widget | reference to new instance | `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations -### SelectModel (@jupyter-widgets/controls, 1.1.0); SelectView (@jupyter-widgets/controls, 1.1.0) +### SelectModel (@jupyter-widgets/controls, 1.2.0); SelectView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'SelectModel'` | `_options_labels` | array | `[]` | The labels for the options. `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'SelectView'` | `description` | string | `''` | Description of the control. `disabled` | boolean | `false` | Enable or disable user changes @@ -684,17 +684,17 @@ Attribute | Type | Default | Help `rows` | number (integer) | `5` | The number of rows to display. `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations -### SelectMultipleModel (@jupyter-widgets/controls, 1.1.0); SelectMultipleView (@jupyter-widgets/controls, 1.1.0) +### SelectMultipleModel (@jupyter-widgets/controls, 1.2.0); SelectMultipleView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'SelectMultipleModel'` | `_options_labels` | array | `[]` | The labels for the options. `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'SelectMultipleView'` | `description` | string | `''` | Description of the control. `disabled` | boolean | `false` | Enable or disable user changes @@ -703,17 +703,17 @@ Attribute | Type | Default | Help `rows` | number (integer) | `5` | The number of rows to display. `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations -### SelectionRangeSliderModel (@jupyter-widgets/controls, 1.1.0); SelectionRangeSliderView (@jupyter-widgets/controls, 1.1.0) +### SelectionRangeSliderModel (@jupyter-widgets/controls, 1.2.0); SelectionRangeSliderView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'SelectionRangeSliderModel'` | `_options_labels` | array | `[]` | The labels for the options. `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'SelectionRangeSliderView'` | `continuous_update` | boolean | `true` | Update the value of the widget as the user is holding the slider. `description` | string | `''` | Description of the control. @@ -724,17 +724,17 @@ Attribute | Type | Default | Help `readout` | boolean | `true` | Display the current selected label next to the slider `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations -### SelectionSliderModel (@jupyter-widgets/controls, 1.1.0); SelectionSliderView (@jupyter-widgets/controls, 1.1.0) +### SelectionSliderModel (@jupyter-widgets/controls, 1.2.0); SelectionSliderView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'SelectionSliderModel'` | `_options_labels` | array | `[]` | The labels for the options. `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'SelectionSliderView'` | `continuous_update` | boolean | `true` | Update the value of the widget as the user is holding the slider. `description` | string | `''` | Description of the control. @@ -745,12 +745,12 @@ Attribute | Type | Default | Help `readout` | boolean | `true` | Display the current selected label next to the slider `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations -### SliderStyleModel (@jupyter-widgets/controls, 1.1.0); StyleView (@jupyter-widgets/base, 1.0.0) +### SliderStyleModel (@jupyter-widgets/controls, 1.2.0); StyleView (@jupyter-widgets/base, 1.0.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'SliderStyleModel'` | `_view_module` | string | `'@jupyter-widgets/base'` | `_view_module_version` | string | `'1.0.0'` | @@ -758,33 +758,33 @@ Attribute | Type | Default | Help `description_width` | string | `''` | Width of the description to the side of the control. `handle_color` | `null` or string | `null` | Color of the slider handle. -### TabModel (@jupyter-widgets/controls, 1.1.0); TabView (@jupyter-widgets/controls, 1.1.0) +### TabModel (@jupyter-widgets/controls, 1.2.0); TabView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'TabModel'` | `_titles` | object | `{}` | Titles of the pages `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'TabView'` | `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. `children` | array | `[]` | List of widget children `layout` | reference to Layout widget | reference to new instance | `selected_index` | `null` or number (integer) | `0` | The index of the selected page. This is either an integer selecting a particular sub-widget, or None to have no widgets selected. -### TextModel (@jupyter-widgets/controls, 1.1.0); TextView (@jupyter-widgets/controls, 1.1.0) +### TextModel (@jupyter-widgets/controls, 1.2.0); TextView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'TextModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'TextView'` | `continuous_update` | boolean | `true` | Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away. `description` | string | `''` | Description of the control. @@ -794,16 +794,16 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | string | `''` | String value -### TextareaModel (@jupyter-widgets/controls, 1.1.0); TextareaView (@jupyter-widgets/controls, 1.1.0) +### TextareaModel (@jupyter-widgets/controls, 1.2.0); TextareaView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'TextareaModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'TextareaView'` | `continuous_update` | boolean | `true` | Update the value as the user types. If False, update on submission, e.g., pressing Enter or navigating away. `description` | string | `''` | Description of the control. @@ -814,16 +814,16 @@ Attribute | Type | Default | Help `style` | reference to DescriptionStyle widget | reference to new instance | Styling customizations `value` | string | `''` | String value -### ToggleButtonModel (@jupyter-widgets/controls, 1.1.0); ToggleButtonView (@jupyter-widgets/controls, 1.1.0) +### ToggleButtonModel (@jupyter-widgets/controls, 1.2.0); ToggleButtonView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ToggleButtonModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ToggleButtonView'` | `button_style` | string (one of `'primary'`, `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the button. `description` | string | `''` | Description of the control. @@ -834,17 +834,17 @@ Attribute | Type | Default | Help `tooltip` | string | `''` | Tooltip caption of the toggle button. `value` | boolean | `false` | Bool value -### ToggleButtonsModel (@jupyter-widgets/controls, 1.1.0); ToggleButtonsView (@jupyter-widgets/controls, 1.1.0) +### ToggleButtonsModel (@jupyter-widgets/controls, 1.2.0); ToggleButtonsView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ToggleButtonsModel'` | `_options_labels` | array | `[]` | The labels for the options. `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ToggleButtonsView'` | `button_style` | `null` or string (one of `'primary'`, `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the buttons. `description` | string | `''` | Description of the control. @@ -855,12 +855,12 @@ Attribute | Type | Default | Help `style` | reference to ToggleButtonsStyle widget | reference to new instance | `tooltips` | array | `[]` | Tooltips for each button. -### ToggleButtonsStyleModel (@jupyter-widgets/controls, 1.1.0); StyleView (@jupyter-widgets/base, 1.0.0) +### ToggleButtonsStyleModel (@jupyter-widgets/controls, 1.2.0); StyleView (@jupyter-widgets/base, 1.0.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ToggleButtonsStyleModel'` | `_view_module` | string | `'@jupyter-widgets/base'` | `_view_module_version` | string | `'1.0.0'` | @@ -869,31 +869,31 @@ Attribute | Type | Default | Help `description_width` | string | `''` | Width of the description to the side of the control. `font_weight` | string | `''` | Text font weight of each button. -### VBoxModel (@jupyter-widgets/controls, 1.1.0); VBoxView (@jupyter-widgets/controls, 1.1.0) +### VBoxModel (@jupyter-widgets/controls, 1.2.0); VBoxView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'VBoxModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'VBoxView'` | `box_style` | string (one of `'success'`, `'info'`, `'warning'`, `'danger'`, `''`) | `''` | Use a predefined styling for the box. `children` | array | `[]` | List of widget children `layout` | reference to Layout widget | reference to new instance | -### ValidModel (@jupyter-widgets/controls, 1.1.0); ValidView (@jupyter-widgets/controls, 1.1.0) +### ValidModel (@jupyter-widgets/controls, 1.2.0); ValidView (@jupyter-widgets/controls, 1.2.0) Attribute | Type | Default | Help -----------------|------------------|------------------|---- `_dom_classes` | array | `[]` | CSS classes applied to widget DOM element `_model_module` | string | `'@jupyter-widgets/controls'` | -`_model_module_version` | string | `'1.1.0'` | +`_model_module_version` | string | `'1.2.0'` | `_model_name` | string | `'ValidModel'` | `_view_module` | string | `'@jupyter-widgets/controls'` | -`_view_module_version` | string | `'1.1.0'` | +`_view_module_version` | string | `'1.2.0'` | `_view_name` | string | `'ValidView'` | `description` | string | `''` | Description of the control. `disabled` | boolean | `false` | Enable or disable user changes. From 2d75e7cf499f61d7792155f505e60ba0c17fa6aa Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 23 Mar 2018 15:16:19 -0700 Subject: [PATCH 3/8] Register controls as handling 1.1.0 protocol spec too in jupyterlab. --- packages/jupyterlab-manager/src/plugin.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/jupyterlab-manager/src/plugin.ts b/packages/jupyterlab-manager/src/plugin.ts index d6ac5e65a2..cd5519f957 100644 --- a/packages/jupyterlab-manager/src/plugin.ts +++ b/packages/jupyterlab-manager/src/plugin.ts @@ -145,6 +145,22 @@ function activateWidgetExtension(app: JupyterLab): base.IJupyterWidgetRegistry { }); } }); + extension.registerWidget({ + name: '@jupyter-widgets/controls', + version: '1.1.0', + exports: () => { + return new Promise((resolve, reject) => { + (require as any).ensure(['@jupyter-widgets/controls'], (require: NodeRequire) => { + resolve(require('@jupyter-widgets/controls')); + }, + (err: any) => { + reject(err); + }, + '@jupyter-widgets/controls' + ); + }); + } + }); extension.registerWidget({ name: '@jupyter-widgets/output', From 6e5b7f030d13022ee3c0b26943bd9cd9f7a1e98f Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 23 Mar 2018 15:38:38 -0700 Subject: [PATCH 4/8] =?UTF-8?q?Throw=20an=20error=20if=20trying=20to=20reg?= =?UTF-8?q?ister=20a=20widget=20version=20that=20we=E2=80=99ve=20already?= =?UTF-8?q?=20registered.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/jupyterlab-manager/src/semvercache.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/jupyterlab-manager/src/semvercache.ts b/packages/jupyterlab-manager/src/semvercache.ts index b4b3b9809d..3e4d70fc5e 100644 --- a/packages/jupyterlab-manager/src/semvercache.ts +++ b/packages/jupyterlab-manager/src/semvercache.ts @@ -17,6 +17,8 @@ class SemVerCache { } if (!(version in this._cache[key])) { this._cache[key][version] = object; + } else { + throw `Version ${version} of key ${key} already registered.`; } } @@ -29,4 +31,4 @@ class SemVerCache { } private _cache: { [key: string]: {[version: string]: T} } = Object.create(null); -} \ No newline at end of file +} From efea8447f79b8d3d4e90ed225360265248fee68d Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 23 Mar 2018 16:00:17 -0700 Subject: [PATCH 5/8] =?UTF-8?q?In=20JupyterLab,=20a=20plain=20module=20ver?= =?UTF-8?q?sion=20number=20should=20default=20to=20a=20=E2=80=98^=E2=80=99?= =?UTF-8?q?=20semver=20range.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/jupyterlab-manager/src/manager.ts | 11 +++++++ packages/jupyterlab-manager/src/plugin.ts | 37 +--------------------- 2 files changed, 12 insertions(+), 36 deletions(-) diff --git a/packages/jupyterlab-manager/src/manager.ts b/packages/jupyterlab-manager/src/manager.ts index 9bde71c5b9..284f3dd3ee 100644 --- a/packages/jupyterlab-manager/src/manager.ts +++ b/packages/jupyterlab-manager/src/manager.ts @@ -29,6 +29,10 @@ import { DocumentRegistry } from '@jupyterlab/docregistry'; +import { + valid +} from 'semver'; + import { SemVerCache } from './semvercache'; @@ -167,6 +171,13 @@ class WidgetManager extends ManagerBase implements IDisposable { * Load a class and return a promise to the loaded object. */ protected loadClass(className: string, moduleName: string, moduleVersion: string): Promise { + + // If we have just a plain version, with no indication of the compatible + // range, prepend a ^ to get all compatible versions. + if (valid(moduleVersion)) { + moduleVersion = `^${moduleVersion}`; + } + let mod = this._registry.get(moduleName, moduleVersion); if (!mod) { return Promise.reject(`Module ${moduleName}, semver range ${moduleVersion} is not registered as a widget module`); diff --git a/packages/jupyterlab-manager/src/plugin.ts b/packages/jupyterlab-manager/src/plugin.ts index cd5519f957..d4950d5e12 100644 --- a/packages/jupyterlab-manager/src/plugin.ts +++ b/packages/jupyterlab-manager/src/plugin.ts @@ -109,45 +109,10 @@ function activateWidgetExtension(app: JupyterLab): base.IJupyterWidgetRegistry { StyleView: base.StyleView } }); - extension.registerWidget({ - name: '@jupyter-widgets/controls', - version: JUPYTER_CONTROLS_VERSION, - exports: () => { - return new Promise((resolve, reject) => { - (require as any).ensure(['@jupyter-widgets/controls'], (require: NodeRequire) => { - resolve(require('@jupyter-widgets/controls')); - }, - (err: any) => { - reject(err); - }, - '@jupyter-widgets/controls' - ); - }); - } - }); - // Until we do automatic semver matching (for example, converting a request - // for 1.0.0 to ^1.0.0), we register the controls under both the current - // version (above) and older versions it can handle. extension.registerWidget({ name: '@jupyter-widgets/controls', - version: '1.0.0', - exports: () => { - return new Promise((resolve, reject) => { - (require as any).ensure(['@jupyter-widgets/controls'], (require: NodeRequire) => { - resolve(require('@jupyter-widgets/controls')); - }, - (err: any) => { - reject(err); - }, - '@jupyter-widgets/controls' - ); - }); - } - }); - extension.registerWidget({ - name: '@jupyter-widgets/controls', - version: '1.1.0', + version: JUPYTER_CONTROLS_VERSION, exports: () => { return new Promise((resolve, reject) => { (require as any).ensure(['@jupyter-widgets/controls'], (require: NodeRequire) => { From 8e18c0309f0f0e0dfbef337051af24bcef9c4e7f Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Wed, 28 Mar 2018 05:38:58 -0700 Subject: [PATCH 6/8] Add default semver range logic to the html widget manager too. --- packages/html-manager/package.json | 3 ++- packages/html-manager/src/libembed-amd.ts | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/html-manager/package.json b/packages/html-manager/package.json index a17c7c8722..ce41151589 100644 --- a/packages/html-manager/package.json +++ b/packages/html-manager/package.json @@ -45,7 +45,8 @@ "@phosphor/widgets": "^1.3.0", "ajv": "^5.2.2", "font-awesome": "^4.7.0", - "jquery": "^3.1.1" + "jquery": "^3.1.1", + "semver": "^5.1.0" }, "devDependencies": { "@types/mocha": "^2.2.41", diff --git a/packages/html-manager/src/libembed-amd.ts b/packages/html-manager/src/libembed-amd.ts index 8eded6aa08..93083ea69d 100644 --- a/packages/html-manager/src/libembed-amd.ts +++ b/packages/html-manager/src/libembed-amd.ts @@ -3,6 +3,10 @@ import * as libembed from './libembed'; +import { + valid +} from 'semver'; + /** * Load a package using requirejs and return a promise * @@ -35,6 +39,13 @@ function moduleNameToCDNUrl(moduleName: string, moduleVersion: string) { fileName = moduleName.substr(index+1); packageName = moduleName.substr(0, index); } + + // If we have just a plain version, with no indication of the compatible + // range, prepend a ^ to get all compatible versions. + if (valid(moduleVersion)) { + moduleVersion = `^${moduleVersion}`; + } + return `https://unpkg.com/${packageName}@${moduleVersion}/dist/${fileName}.js`; } From d880e60f41651cb1afdff93b75a2fe3c75e9e568 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Wed, 28 Mar 2018 13:09:07 -0700 Subject: [PATCH 7/8] Revert "Add default semver range logic to the html widget manager too." This reverts commit 8e18c0309f0f0e0dfbef337051af24bcef9c4e7f. --- packages/html-manager/package.json | 3 +-- packages/html-manager/src/libembed-amd.ts | 11 ----------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/html-manager/package.json b/packages/html-manager/package.json index ce41151589..a17c7c8722 100644 --- a/packages/html-manager/package.json +++ b/packages/html-manager/package.json @@ -45,8 +45,7 @@ "@phosphor/widgets": "^1.3.0", "ajv": "^5.2.2", "font-awesome": "^4.7.0", - "jquery": "^3.1.1", - "semver": "^5.1.0" + "jquery": "^3.1.1" }, "devDependencies": { "@types/mocha": "^2.2.41", diff --git a/packages/html-manager/src/libembed-amd.ts b/packages/html-manager/src/libembed-amd.ts index 93083ea69d..8eded6aa08 100644 --- a/packages/html-manager/src/libembed-amd.ts +++ b/packages/html-manager/src/libembed-amd.ts @@ -3,10 +3,6 @@ import * as libembed from './libembed'; -import { - valid -} from 'semver'; - /** * Load a package using requirejs and return a promise * @@ -39,13 +35,6 @@ function moduleNameToCDNUrl(moduleName: string, moduleVersion: string) { fileName = moduleName.substr(index+1); packageName = moduleName.substr(0, index); } - - // If we have just a plain version, with no indication of the compatible - // range, prepend a ^ to get all compatible versions. - if (valid(moduleVersion)) { - moduleVersion = `^${moduleVersion}`; - } - return `https://unpkg.com/${packageName}@${moduleVersion}/dist/${fileName}.js`; } From 8f56f6624832f5847c474b672ca341fae2ad1e49 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Wed, 28 Mar 2018 13:14:22 -0700 Subject: [PATCH 8/8] Special-case the new semver range logic to the Jupyter widgets base/controls packages. This resolves the backwards-incompatibility issues for other libraries with applying this logic to all modules, but still fixes #2006. --- packages/jupyterlab-manager/src/manager.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/jupyterlab-manager/src/manager.ts b/packages/jupyterlab-manager/src/manager.ts index 284f3dd3ee..329a13e0d3 100644 --- a/packages/jupyterlab-manager/src/manager.ts +++ b/packages/jupyterlab-manager/src/manager.ts @@ -172,9 +172,13 @@ class WidgetManager extends ManagerBase implements IDisposable { */ protected loadClass(className: string, moduleName: string, moduleVersion: string): Promise { - // If we have just a plain version, with no indication of the compatible - // range, prepend a ^ to get all compatible versions. - if (valid(moduleVersion)) { + // Special-case the Jupyter base and controls packages. If we have just a + // plain version, with no indication of the compatible range, prepend a ^ to + // get all compatible versions. We may eventually apply this logic to all + // widget modules. See issues #2006 and #2017 for more discussion. + if ((moduleName === "@jupyter-widgets/base" + || moduleName === "@jupyter-widgets/controls") + && valid(moduleVersion)) { moduleVersion = `^${moduleVersion}`; }