From 6d555b7aeeebe27f28b6e7622dba0cc43ab5c5ef Mon Sep 17 00:00:00 2001 From: MinRK Date: Thu, 6 Feb 2014 17:01:33 -0800 Subject: [PATCH] return f with @interact, not just @interact(**kwargs) --- IPython/html/widgets/interaction.py | 1 + 1 file changed, 1 insertion(+) diff --git a/IPython/html/widgets/interaction.py b/IPython/html/widgets/interaction.py index 9bb060f18..6c9a811d7 100644 --- a/IPython/html/widgets/interaction.py +++ b/IPython/html/widgets/interaction.py @@ -230,6 +230,7 @@ def interact(__interact_f=None, **kwargs): w = interactive(f, **kwargs) f.widget = w display(w) + return f else: # This branch handles the case: # @interact(a=30, b=40)