From d969659290caa06e9e3c576e5f7b51c26024828b 2014-09-15 20:40:09 From: Jonathan Frederic Date: 2014-09-15 20:40:09 Subject: [PATCH] Merge pull request #6377 from jasongrout/fix-widget-prefix Strip the IPY_MODEL_ prefix from widget IDs before referencing them. --- diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index 70a3e4f..e2f2a6e 100644 --- a/IPython/html/widgets/widget.py +++ b/IPython/html/widgets/widget.py @@ -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