Traitlets 5 changed how self.default_value was used vs the dynamic default callback of the Instance trait type (in v5 default_value takes precedence over the dynamic default). ~This avoids us writing to that value, as I don't think we every rely on it.~ Here we ensure that the value we write is correct, so that ipywidgets sync logic is correct.
Fixes #334 .
Traitlets 5 changed how
self.default_value
was used vs the dynamic default callback of theInstance
trait type (in v5default_value
takes precedence over the dynamic default). ~This avoids us writing to that value, as I don't think we every rely on it.~ Here we ensure that the value we write is correct, so that ipywidgets sync logic is correct.