---------------------------------------------------------------------------
TraitError Traceback (most recent call last)
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/html/widgets/widget.pyc in _handle_msg(self, msg)
270 if method == 'backbone' and 'sync_data' in data:
271 sync_data = data['sync_data']
--> 272 self._handle_receive_state(sync_data) # handles all methods
273
274 # Handle a custom msg from the front-end
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/html/widgets/widget.pyc in _handle_receive_state(self, sync_data)
283 value = self._unpack_widgets(sync_data[name])
284 with self._lock_property(name, value):
--> 285 setattr(self, name, value)
286
287 def _handle_custom_msg(self, content):
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/traitlets.pyc in __set__(self, obj, value)
358
359 def __set__(self, obj, value):
--> 360 new_value = self._validate(obj, value)
361 old_value = self.__get__(obj)
362 obj._trait_values[self.name] = new_value
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/traitlets.pyc in _validate(self, obj, value)
373 def _validate(self, obj, value):
374 if hasattr(self, 'validate'):
--> 375 return self.validate(obj, value)
376 elif hasattr(self, 'is_valid_for'):
377 valid = self.is_valid_for(value)
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/traitlets.pyc in validate(self, obj, value)
1092 msg = "Could not decode {!r} for unicode trait '{}' of {} instance."
1093 raise TraitError(msg.format(value, self.name, class_of(obj)))
-> 1094 self.error(obj, value)
1095
1096
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/traitlets.pyc in error(self, obj, value)
396 e = "The '%s' trait must be %s, but a value of %r was specified." \
397 % (self.name, self.info(), repr_type(value))
--> 398 raise TraitError(e)
399
400 def get_metadata(self, key):
TraitError: The 'value_name' trait of a ToggleButtonsWidget instance must be a unicode string, but a value of 1 <type 'int'> was specified.
---------------------------------------------------------------------------
TraitError Traceback (most recent call last)
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/html/widgets/widget.pyc in _handle_msg(self, msg)
270 if method == 'backbone' and 'sync_data' in data:
271 sync_data = data['sync_data']
--> 272 self._handle_receive_state(sync_data) # handles all methods
273
274 # Handle a custom msg from the front-end
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/html/widgets/widget.pyc in _handle_receive_state(self, sync_data)
283 value = self._unpack_widgets(sync_data[name])
284 with self._lock_property(name, value):
--> 285 setattr(self, name, value)
286
287 def _handle_custom_msg(self, content):
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/traitlets.pyc in __set__(self, obj, value)
358
359 def __set__(self, obj, value):
--> 360 new_value = self._validate(obj, value)
361 old_value = self.__get__(obj)
362 obj._trait_values[self.name] = new_value
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/traitlets.pyc in _validate(self, obj, value)
373 def _validate(self, obj, value):
374 if hasattr(self, 'validate'):
--> 375 return self.validate(obj, value)
376 elif hasattr(self, 'is_valid_for'):
377 valid = self.is_valid_for(value)
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/traitlets.pyc in validate(self, obj, value)
1092 msg = "Could not decode {!r} for unicode trait '{}' of {} instance."
1093 raise TraitError(msg.format(value, self.name, class_of(obj)))
-> 1094 self.error(obj, value)
1095
1096
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/traitlets.pyc in error(self, obj, value)
396 e = "The '%s' trait must be %s, but a value of %r was specified." \
397 % (self.name, self.info(), repr_type(value))
--> 398 raise TraitError(e)
399
400 def get_metadata(self, key):
TraitError: The 'value_name' trait of a ToggleButtonsWidget instance must be a unicode string, but a value of 2 <type 'int'> was specified.