mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
return f with @interact, not just @interact(**kwargs)
This commit is contained in:
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…
Reference in New Issue
Block a user