return f with @interact, not just @interact(**kwargs)

This commit is contained in:
MinRK 2014-02-06 17:01:33 -08:00
parent 031b69895c
commit 6d555b7aee

View File

@ -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)