Show More
@@ -109,7 +109,7 b' class ContentsManager(LoggingConfigurable):' | |||||
109 |
|
109 | |||
110 | checkpoints_class = Type(Checkpoints, config=True) |
|
110 | checkpoints_class = Type(Checkpoints, config=True) | |
111 | checkpoints = Instance(Checkpoints, config=True) |
|
111 | checkpoints = Instance(Checkpoints, config=True) | |
112 |
checkpoints_kwargs = Dict( |
|
112 | checkpoints_kwargs = Dict(config=True) | |
113 |
|
113 | |||
114 | def _checkpoints_default(self): |
|
114 | def _checkpoints_default(self): | |
115 | return self.checkpoints_class(**self.checkpoints_kwargs) |
|
115 | return self.checkpoints_class(**self.checkpoints_kwargs) |
@@ -140,7 +140,7 b' class Widget(LoggingConfigurable):' | |||||
140 |
|
140 | |||
141 | _property_lock = Tuple((None, None)) |
|
141 | _property_lock = Tuple((None, None)) | |
142 | _send_state_lock = Int(0) |
|
142 | _send_state_lock = Int(0) | |
143 |
_states_to_send = Set( |
|
143 | _states_to_send = Set() | |
144 | _display_callbacks = Instance(CallbackDispatcher, ()) |
|
144 | _display_callbacks = Instance(CallbackDispatcher, ()) | |
145 | _msg_callbacks = Instance(CallbackDispatcher, ()) |
|
145 | _msg_callbacks = Instance(CallbackDispatcher, ()) | |
146 |
|
146 |
@@ -18,16 +18,16 b' class Box(DOMWidget):' | |||||
18 | # Child widgets in the container. |
|
18 | # Child widgets in the container. | |
19 | # Using a tuple here to force reassignment to update the list. |
|
19 | # Using a tuple here to force reassignment to update the list. | |
20 | # When a proper notifying-list trait exists, that is what should be used here. |
|
20 | # When a proper notifying-list trait exists, that is what should be used here. | |
21 |
children = Tuple(sync=True |
|
21 | children = Tuple(sync=True) | |
22 |
|
22 | |||
23 | _overflow_values = ['visible', 'hidden', 'scroll', 'auto', 'initial', 'inherit', ''] |
|
23 | _overflow_values = ['visible', 'hidden', 'scroll', 'auto', 'initial', 'inherit', ''] | |
24 | overflow_x = CaselessStrEnum( |
|
24 | overflow_x = CaselessStrEnum( | |
25 | values=_overflow_values, |
|
25 | values=_overflow_values, | |
26 |
default_value='' |
|
26 | default_value='', sync=True, help="""Specifies what | |
27 | happens to content that is too large for the rendered region.""") |
|
27 | happens to content that is too large for the rendered region.""") | |
28 | overflow_y = CaselessStrEnum( |
|
28 | overflow_y = CaselessStrEnum( | |
29 | values=_overflow_values, |
|
29 | values=_overflow_values, | |
30 |
default_value='' |
|
30 | default_value='', sync=True, help="""Specifies what | |
31 | happens to content that is too large for the rendered region.""") |
|
31 | happens to content that is too large for the rendered region.""") | |
32 |
|
32 | |||
33 | box_style = CaselessStrEnum( |
|
33 | box_style = CaselessStrEnum( | |
@@ -59,10 +59,10 b' class FlexBox(Box):' | |||||
59 | _locations = ['start', 'center', 'end', 'baseline', 'stretch'] |
|
59 | _locations = ['start', 'center', 'end', 'baseline', 'stretch'] | |
60 | pack = CaselessStrEnum( |
|
60 | pack = CaselessStrEnum( | |
61 | values=_locations, |
|
61 | values=_locations, | |
62 |
default_value='start', |
|
62 | default_value='start', sync=True) | |
63 | align = CaselessStrEnum( |
|
63 | align = CaselessStrEnum( | |
64 | values=_locations, |
|
64 | values=_locations, | |
65 |
default_value='start', |
|
65 | default_value='start', sync=True) | |
66 |
|
66 | |||
67 |
|
67 | |||
68 | def VBox(*pargs, **kwargs): |
|
68 | def VBox(*pargs, **kwargs): |
@@ -130,8 +130,7 b' class FloatSlider(_BoundedFloat):' | |||||
130 | """ |
|
130 | """ | |
131 | _view_name = Unicode('FloatSliderView', sync=True) |
|
131 | _view_name = Unicode('FloatSliderView', sync=True) | |
132 | orientation = CaselessStrEnum(values=['horizontal', 'vertical'], |
|
132 | orientation = CaselessStrEnum(values=['horizontal', 'vertical'], | |
133 | default_value='horizontal', |
|
133 | default_value='horizontal', help="Vertical or horizontal.", sync=True) | |
134 | help="Vertical or horizontal.", allow_none=False, sync=True) |
|
|||
135 | _range = Bool(False, help="Display a range selector", sync=True) |
|
134 | _range = Bool(False, help="Display a range selector", sync=True) | |
136 | readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) |
|
135 | readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) | |
137 | slider_color = Unicode(sync=True) |
|
136 | slider_color = Unicode(sync=True) | |
@@ -285,8 +284,7 b' class FloatRangeSlider(_BoundedFloatRange):' | |||||
285 | """ |
|
284 | """ | |
286 | _view_name = Unicode('FloatSliderView', sync=True) |
|
285 | _view_name = Unicode('FloatSliderView', sync=True) | |
287 | orientation = CaselessStrEnum(values=['horizontal', 'vertical'], |
|
286 | orientation = CaselessStrEnum(values=['horizontal', 'vertical'], | |
288 |
default_value='horizontal', |
|
287 | default_value='horizontal', help="Vertical or horizontal.", sync=True) | |
289 | help="Vertical or horizontal.", sync=True) |
|
|||
290 | _range = Bool(True, help="Display a range selector", sync=True) |
|
288 | _range = Bool(True, help="Display a range selector", sync=True) | |
291 | readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) |
|
289 | readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) | |
292 | slider_color = Unicode(sync=True) |
|
290 | slider_color = Unicode(sync=True) |
@@ -84,8 +84,7 b' class IntSlider(_BoundedInt):' | |||||
84 | """Slider widget that represents a int bounded by a minimum and maximum value.""" |
|
84 | """Slider widget that represents a int bounded by a minimum and maximum value.""" | |
85 | _view_name = Unicode('IntSliderView', sync=True) |
|
85 | _view_name = Unicode('IntSliderView', sync=True) | |
86 | orientation = CaselessStrEnum(values=['horizontal', 'vertical'], |
|
86 | orientation = CaselessStrEnum(values=['horizontal', 'vertical'], | |
87 |
default_value='horizontal', |
|
87 | default_value='horizontal', help="Vertical or horizontal.", sync=True) | |
88 | help="Vertical or horizontal.", sync=True) |
|
|||
89 | _range = Bool(False, help="Display a range selector", sync=True) |
|
88 | _range = Bool(False, help="Display a range selector", sync=True) | |
90 | readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) |
|
89 | readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) | |
91 | slider_color = Unicode(sync=True) |
|
90 | slider_color = Unicode(sync=True) | |
@@ -196,8 +195,7 b' class IntRangeSlider(_BoundedIntRange):' | |||||
196 | """Slider widget that represents a pair of ints between a minimum and maximum value.""" |
|
195 | """Slider widget that represents a pair of ints between a minimum and maximum value.""" | |
197 | _view_name = Unicode('IntSliderView', sync=True) |
|
196 | _view_name = Unicode('IntSliderView', sync=True) | |
198 | orientation = CaselessStrEnum(values=['horizontal', 'vertical'], |
|
197 | orientation = CaselessStrEnum(values=['horizontal', 'vertical'], | |
199 |
default_value='horizontal', |
|
198 | default_value='horizontal', help="Vertical or horizontal.", sync=True) | |
200 | help="Vertical or horizontal.", sync=True) |
|
|||
201 | _range = Bool(True, help="Display a range selector", sync=True) |
|
199 | _range = Bool(True, help="Display a range selector", sync=True) | |
202 | readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) |
|
200 | readout = Bool(True, help="Display the current value of the slider next to it.", sync=True) | |
203 | slider_color = Unicode(sync=True) |
|
201 | slider_color = Unicode(sync=True) |
@@ -171,8 +171,8 b' class TaskScheduler(SessionFactory):' | |||||
171 | """ |
|
171 | """ | |
172 | ) |
|
172 | ) | |
173 | scheme_name = Enum(('leastload', 'pure', 'lru', 'plainrandom', 'weighted', 'twobin'), |
|
173 | scheme_name = Enum(('leastload', 'pure', 'lru', 'plainrandom', 'weighted', 'twobin'), | |
174 |
'leastload', config=True, |
|
174 | 'leastload', config=True, | |
175 |
|
|
175 | help="""select the task scheduler scheme [default: Python LRU] | |
176 | Options are: 'pure', 'lru', 'plainrandom', 'weighted', 'twobin','leastload'""" |
|
176 | Options are: 'pure', 'lru', 'plainrandom', 'weighted', 'twobin','leastload'""" | |
177 | ) |
|
177 | ) | |
178 | def _scheme_name_changed(self, old, new): |
|
178 | def _scheme_name_changed(self, old, new): |
@@ -99,7 +99,7 b' class ZMQTerminalInteractiveShell(TerminalInteractiveShell):' | |||||
99 |
|
99 | |||
100 | mime_preference = List( |
|
100 | mime_preference = List( | |
101 | default_value=['image/png', 'image/jpeg', 'image/svg+xml'], |
|
101 | default_value=['image/png', 'image/jpeg', 'image/svg+xml'], | |
102 |
config=True, |
|
102 | config=True, help= | |
103 | """ |
|
103 | """ | |
104 | Preferred object representation MIME type in order. First |
|
104 | Preferred object representation MIME type in order. First | |
105 | matched MIME type will be used. |
|
105 | matched MIME type will be used. |
General Comments 0
You need to be logged in to leave comments.
Login now