diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index 1b8f4fb..0eccf42 100644 --- a/IPython/html/widgets/widget.py +++ b/IPython/html/widgets/widget.py @@ -79,7 +79,7 @@ def _show_traceback(method): def register(key=None): """Returns a decorator registering a widget class in the widget registry. If no key is provided, the class name is used as a key. A key is - provided for each core Jupyter widget so that the frontend can use + provided for each core IPython widget so that the frontend can use this key regardless of the language of the kernel""" def wrap(widget): l = key if key is not None else widget.__module__ + widget.__name__ diff --git a/IPython/html/widgets/widget_bool.py b/IPython/html/widgets/widget_bool.py index b90c4af..bd39e21 100644 --- a/IPython/html/widgets/widget_bool.py +++ b/IPython/html/widgets/widget_bool.py @@ -27,13 +27,13 @@ class _Bool(DOMWidget): disabled = Bool(False, help="Enable or disable user changes.", sync=True) -@register('jupyter.Checkbox') +@register('IPython.Checkbox') class Checkbox(_Bool): """Displays a boolean `value`.""" _view_name = Unicode('CheckboxView', sync=True) -@register('jupyter.ToggleButton') +@register('IPython.ToggleButton') class ToggleButton(_Bool): """Displays a boolean `value`.""" diff --git a/IPython/html/widgets/widget_box.py b/IPython/html/widgets/widget_box.py index 92ec048..ca9c626 100644 --- a/IPython/html/widgets/widget_box.py +++ b/IPython/html/widgets/widget_box.py @@ -10,7 +10,7 @@ from .widget import DOMWidget, register from IPython.utils.traitlets import Unicode, Tuple, TraitError, Int, CaselessStrEnum from IPython.utils.warn import DeprecatedClass -@register('jupyter.Box') +@register('IPython.Box') class Box(DOMWidget): """Displays multiple widgets in a group.""" _view_name = Unicode('BoxView', sync=True) @@ -45,7 +45,7 @@ class Box(DOMWidget): child._handle_displayed() -@register('jupyter.Popup') +@register('IPython.Popup') class Popup(Box): """Displays multiple widgets in an in page popup div.""" _view_name = Unicode('PopupView', sync=True) @@ -54,7 +54,7 @@ class Popup(Box): button_text = Unicode(sync=True) -@register('jupyter.FlexBox') +@register('IPython.FlexBox') class FlexBox(Box): """Displays multiple widgets using the flexible box model.""" _view_name = Unicode('FlexBoxView', sync=True) diff --git a/IPython/html/widgets/widget_button.py b/IPython/html/widgets/widget_button.py index 51bc1cf..e91f3d2 100644 --- a/IPython/html/widgets/widget_button.py +++ b/IPython/html/widgets/widget_button.py @@ -21,7 +21,7 @@ from IPython.utils.warn import DeprecatedClass #----------------------------------------------------------------------------- # Classes #----------------------------------------------------------------------------- -@register('jupyter.Button') +@register('IPython.Button') class Button(DOMWidget): """Button widget. diff --git a/IPython/html/widgets/widget_float.py b/IPython/html/widgets/widget_float.py index 2e20020..01395ec 100644 --- a/IPython/html/widgets/widget_float.py +++ b/IPython/html/widgets/widget_float.py @@ -43,17 +43,17 @@ class _BoundedFloat(_Float): self.value = min(max(new, self.min), self.max) -@register('jupyter.FloatText') +@register('IPython.FloatText') class FloatText(_Float): _view_name = Unicode('FloatTextView', sync=True) -@register('jupyter.BoundedFloatText') +@register('IPython.BoundedFloatText') class BoundedFloatText(_BoundedFloat): _view_name = Unicode('FloatTextView', sync=True) -@register('jupyter.FloatSlider') +@register('IPython.FloatSlider') class FloatSlider(_BoundedFloat): _view_name = Unicode('FloatSliderView', sync=True) orientation = CaselessStrEnum(values=['horizontal', 'vertical'], @@ -64,7 +64,7 @@ class FloatSlider(_BoundedFloat): slider_color = Unicode(sync=True) -@register('jupyter.FloatProgress') +@register('IPython.FloatProgress') class FloatProgress(_BoundedFloat): _view_name = Unicode('ProgressView', sync=True) @@ -167,7 +167,7 @@ class _BoundedFloatRange(_FloatRange): self.lower = low -@register('jupyter.FloatRangeSlider') +@register('IPython.FloatRangeSlider') class FloatRangeSlider(_BoundedFloatRange): _view_name = Unicode('FloatSliderView', sync=True) orientation = CaselessStrEnum(values=['horizontal', 'vertical'], diff --git a/IPython/html/widgets/widget_image.py b/IPython/html/widgets/widget_image.py index 6b8d97f..40968f0 100644 --- a/IPython/html/widgets/widget_image.py +++ b/IPython/html/widgets/widget_image.py @@ -22,7 +22,7 @@ from IPython.utils.warn import DeprecatedClass #----------------------------------------------------------------------------- # Classes #----------------------------------------------------------------------------- -@register('jupyter.Image') +@register('IPython.Image') class Image(DOMWidget): """Displays an image as a widget. diff --git a/IPython/html/widgets/widget_int.py b/IPython/html/widgets/widget_int.py index 56bbd18..582ae03 100644 --- a/IPython/html/widgets/widget_int.py +++ b/IPython/html/widgets/widget_int.py @@ -56,19 +56,19 @@ class _BoundedInt(_Int): if new > self.max: raise ValueError("setting min > max") -@register('jupyter.IntText') +@register('IPython.IntText') class IntText(_Int): """Textbox widget that represents a int.""" _view_name = Unicode('IntTextView', sync=True) -@register('jupyter.BoundedIntText') +@register('IPython.BoundedIntText') class BoundedIntText(_BoundedInt): """Textbox widget that represents a int bounded by a minimum and maximum value.""" _view_name = Unicode('IntTextView', sync=True) -@register('jupyter.IntSlider') +@register('IPython.IntSlider') class IntSlider(_BoundedInt): """Slider widget that represents a int bounded by a minimum and maximum value.""" _view_name = Unicode('IntSliderView', sync=True) @@ -80,7 +80,7 @@ class IntSlider(_BoundedInt): slider_color = Unicode(sync=True) -@register('jupyter.IntProgress') +@register('IPython.IntProgress') class IntProgress(_BoundedInt): """Progress bar that represents a int bounded by a minimum and maximum value.""" _view_name = Unicode('ProgressView', sync=True) @@ -180,7 +180,7 @@ class _BoundedIntRange(_IntRange): self.upper = high self.lower = low -@register('jupyter.IntRangeSlider') +@register('IPython.IntRangeSlider') class IntRangeSlider(_BoundedIntRange): _view_name = Unicode('IntSliderView', sync=True) orientation = CaselessStrEnum(values=['horizontal', 'vertical'], diff --git a/IPython/html/widgets/widget_selection.py b/IPython/html/widgets/widget_selection.py index d320976..79e61e2 100644 --- a/IPython/html/widgets/widget_selection.py +++ b/IPython/html/widgets/widget_selection.py @@ -114,7 +114,7 @@ class _Selection(DOMWidget): self.value_lock.release() -@register('jupyter.ToggleButtons') +@register('IPython.ToggleButtons') class ToggleButtons(_Selection): """Group of toggle buttons that represent an enumeration. Only one toggle button can be toggled at any point in time.""" @@ -125,7 +125,7 @@ class ToggleButtons(_Selection): default_value='', allow_none=True, sync=True, help="""Use a predefined styling for the buttons.""") -@register('jupyter.Dropdown') +@register('IPython.Dropdown') class Dropdown(_Selection): """Allows you to select a single item from a dropdown.""" _view_name = Unicode('DropdownView', sync=True) @@ -135,7 +135,7 @@ class Dropdown(_Selection): default_value='', allow_none=True, sync=True, help="""Use a predefined styling for the buttons.""") -@register('jupyter.RadioButtons') +@register('IPython.RadioButtons') class RadioButtons(_Selection): """Group of radio buttons that represent an enumeration. Only one radio button can be toggled at any point in time.""" @@ -143,7 +143,7 @@ class RadioButtons(_Selection): -@register('jupyter.Select') +@register('IPython.Select') class Select(_Selection): """Listbox that only allows one item to be selected at any given time.""" _view_name = Unicode('SelectView', sync=True) diff --git a/IPython/html/widgets/widget_selectioncontainer.py b/IPython/html/widgets/widget_selectioncontainer.py index f5654a5..42adec0 100644 --- a/IPython/html/widgets/widget_selectioncontainer.py +++ b/IPython/html/widgets/widget_selectioncontainer.py @@ -51,13 +51,13 @@ class _SelectionContainer(Box): else: return None -@register('jupyter.Accordion') +@register('IPython.Accordion') class Accordion(_SelectionContainer): """Displays children each on a separate accordion page.""" _view_name = Unicode('AccordionView', sync=True) -@register('jupyter.Tab') +@register('IPython.Tab') class Tab(_SelectionContainer): """Displays children each on a separate accordion tab.""" _view_name = Unicode('TabView', sync=True) diff --git a/IPython/html/widgets/widget_string.py b/IPython/html/widgets/widget_string.py index 05b68ed..30245a2 100644 --- a/IPython/html/widgets/widget_string.py +++ b/IPython/html/widgets/widget_string.py @@ -28,20 +28,20 @@ class _String(DOMWidget): placeholder = Unicode("", help="Placeholder text to display when nothing has been typed", sync=True) -@register('jupyter.HTML') +@register('IPython.HTML') class HTML(_String): """Renders the string `value` as HTML.""" _view_name = Unicode('HTMLView', sync=True) -@register('jupyter.Latex') +@register('IPython.Latex') class Latex(_String): """Renders math inside the string `value` as Latex (requires $ $ or $$ $$ and similar latex tags).""" _view_name = Unicode('LatexView', sync=True) -@register('jupyter.Textarea') +@register('IPython.Textarea') class Textarea(_String): """Multiline text area widget.""" _view_name = Unicode('TextareaView', sync=True) @@ -50,7 +50,7 @@ class Textarea(_String): self.send({"method": "scroll_to_bottom"}) -@register('jupyter.Text') +@register('IPython.Text') class Text(_String): """Single line textbox widget.""" _view_name = Unicode('TextView', sync=True)