Strip the IPY_MODEL_ prefix from widget IDs before referencing them.

pull/37/head
Jason Grout 12 years ago
parent 0539281c8a
commit 2acee4a269

@ -360,7 +360,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