Min RK
41e61d42a5
Merge pull request #7871 from takluyver/docs-misc-cleanup-feb15
...
Misc docs cleanup
11 years ago
Jonathan Frederic
1fbbda5a14
Pad interact widgets.
11 years ago
Thomas Kluyver
751de151e3
Clean up some docstring formatting for interact/interactive
11 years ago
Jonathan Frederic
b906cf0a8f
Revert "Use Output widget with Interact"
11 years ago
Nicholas Bollweg
6a372a4c66
squashing the whitespace changes
11 years ago
Jonathan Frederic
567183b154
Use output widget with interact
11 years ago
Torsten Bittner
d5a7879a26
Add documentation for interactive function.
11 years ago
Torsten Bittner
080f926c8e
Add documentation for interact function.
11 years ago
Min RK
21a7f75ade
Don't use widget.description as kwarg key
...
in interact.
description can be set manually,
so it cannot be relied upon to store the kwarg key.
Add a `widget._kwarg` attribute instead.
11 years ago
Min RK
ec1adebc1e
allow interact(instancemethod)
...
objects that can't have `.widget` attribute assigned
are wrapped in a lambda
11 years ago
Gordon Ball
48e1a0b2bc
s/choose/manual/g
12 years ago
Gordon Ball
859e9f5261
Change from on_demand kwarg to interact_choose function
12 years ago
Gordon Ball
8296f24904
Merge master
12 years ago
Jonathan Frederic
d985ee86c6
s/Container/Box
12 years ago
Jonathan Frederic
ba3033971e
Renamed *Widget to *,
...
depracted old names.
12 years ago
Gordon Ball
5eea47203b
Disable run button until the function finishes
12 years ago
Gordon Ball
4752b83feb
Add 'on_demand' option to interact() so that long-running functions can be started only when explicitly requested
12 years ago
Jessica B. Hamrick
31812159af
Only set widget description in interact if it does not already exist
12 years ago
MinRK
acfc2d5308
set default value from dict
12 years ago
MinRK
e91ef370dd
remove no-op adding abbreviations from always-empty dict
12 years ago
MinRK
8a2d92010a
set default value from signature defaults in interact
...
If available, use the default value from the signature for the initial condition,
when using range/choice abbreviations.
Not affected:
- single-value abbreviations (`@interact(a=5)` sets `a=5`)
- explicit Widgets
12 years ago
MinRK
d772b4c3da
catch errors at a lower level in interact
...
for cleaner tracebacks in the interact callback than the fallback case
12 years ago
MinRK
6d555b7aee
return f with @interact, not just @interact(**kwargs)
12 years ago
MinRK
031b69895c
fix ValueError format message
12 years ago
MinRK
48a56d3156
simplify float/int slider abbreviation logic
...
fixes unhanded case where only one entry is a float
12 years ago
MinRK
7911c6c237
finish removing *args support
12 years ago
MinRK
ad6109692d
ensure range widgets get value that is on a step
12 years ago
MinRK
a58ca8a0a0
s/const/fixed/
12 years ago
MinRK
2d2c5beb0e
move @annotate to py3compat
12 years ago
MinRK
3053a855a9
remove positional arg support from interact
12 years ago
MinRK
feab63754d
update interact now that SelectionWidget.values is a dict
12 years ago
Brian E. Granger
88fb17b182
Adding const pseudo-widget for fixing arguments to interact.
12 years ago
Brian E. Granger
6e8c63ea19
Adding decorator forms of interact. Yeah!
12 years ago
Brian E. Granger
dd9a6efaed
Utter interact insanity.
...
This involves a bunch of really complicated logic to handle the
different ways that function parameters can be processed in Python.
Most importantly, this includes support for *args in interact.
12 years ago
Brian E. Granger
2ef393aaa3
Renaming interact.py->interaction.py to improve imports.
12 years ago