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)