Merge pull request #6377 from jasongrout/fix-widget-prefix

Strip the IPY_MODEL_ prefix from widget IDs before referencing them.
pull/37/head
Jonathan Frederic 12 years ago
commit 78db5dc24e

@ -361,7 +361,7 @@ class Widget(LoggingConfigurable):
elif isinstance(x, string_types) and x.startswith('IPY_MODEL_') and x[10:] in Widget.widgets:
# we want to support having child widgets at any level in a hierarchy
# trusting that a widget UUID will not appear out in the wild
return Widget.widgets[x]
return Widget.widgets[x[10:]]
else:
return x

Loading…
Cancel
Save