-
-
Notifications
You must be signed in to change notification settings - Fork 473
/
__init__.py
148 lines (135 loc) · 3.97 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
"""
Panel widgets makes your data exploration and apps interactive
==============================================================
Panel provides a long range of basic and specialized widgets.
Check out the widget gallery
https://panel.holoviz.org/reference/index.html#widgets for inspiration.
How to use Panel widgets in 4 simple steps
------------------------------------------
1. Define your function
>>> def my_func(value1, value2):
... ...
... return some_python_object
2. Define your widgets
>>> widget1 = pn.widgets.SomeWidget(value=..., ...).servable(area='sidebar')
>>> widget2 = pn.widgets.AnotherWidget(value=..., ...).servable(area='sidebar')
3. Bind the function to your widgets
>>> interactive_func = pn.bind(my_func, value1=widget1, value2=widget2)
4. Layout your interactive function in a panel, Column, Row or similar
>>> pn.panel(interactive_func).servable()
For more detail see the Getting Started Guide
https://panel.holoviz.org/getting_started/index.html
"""
from .base import CompositeWidget, Widget # noqa
from .button import Button, MenuButton, Toggle # noqa
from .codeeditor import CodeEditor # noqa
from .debugger import Debugger # noqa
from .file_selector import FileSelector # noqa
from .icon import ButtonIcon, ToggleIcon # noqa
from .indicators import ( # noqa
BooleanStatus, Dial, Gauge, LinearGauge, LoadingSpinner, Number, Progress,
TooltipIcon, Tqdm, Trend,
)
from .input import ( # noqa
ArrayInput, Checkbox, ColorPicker, DatePicker, DateRangePicker,
DatetimeInput, DatetimePicker, DatetimeRangeInput, DatetimeRangePicker,
FileInput, FloatInput, IntInput, LiteralInput, NumberInput, PasswordInput,
Spinner, StaticText, Switch, TextAreaInput, TextInput,
)
from .misc import FileDownload, JSONEditor, VideoStream # noqa
from .player import DiscretePlayer, Player # noqa
from .select import ( # noqa
AutocompleteInput, CheckBoxGroup, CheckButtonGroup, ColorMap,
CrossSelector, MultiChoice, MultiSelect, NestedSelect, RadioBoxGroup,
RadioButtonGroup, Select, ToggleGroup,
)
from .slider import ( # noqa
DateRangeSlider, DateSlider, DatetimeRangeSlider, DiscreteSlider,
EditableFloatSlider, EditableIntSlider, EditableRangeSlider, FloatSlider,
IntRangeSlider, IntSlider, RangeSlider,
)
from .speech_to_text import Grammar, GrammarList, SpeechToText # noqa
from .tables import DataFrame, Tabulator # noqa
from .terminal import Terminal # noqa
from .text_to_speech import TextToSpeech, Utterance, Voice # noqa
from .texteditor import TextEditor # noqa
from .widget import widget # noqa
__all__ = (
"ArrayInput",
"AutocompleteInput",
"BooleanStatus",
"Button",
"ButtonIcon",
"Checkbox",
"CheckBoxGroup",
"CheckButtonGroup",
"CodeEditor",
"ColorPicker",
"CompositeWidget",
"CrossSelector",
"DataFrame",
"DatePicker",
"DateRangePicker",
"DateRangeSlider",
"DatetimeRangeSlider",
"DateSlider",
"DatetimeInput",
"DatetimePicker",
"DatetimeRangeInput",
"DatetimeRangePicker",
"Debugger",
"Dial",
"DiscretePlayer",
"DiscreteSlider",
"EditableFloatSlider",
"EditableIntSlider",
"EditableRangeSlider",
"FileDownload",
"FileInput",
"FileSelector",
"FloatInput",
"FloatSlider",
"Gauge",
"Grammar",
"GrammarList",
"IntInput",
"IntRangeSlider",
"IntSlider",
"JSONEditor",
"LinearGauge",
"LiteralInput",
"LoadingSpinner",
"MenuButton",
"MultiChoice",
"MultiSelect",
"NestedSelect",
"Number",
"NumberInput",
"PasswordInput",
"Player",
"Progress",
"RadioBoxGroup",
"RadioButtonGroup",
"RangeSlider",
"Select",
"SpeechToText",
"Spinner",
"StaticText",
"Switch",
"Tabulator",
"Terminal",
"TextAreaInput",
"TextEditor",
"TextInput",
"TextToSpeech",
"Toggle",
"ToggleGroup",
"ToggleIcon",
"TooltipIcon",
"Tqdm",
"Trend",
"Utterance",
"VideoStream",
"Voice",
"Widget",
)