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

MinRK 12 years ago
parent 031b69895c
commit 6d555b7aee

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

Loading…
Cancel
Save