From 0eb1bfaf44f6b684e277802e950168ad90e046d6 2014-02-07 01:06:08 From: MinRK Date: 2014-02-07 01:06:08 Subject: [PATCH] return f with @interact, not just @interact(**kwargs) --- diff --git a/IPython/html/widgets/interaction.py b/IPython/html/widgets/interaction.py index 9bb060f..6c9a811 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)