You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
MultiIndexEditableGrid Demo failing to open:
See traceback below:
Command Line Output
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/ipywidgets/widgets/widget.py:773, in Widget._handle_msg(self, msg)
771 if 'buffer_paths' in data:
772 _put_buffers(state, data['buffer_paths'], msg['buffers'])
--> 773 self.set_state(state)
775 # Handle a state request.
776 elif method == 'request_state':
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/ipywidgets/widgets/widget.py:650, in Widget.set_state(self, sync_data)
645 self._send(msg, buffers=echo_buffers)
647 # The order of these context managers is important. Properties must
648 # be locked when the hold_trait_notification context manager is
649 # released and notifications are fired.
--> 650 with self._lock_property(**sync_data), self.hold_trait_notifications():
651 for name in sync_data:
652 if name in self.keys:
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/contextlib.py:144, in _GeneratorContextManager.exit(self, typ, value, traceback)
142 if typ is None:
143 try:
--> 144 next(self.gen)
145 except StopIteration:
146 return False
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1498, in HasTraits.hold_trait_notifications(self)
1496 for changes in cache.values():
1497 for change in changes:
-> 1498 self.notify_change(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/ipywidgets/widgets/widget.py:701, in Widget.notify_change(self, change)
698 if name in self.keys and self._should_send_property(name, getattr(self, name)):
699 # Send new state to front-end
700 self.send_state(key=name)
--> 701 super().notify_change(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1513, in HasTraits.notify_change(self, change)
1511 def notify_change(self, change):
1512 """Notify observers of a change event"""
-> 1513 return self._notify_observers(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1560, in HasTraits._notify_observers(self, event)
1557 elif isinstance(c, EventHandler) and c.name is not None:
1558 c = getattr(self, c.name)
-> 1560 c(event)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/ipywidgets/widgets/widget_selection.py:236, in _Selection._propagate_index(self, change)
234 self.label = label
235 if self.value is not value:
--> 236 self.value = value
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:718, in TraitType.set(self, obj, value)
714 silent = False
715 if silent is not True:
716 # we explicitly compare silent to True just in case the equality
717 # comparison above returns something other than True/False
--> 718 obj._notify_trait(self.name, old_value, new_value)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/ipywidgets/widgets/widget.py:701, in Widget.notify_change(self, change)
698 if name in self.keys and self._should_send_property(name, getattr(self, name)):
699 # Send new state to front-end
700 self.send_state(key=name)
--> 701 super().notify_change(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1513, in HasTraits.notify_change(self, change)
1511 def notify_change(self, change):
1512 """Notify observers of a change event"""
-> 1513 return self._notify_observers(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1560, in HasTraits._notify_observers(self, event)
1557 elif isinstance(c, EventHandler) and c.name is not None:
1558 c = getattr(self, c.name)
-> 1560 c(event)
File ~/git/MXF/ipyautoui/src/ipyautoui/demo.py:212, in DemoReel._update_demo(self, on_change)
210 model = self.map_name_pydantic_model[self.select.value]
211 if self.demo.pydantic_model != model:
--> 212 self.demo.pydantic_model = model
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:718, in TraitType.set(self, obj, value)
714 silent = False
715 if silent is not True:
716 # we explicitly compare silent to True just in case the equality
717 # comparison above returns something other than True/False
--> 718 obj._notify_trait(self.name, old_value, new_value)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/ipywidgets/widgets/widget.py:701, in Widget.notify_change(self, change)
698 if name in self.keys and self._should_send_property(name, getattr(self, name)):
699 # Send new state to front-end
700 self.send_state(key=name)
--> 701 super().notify_change(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1513, in HasTraits.notify_change(self, change)
1511 def notify_change(self, change):
1512 """Notify observers of a change event"""
-> 1513 return self._notify_observers(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1560, in HasTraits._notify_observers(self, event)
1557 elif isinstance(c, EventHandler) and c.name is not None:
1558 c = getattr(self, c.name)
-> 1560 c(event)
File ~/git/MXF/ipyautoui/src/ipyautoui/demo.py:52, in Demo._observe_pydantic_model(self, change)
47 except:
48 raise ValueError(
49 "for the Demo to work, the pydantic_model must"
50 " be defined in a separate python file."
51 )
---> 52 self._update_autoui()
53 self._update_pydantic()
54 self._update_jsonschema()
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:718, in TraitType.set(self, obj, value)
714 silent = False
715 if silent is not True:
716 # we explicitly compare silent to True just in case the equality
717 # comparison above returns something other than True/False
--> 718 obj._notify_trait(self.name, old_value, new_value)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/ipywidgets/widgets/widget.py:701, in Widget.notify_change(self, change)
698 if name in self.keys and self._should_send_property(name, getattr(self, name)):
699 # Send new state to front-end
700 self.send_state(key=name)
--> 701 super().notify_change(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1513, in HasTraits.notify_change(self, change)
1511 def notify_change(self, change):
1512 """Notify observers of a change event"""
-> 1513 return self._notify_observers(change)
File ~/miniforge3/envs/ipyautoui-dev/lib/python3.12/site-packages/traitlets/traitlets.py:1560, in HasTraits._notify_observers(self, event)
1557 elif isinstance(c, EventHandler) and c.name is not None:
1558 c = getattr(self, c.name)
-> 1560 c(event)
Describe the bug
MultiIndexEditableGrid Demo failing to open:
See traceback below:
Command Line Output
The text was updated successfully, but these errors were encountered: