iterlab 2.0.1__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {iterlab-2.0.1 → iterlab-2.2.0}/CHANGELOG.md +1762 -1552
- {iterlab-2.0.1 → iterlab-2.2.0}/GUIDE.md +926 -754
- {iterlab-2.0.1 → iterlab-2.2.0}/PKG-INFO +3 -1
- {iterlab-2.0.1 → iterlab-2.2.0}/VERIFICATION.md +269 -212
- {iterlab-2.0.1 → iterlab-2.2.0}/examples/showcase.py +215 -170
- {iterlab-2.0.1 → iterlab-2.2.0}/examples/showcase_layout.py +101 -94
- {iterlab-2.0.1 → iterlab-2.2.0}/pyproject.toml +87 -86
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/__init__.py +25 -25
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/app.py +113 -101
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/codegen/inject.py +169 -165
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/codegen/templates.py +61 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/layout/schema.py +78 -13
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/layout/store.py +15 -1
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/runtime/dispatch.py +5 -0
- iterlab-2.2.0/src/iterlab/runtime/editors.py +423 -0
- iterlab-2.2.0/src/iterlab/runtime/loader.py +266 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/runtime/remembered.py +48 -22
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/types.py +3 -1
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/app.py +468 -462
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/designer.py +57 -3
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/elements.py +77 -3
- iterlab-2.2.0/src/iterlab/ui/handler_menu.py +154 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/icon.py +27 -0
- iterlab-2.2.0/src/iterlab/ui/list_element.py +522 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/modetoggle.py +1 -1
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/palette.py +1 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/properties.py +25 -1
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/runner.py +2 -1
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/theme.py +14 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/versionguard.py +8 -8
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/conftest.py +45 -71
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/integration/test_layout_file.py +165 -210
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_box_stubs.py +222 -251
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_default_window_size.py +0 -15
- iterlab-2.2.0/tests/ui/test_handler_menu.py +308 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_icon.py +241 -138
- iterlab-2.2.0/tests/ui/test_list_editor.py +65 -0
- iterlab-2.2.0/tests/ui/test_list_element.py +505 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_look.py +248 -267
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_properties_panel.py +131 -156
- iterlab-2.2.0/tests/ui/test_real_launch.py +372 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_restart_app.py +55 -12
- iterlab-2.2.0/tests/ui/test_screenshot.py +239 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_showcase_example.py +252 -183
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_toolbar.py +129 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_toolbar_collapse.py +200 -204
- iterlab-2.2.0/tests/unit/test_editors.py +215 -0
- iterlab-2.2.0/tests/unit/test_element_colours.py +71 -0
- iterlab-2.2.0/tests/unit/test_fresh_compile.py +151 -0
- iterlab-2.2.0/tests/unit/test_handler_stubs.py +101 -0
- iterlab-2.2.0/tests/unit/test_list_layout.py +94 -0
- iterlab-2.2.0/tests/unit/test_project_imports.py +186 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_remembered.py +6 -6
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_runnable_file.py +222 -226
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_style.py +197 -185
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_versionguard.py +229 -228
- iterlab-2.2.0/tools/check_downgrade.py +95 -0
- iterlab-2.0.1/src/iterlab/runtime/loader.py +0 -147
- iterlab-2.0.1/tests/ui/test_screenshot.py +0 -133
- {iterlab-2.0.1 → iterlab-2.2.0}/.gitignore +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/LICENSE +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/NOTICE +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/README.md +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/docs/intro.gif +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/docs/iterlab.jpg +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/docs/logo.png +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/assets/iterlab.ico +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/assets/iterlab.png +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/cli.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/codegen/__init__.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/codegen/rename.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/errors.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/interface.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/layout/__init__.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/py.typed +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/runtime/__init__.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/runtime/environment.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/runtime/faults.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/runtime/startupcheck.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/__init__.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/dialogs.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/faultbanner.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/screenshot.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/scroll.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/session.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/startupnotice.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/src/iterlab/ui/tooltip.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/contract/test_layout_schema.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/contract/test_public_api.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/integration/test_additive.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/integration/test_create_and_run.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/integration/test_never_dies.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/integration/test_reload.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/integration/test_rename.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/integration/test_stub_annotations.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/_helpers.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/conftest.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_arming.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_axes_is_a_real_axes.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_direct_manipulation.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_empty_text.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_fault_banner.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_input_elements.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_label_appearance.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_mode_toggle.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_mouse_buttons.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_perf.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_plot_events.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_presentation_survives.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_properties_drawer.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_properties_editing.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_property_commit.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_resize.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_selectors.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_startup_notice.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_style_editing.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_switch_cost.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_tag_tooltip.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_verify_tool.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_window_launch.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/ui/test_window_size_memory.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_atomic_write.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_cli.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_environment.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_faults.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_import_boundary.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_label_type.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_preflight_gate.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_schema.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_start_mode.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_startupcheck.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_templates.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tests/unit/test_typing_surface.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tools/check_readme_links.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tools/make_icon.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tools/preflight.py +0 -0
- {iterlab-2.0.1 → iterlab-2.2.0}/tools/verify.py +0 -0
|
@@ -1,1552 +1,1762 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to iterlab are recorded here. The project follows semantic
|
|
4
|
-
versioning as defined in the project constitution's *Release And Versioning*
|
|
5
|
-
section, where the public surface is larger than the Python API: the layout
|
|
6
|
-
schema, the handler naming convention, the `ev` contract, the generated stub
|
|
7
|
-
shape, and the command are all consumed directly by researcher-written code.
|
|
8
|
-
|
|
9
|
-
## [2.0
|
|
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
|
-
## [1.
|
|
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
|
-
the
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
- **
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
- **
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
- **A
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
it.**
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
The
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
the
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
and
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
a
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
the
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
### Added
|
|
537
|
-
|
|
538
|
-
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
researcher's
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
- **
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
- **
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
the
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
- `
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
The
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
on
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
## [0.
|
|
1124
|
-
|
|
1125
|
-
###
|
|
1126
|
-
|
|
1127
|
-
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
a
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
with
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
the
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
###
|
|
1426
|
-
|
|
1427
|
-
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
## [0.
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
tests
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to iterlab are recorded here. The project follows semantic
|
|
4
|
+
versioning as defined in the project constitution's *Release And Versioning*
|
|
5
|
+
section, where the public surface is larger than the Python API: the layout
|
|
6
|
+
schema, the handler naming convention, the `ev` contract, the generated stub
|
|
7
|
+
shape, and the command are all consumed directly by researcher-written code.
|
|
8
|
+
|
|
9
|
+
## [2.2.0] — 2026-11-22
|
|
10
|
+
|
|
11
|
+
A new element type, and so a minor release rather than the 2.1.1 the fixes
|
|
12
|
+
below were first gathered under. Nothing between them was published.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **A list element.** Rows of text that your code fills and someone clicks:
|
|
17
|
+
`ev.lst_0.append("run 12")`, `insert`, `del ev.lst_0[i]`, `ev.lst_0[i] = ...`,
|
|
18
|
+
`clear()`, and `ev.lst_0.length`. Deleting a row closes the gap, and there
|
|
19
|
+
are no holes: an index that does not exist raises `IndexError`.
|
|
20
|
+
|
|
21
|
+
Clicking a row calls `on_clicked_lst_0` with `event.index` and `event.text`,
|
|
22
|
+
and highlights it; `ev.lst_0.selected` reads or sets it. Up and Down move the
|
|
23
|
+
selection. **Multi-select**, ticked in the editor, adds rows with Ctrl+click
|
|
24
|
+
and removes them with Alt+click (Cmd and Option on a Mac), and makes
|
|
25
|
+
`.selected` a tuple.
|
|
26
|
+
|
|
27
|
+
The list's font, colours, bold and italic are set in the editor, plus
|
|
28
|
+
**Rows**, the background behind each row. `ev.lst_0.style_line(i, ...)`
|
|
29
|
+
overrides any of them for one row, and that style belongs to the row: it
|
|
30
|
+
moves with it when rows above are added or removed, as the selection does.
|
|
31
|
+
|
|
32
|
+
A scrollbar appears when the rows do not fit, and the list follows new rows
|
|
33
|
+
at the bottom unless you have scrolled up to read. Long rows are cut off;
|
|
34
|
+
**Scroll sideways** in the editor gives a horizontal scrollbar instead.
|
|
35
|
+
|
|
36
|
+
Rows survive a trip to the editor, and a hard reset empties them: they are
|
|
37
|
+
the session's, and never written to the layout.
|
|
38
|
+
|
|
39
|
+
The event gains `index` and `text`, both `None` on every other element.
|
|
40
|
+
|
|
41
|
+
- **The showcase in `examples/` features a list**: one row per region, the best
|
|
42
|
+
and worst marked with `style_line`, and Ctrl+click to pick several regions,
|
|
43
|
+
whose bars stay coloured while the rest grey out. Shuffle rewrites the rows
|
|
44
|
+
in place, so what you picked stays picked.
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
|
|
48
|
+
- **On Python 3.15, Hard reset kept an edited helper module.** Before
|
|
49
|
+
re-importing your project's modules, iterlab deletes their compiled cache, so
|
|
50
|
+
a same-size edit saved within a second is not read back as the old code. It
|
|
51
|
+
found that cache through `module.__cached__`, which Python 3.15 removed, so
|
|
52
|
+
on 3.15 it found nothing and deleted nothing, without any error. It now reads
|
|
53
|
+
`module.__spec__.cached`, which has held the same path since Python 3.4.
|
|
54
|
+
|
|
55
|
+
- **On Python 3.15, the window icon was a thin outline.** 3.15 ships Tk 9,
|
|
56
|
+
which gives a window its default icon from the wrong frame of the `.ico`:
|
|
57
|
+
the 256 px artwork squeezed into the title bar. The icon is now also set on
|
|
58
|
+
the window itself, which picks the 16 px frame on Tk 9 and on Tk 8.6 alike.
|
|
59
|
+
|
|
60
|
+
### Testing
|
|
61
|
+
|
|
62
|
+
- **CI runs the headless suite on Python 3.15** as well as 3.10 and 3.12. Both
|
|
63
|
+
bugs above were caught by existing tests the first time the suite ran on
|
|
64
|
+
3.15, and the first one would have been caught by CI.
|
|
65
|
+
|
|
66
|
+
- **The downgrade job now opens a project with 2.1.0**, the newest release.
|
|
67
|
+
|
|
68
|
+
## [2.1.0] — 2026-09-26
|
|
69
|
+
|
|
70
|
+
### Added
|
|
71
|
+
|
|
72
|
+
- **Right-click an element in the editor to go to its code.** The menu lists
|
|
73
|
+
the element's handlers, its main one first. A handler you have written opens
|
|
74
|
+
in your editor at its line; one you have not is added to the end of your file
|
|
75
|
+
and then opened, so the menu is also where you find out what else an element
|
|
76
|
+
can do. Only the interactions an element can fire are offered: `changed`
|
|
77
|
+
only for the two boxes, `key` only for those and a plot.
|
|
78
|
+
|
|
79
|
+
The heading names the editor. iterlab recognises VS Code and PyCharm when you
|
|
80
|
+
launched it from one, by what they set in the environment or by finding them
|
|
81
|
+
among its parent processes, and says `<select IDE>` when it cannot tell.
|
|
82
|
+
Point at the heading to pick VS Code, PyCharm, Sublime Text, Notepad++ or
|
|
83
|
+
your default text editor. The pick is remembered outside the project, beside
|
|
84
|
+
what the file selectors remember, and wins over detection from then on.
|
|
85
|
+
|
|
86
|
+
No IDE extension is involved. Each of these editors opens a file at a line
|
|
87
|
+
from its own command line, and sends that to the window you have open.
|
|
88
|
+
|
|
89
|
+
### Changed
|
|
90
|
+
|
|
91
|
+
- **The first switch to your interface no longer pauses.** The editor never
|
|
92
|
+
draws a plot, so matplotlib - about a third of a second to import, and
|
|
93
|
+
seventy-odd modules - used to load the first time you pressed the toggle,
|
|
94
|
+
and read as iterlab being slow to run what you drew. It now loads while the
|
|
95
|
+
window is opening, before anything is on screen. Opening takes that much
|
|
96
|
+
longer; the first switch takes as long as every later one.
|
|
97
|
+
|
|
98
|
+
- **`on_key_` is gone from buttons, selectors and labels.** It could not fire
|
|
99
|
+
from a click: none of them takes the keyboard when clicked, and a label
|
|
100
|
+
cannot take it at all, so a key pressed after clicking one went to whatever
|
|
101
|
+
had focus before - a number box, in the case that found this. It was
|
|
102
|
+
documented as working on every element, and only ever did after a Tab, which
|
|
103
|
+
nobody does in an interface like this. They no longer listen for keys, so a
|
|
104
|
+
hand-written one cannot half-work. `on_key_` stays on plots and the two boxes,
|
|
105
|
+
which do take the keyboard.
|
|
106
|
+
|
|
107
|
+
### Fixed
|
|
108
|
+
|
|
109
|
+
- **An edit could silently fail to take effect.** The guide's own first example
|
|
110
|
+
is "change `2` to `5`, save, click". Saved within a second of the last load,
|
|
111
|
+
that edit did nothing and reported nothing: the loader noticed the change,
|
|
112
|
+
reloaded, and Python handed back the old compiled code, because it judges its
|
|
113
|
+
`__pycache__` fresh by whole-second modification time and file size, and `2`
|
|
114
|
+
and `5` are the same size. A second, separate gap sat underneath it: Windows
|
|
115
|
+
records file times in ticks of up to about 15 ms, so two same-size saves in
|
|
116
|
+
one tick were not even noticed.
|
|
117
|
+
|
|
118
|
+
People rarely save twice in a second. An editor that formats on save does it
|
|
119
|
+
routinely, and so does an assistant editing the file. Your code is now
|
|
120
|
+
compiled from its source on every load, never from a cache, and a change is
|
|
121
|
+
detected by content as well as by time and size. This is Principle IV - a
|
|
122
|
+
code change takes effect without a restart - holding when it had quietly not.
|
|
123
|
+
|
|
124
|
+
- **A helper module beside your code could not be imported under the `iterlab`
|
|
125
|
+
command.** `import helper` next to `demo.py` worked when launched from an
|
|
126
|
+
IDE, where Python puts the script's folder on the path, and failed with
|
|
127
|
+
`ModuleNotFoundError` under `iterlab demo`, where nothing did. The project
|
|
128
|
+
folder now goes first on the path, exactly as `python demo.py` puts it.
|
|
129
|
+
|
|
130
|
+
- **Hard reset did not pick up an edited helper module**, though the guide said
|
|
131
|
+
it did. It forgot your own module, and the helper stayed cached. It now
|
|
132
|
+
forgets every module loaded from your project folder, and its compiled cache,
|
|
133
|
+
while never touching installed packages - a project's `.venv` usually sits
|
|
134
|
+
inside the folder, and re-importing numpy over its running C extensions would
|
|
135
|
+
crash rather than restart. An upgraded installed library still needs iterlab
|
|
136
|
+
closed and reopened, which the guide now says.
|
|
137
|
+
|
|
138
|
+
- **A plot's toolbar misbehaved after a trip to the editor.** With the zoom or
|
|
139
|
+
pan tool pressed, the old toolbar stayed connected to the plot and went on
|
|
140
|
+
answering drags, raising `invalid command name ...canvas` on each one, while
|
|
141
|
+
the new toolbar showed no tool pressed. And Home and Back did nothing, because
|
|
142
|
+
the history of views was rebuilt empty, so a zoomed plot had no way back to
|
|
143
|
+
the full view. The old toolbar is now disconnected, and the pressed tool and
|
|
144
|
+
the view history both stay with the plot.
|
|
145
|
+
|
|
146
|
+
- **The Screenshot button's hover text mentioned `.yaml` files**, a format 2.0.0
|
|
147
|
+
retired.
|
|
148
|
+
|
|
149
|
+
### Documentation
|
|
150
|
+
|
|
151
|
+
- **The guide, the manual checklist, the contracts and the constitution now
|
|
152
|
+
match the released product.** The guide's footer claimed it was verified
|
|
153
|
+
against 1.4.0; its cross-version section described migrations 2.0.0 removed;
|
|
154
|
+
its event table missed `"changed"` and `event.path`. Five checklist rows
|
|
155
|
+
tested behaviour 1.6.0 replaced. The layout-schema contract still described
|
|
156
|
+
schema 4 in YAML, and the handler contract said `event.kind` was `"click"`.
|
|
157
|
+
|
|
158
|
+
The constitution is amended to 4.0.0. It had described YAML layouts and
|
|
159
|
+
handler-only renames for four releases after they stopped being true. The
|
|
160
|
+
2.0.0 break, taken with no migration while iterlab had no users, is recorded
|
|
161
|
+
as a dated exception rather than made legal: the compatibility obligations
|
|
162
|
+
bind every release after it in full.
|
|
163
|
+
|
|
164
|
+
The feature 001 spec, plan, tasks and research are left as written, as the
|
|
165
|
+
design record they are, with a banner pointing to what is current.
|
|
166
|
+
|
|
167
|
+
### Testing
|
|
168
|
+
|
|
169
|
+
- **The manual checklist shrinks from 59 items to 37**, before one is added for
|
|
170
|
+
the right-click menu. Twenty-two came out:
|
|
171
|
+
seven that the suite already asserted, three merged into items that judge the
|
|
172
|
+
same thing, eleven now automated, and one open question (does a zoom survive
|
|
173
|
+
a trip to the editor?) decided and tested. The rule was always that Gate 2 holds
|
|
174
|
+
only what cannot be automated. Several items claimed that and were wrong.
|
|
175
|
+
Retired numbers are listed in `VERIFICATION.md` with the test that replaced
|
|
176
|
+
each one, and are never reused.
|
|
177
|
+
|
|
178
|
+
- **Real launches.** A new process runs `python demo.py`, the way an IDE's
|
|
179
|
+
run button does, from another directory. It closes, relaunches, and checks
|
|
180
|
+
that the window size and a file selector's memory came back. That covers
|
|
181
|
+
a resize in either mode, a remembered file that was since deleted, and a
|
|
182
|
+
project folder that was moved.
|
|
183
|
+
- **Real screenshots.** The Screenshot button is pressed against a real
|
|
184
|
+
screen and the PNG is read back. The tests check its size, where an element
|
|
185
|
+
is to the pixel, and that a zoomed plot is captured zoomed.
|
|
186
|
+
- **The title bar icon** is grabbed from the screen and searched for the
|
|
187
|
+
mark's colour. Tk reports success for an icon that renders as the feather,
|
|
188
|
+
a grey box, or the 256 px artwork squeezed to a thin outline, and this
|
|
189
|
+
catches each of them.
|
|
190
|
+
- **Telling element types apart** is measured as perceptual colour distance
|
|
191
|
+
between every pair. The threshold is checked against the label and file
|
|
192
|
+
selector colours that once shipped looking identical.
|
|
193
|
+
- **A real downgrade** runs in CI. A project made by this version is opened
|
|
194
|
+
by the previous release, installed from PyPI, and both backups are checked.
|
|
195
|
+
|
|
196
|
+
- **The display suite could crash Windows Tk partway through.** Every interface
|
|
197
|
+
opened set the window icon again, and on Windows each time loads the `.ico`
|
|
198
|
+
afresh and never frees the last one: 21 GDI objects, against a limit of
|
|
199
|
+
10,000 per process. A launch does it once, so no researcher met it, but the
|
|
200
|
+
suite opens hundreds of interfaces on one shared window, and reached about
|
|
201
|
+
9,900 by the end. The next few tests added crashed it with an access
|
|
202
|
+
violation. The icon is now set once per window, and a full run peaks at a
|
|
203
|
+
few hundred.
|
|
204
|
+
|
|
205
|
+
- **Seventeen tests removed**: thirteen that repeated another test's check the
|
|
206
|
+
same way, three that could not fail, and one diagnostic left over from a
|
|
207
|
+
debugging session.
|
|
208
|
+
|
|
209
|
+
- **Five tests that could no longer fail now test what they say.** They wrote
|
|
210
|
+
1.x YAML into what is now a Python layout file, so they passed at parsing and
|
|
211
|
+
never reached the validation they were named for. One passed only because its
|
|
212
|
+
search text happened to match the `Ev` class.
|
|
213
|
+
|
|
214
|
+
- **A layout with no version stamp no longer calls itself "a build older than
|
|
215
|
+
1.4.0".** Every iterlab since then stamps what it writes, so an unstamped
|
|
216
|
+
file was written by hand. The message now says the file does not record which
|
|
217
|
+
iterlab wrote it. It is still backed up and announced.
|
|
218
|
+
|
|
219
|
+
## [2.0.1] — 2026-09-14
|
|
220
|
+
|
|
221
|
+
### Changed
|
|
222
|
+
|
|
223
|
+
- **A new code file separates what you never edit from what you do.** The
|
|
224
|
+
`TYPE_CHECKING` import that lets your editor complete `ev.` now sits at the
|
|
225
|
+
very top, inside a frame of `#` characters that says it is boilerplate you
|
|
226
|
+
do not need to touch, followed by what it is for. Your own imports start
|
|
227
|
+
below the frame, so the section you will add to is no longer interleaved
|
|
228
|
+
with the one you can ignore.
|
|
229
|
+
|
|
230
|
+
The docstring also loses its line about the top-left toggle: it describes
|
|
231
|
+
the window, not the code.
|
|
232
|
+
|
|
233
|
+
Checked with pycodestyle, which PyCharm's PEP 8 inspection uses, and with
|
|
234
|
+
ruff: neither flags the imports below the frame as not being at the top of
|
|
235
|
+
the file. Only new files are affected; iterlab never rewrites a file you
|
|
236
|
+
already have.
|
|
237
|
+
|
|
238
|
+
## [2.0.0] — 2026-09-14
|
|
239
|
+
|
|
240
|
+
### Changed
|
|
241
|
+
|
|
242
|
+
- **An interface is two files again: `demo.py` and `demo_layout.py`.** The
|
|
243
|
+
layout moved out of YAML and into a Python module, where it sits beside the
|
|
244
|
+
`Ev` class your editor reads. One write produces both, so what you drew and
|
|
245
|
+
what your editor offers cannot drift apart.
|
|
246
|
+
|
|
247
|
+
```python
|
|
248
|
+
LAYOUT = {
|
|
249
|
+
'schema_version': 8,
|
|
250
|
+
'window': {'width': 960, 'height': 540},
|
|
251
|
+
'elements': {
|
|
252
|
+
'spectrum': {'type': 'axes', 'position': [0.05, 0.5, 0.9, 0.4]},
|
|
253
|
+
},
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
class Ev:
|
|
258
|
+
spectrum: "Axes"
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
**iterlab never imports it.** The layout is lifted out of the parse tree and
|
|
262
|
+
evaluated as literals only, so opening somebody else's interface is as safe
|
|
263
|
+
as opening a data file — an `import` here would have made every shared
|
|
264
|
+
project arbitrary code execution. A computed value in `LAYOUT` is refused
|
|
265
|
+
rather than evaluated, which is the price of that guarantee and worth it.
|
|
266
|
+
|
|
267
|
+
PyYAML is no longer a dependency.
|
|
268
|
+
|
|
269
|
+
- **Files written by 1.x do not open, and there is no migration.** Deliberate:
|
|
270
|
+
the library is new enough to have no users, so nobody has a layout to lose,
|
|
271
|
+
and a migration written for files that do not exist is a cost with no payer.
|
|
272
|
+
A `demo.yaml` left in the folder is not read, not deleted, and not ignored
|
|
273
|
+
either — iterlab says what happened and opens a new interface beside it.
|
|
274
|
+
|
|
275
|
+
Schema 8 is the first version of this format. The migration machinery stays
|
|
276
|
+
for the next real change.
|
|
277
|
+
|
|
278
|
+
## [1.7.1] — never published
|
|
279
|
+
|
|
280
|
+
Prepared and gated, then overtaken by 2.0.0 before it was uploaded. Everything
|
|
281
|
+
below ships in 2.0.0; the section stays because the work and its reasoning did
|
|
282
|
+
not change, only the number it went out under.
|
|
283
|
+
|
|
284
|
+
### Added
|
|
285
|
+
|
|
286
|
+
- **Your editor can see what an element offers.** `ev.lbl_0.background` used to
|
|
287
|
+
complete to nothing and read as an unknown attribute to anything strict
|
|
288
|
+
enough to look: style properties are reached through `__setattr__` against a
|
|
289
|
+
tuple of names, which works perfectly at run time and is invisible to a type
|
|
290
|
+
checker. They are now declared as annotations without values, so an editor
|
|
291
|
+
can offer them while the runtime path is untouched.
|
|
292
|
+
|
|
293
|
+
`.text`, `.value`, `.path` and `.visible` gained return types, which turns
|
|
294
|
+
them from `Any` into `str`, `float`, `str` and `bool`.
|
|
295
|
+
|
|
296
|
+
The package also carries a `py.typed` marker now (PEP 561). Without it a
|
|
297
|
+
checker ignores everything above.
|
|
298
|
+
|
|
299
|
+
Checked with a real type checker against the built wheel rather than by
|
|
300
|
+
reasoning about it:
|
|
301
|
+
|
|
302
|
+
| expression | before | now |
|
|
303
|
+
|---|---|---|
|
|
304
|
+
| `label.background` | unknown attribute | `str \| None` |
|
|
305
|
+
| `label.text` | `Any` | `str` |
|
|
306
|
+
| `box.value` | `Any` | `float` |
|
|
307
|
+
| `plot.plot` | matplotlib's signature | unchanged |
|
|
308
|
+
|
|
309
|
+
This is the half that touches nothing you wrote. Completions on `ev.<tag>`
|
|
310
|
+
itself need a type for `ev`, which is a separate change.
|
|
311
|
+
|
|
312
|
+
- **Your editor can complete `ev.`** iterlab writes `demo_ev.py` beside your
|
|
313
|
+
pair, declaring each element and what it is, and rewrites it whenever you
|
|
314
|
+
draw, rename or delete one. Generated handlers say `ev: "Ev"`, so inside one
|
|
315
|
+
your editor offers the elements you drew — and `ev.ax_0.` offers matplotlib's
|
|
316
|
+
own methods and signatures, because an axes *is* an `Axes`.
|
|
317
|
+
|
|
318
|
+
Ordinary typing rather than an editor plugin, so it works wherever you work.
|
|
319
|
+
Verified by running a type checker over a project iterlab generated:
|
|
320
|
+
`ev.spectrum.plot` resolves to matplotlib's signature, `.value` to `float`,
|
|
321
|
+
`.text` to `str`, `.background` to `str | None`, and your own `ev.my_cache`
|
|
322
|
+
to `Any` with no error.
|
|
323
|
+
|
|
324
|
+
The generated module is read by type checkers and never at run time. Delete
|
|
325
|
+
it and everything still works.
|
|
326
|
+
|
|
327
|
+
**iterlab will not add the import to a file it did not write.** Everything it
|
|
328
|
+
puts in your file is appended, leaving what you wrote as an exact prefix, and
|
|
329
|
+
an import goes at the top - that guarantee is worth more than a completion.
|
|
330
|
+
So a file without the import gets plain stubs, as before, and the guide has
|
|
331
|
+
the two lines that opt in.
|
|
332
|
+
|
|
333
|
+
### Fixed
|
|
334
|
+
|
|
335
|
+
- **The pan and zoom toolbar was missing under most plots.** It existed under
|
|
336
|
+
every one of them and was visible under almost none: Tk hands out a frame's
|
|
337
|
+
space in the order things are packed, and the canvas was packed first with
|
|
338
|
+
`expand=True`, so it took the lot and the toolbar was never mapped. Whether
|
|
339
|
+
one showed came down to whether that particular plot happened to be tall
|
|
340
|
+
enough, which is why it looked like the *second* axes was special.
|
|
341
|
+
|
|
342
|
+
Packed before the canvas now, which is the whole fix.
|
|
343
|
+
|
|
344
|
+
The tests that covered this asked whether the toolbar widget existed. It did.
|
|
345
|
+
They now ask whether it is on screen, for plots of three different heights and
|
|
346
|
+
across a mode switch, and the old order fails all four.
|
|
347
|
+
|
|
348
|
+
## [1.7.0] — 2026-09-13
|
|
349
|
+
|
|
350
|
+
### Changed
|
|
351
|
+
|
|
352
|
+
- **Renaming an element now follows it through your code.** It used to rename
|
|
353
|
+
the element's handlers and nothing else, which left every `ev.old_tag` in the
|
|
354
|
+
file pointing at an element that no longer existed — working code turned into
|
|
355
|
+
a runtime error the next time that line ran.
|
|
356
|
+
|
|
357
|
+
A rename now moves the handlers, attribute access (`ev.old`, and anything
|
|
358
|
+
else on the left of the dot), whole-word mentions in comments, and whole-word
|
|
359
|
+
mentions in strings. The last of those is how `ev.old` written inside an
|
|
360
|
+
f-string is reached, which matters because the generated stub is exactly that
|
|
361
|
+
shape. The properties panel reports what it rewrote, because editing someone
|
|
362
|
+
else's file quietly is not a thing to do twice.
|
|
363
|
+
|
|
364
|
+
**A name matches whole or not at all.** With `cmdRun` and `cmdRunAlgorithm`
|
|
365
|
+
both on the canvas, renaming the first to `cmdRunData` leaves the second
|
|
366
|
+
untouched everywhere — handler, attribute and prose — and leaves your own
|
|
367
|
+
`ev.cmdRun_cache` alone as well. A text substitution rewrites all three and
|
|
368
|
+
silently unwires an element you never touched; that is why the work is driven
|
|
369
|
+
by the tokenizer rather than by `str.replace`, and why swapping in the naive
|
|
370
|
+
version fails eight tests.
|
|
371
|
+
|
|
372
|
+
Deliberately untouched: a bare local that happens to share the name. Nothing
|
|
373
|
+
can distinguish it from a coincidence, so the dot is what a reference is
|
|
374
|
+
recognized by.
|
|
375
|
+
|
|
376
|
+
Unchanged: a file that will not parse is still refused outright, and line
|
|
377
|
+
endings are still preserved to the byte.
|
|
378
|
+
|
|
379
|
+
## [1.6.0] — 2026-09-13
|
|
380
|
+
|
|
381
|
+
### Changed
|
|
382
|
+
|
|
383
|
+
- **One window, and switching modes no longer moves it.** The editor and the
|
|
384
|
+
running interface are now exactly the same size at all times. The toolbar
|
|
385
|
+
takes its room from inside the window instead of being added beside it.
|
|
386
|
+
|
|
387
|
+
That leaves the canvas a different *shape* from the interface, and positions
|
|
388
|
+
are fractions — an element drawn on a canvas of the wrong shape comes out
|
|
389
|
+
stretched when it runs. So the canvas keeps the interface's proportions and
|
|
390
|
+
gives up size: the largest rectangle of that shape which fits beside the
|
|
391
|
+
toolbar, centred, with the backdrop showing around it. The white rectangle is
|
|
392
|
+
the window you will run in; the grey is the room the toolbar borrowed.
|
|
393
|
+
|
|
394
|
+
What this replaces: the editor window was the interface *plus* the toolbar,
|
|
395
|
+
which meant every mode switch resized the window — and every plot on screen
|
|
396
|
+
re-rendered for it. Switching now resizes nothing, so that cost is gone for
|
|
397
|
+
good rather than merely reduced.
|
|
398
|
+
|
|
399
|
+
The editor's height floor is gone with it. A short window makes for a short
|
|
400
|
+
toolbar, and the toolbar scrolls; it has been a scrolling column since 0.13.0
|
|
401
|
+
for exactly this reason.
|
|
402
|
+
|
|
403
|
+
- **Folding the toolbar grows the canvas** instead of narrowing the window. The
|
|
404
|
+
window cannot move — it is the interface's size — so the room the toolbar
|
|
405
|
+
gives up goes to the canvas, at the same proportions. Folding is now a way to
|
|
406
|
+
see your layout bigger.
|
|
407
|
+
|
|
408
|
+
- **A new project opens at half your screen**, rather than a fixed 800x450.
|
|
409
|
+
That size is a dialog on an ordinary monitor and a postage stamp on a large
|
|
410
|
+
one, and no fixed number can be right for both a laptop and a 4K display.
|
|
411
|
+
|
|
412
|
+
Only at creation. An existing project opens at the size it was left at, and
|
|
413
|
+
nothing re-decides that for you.
|
|
414
|
+
|
|
415
|
+
- **The editor backdrop is a shade darker than the sidebar.** The canvas is a
|
|
416
|
+
picture of the run window and its edge has to be findable; against the
|
|
417
|
+
sidebar's own colour, a white canvas had almost no edge at all.
|
|
418
|
+
|
|
419
|
+
### Fixed
|
|
420
|
+
|
|
421
|
+
- **Toggling modes filled the Tcl interpreter with images.** Each plot's
|
|
422
|
+
pan/zoom toolbar holds fifteen Tk images, and destroying the widgets released
|
|
423
|
+
none of them: the objects owning them sit in reference cycles, so they stayed
|
|
424
|
+
until a full garbage collection happened to run. Ten round trips over three
|
|
425
|
+
plots left 135 behind. Enough of them and Tk dies with an access violation
|
|
426
|
+
while building something unrelated — which is how this was found, in a test
|
|
427
|
+
suite that kept falling over in a file that had nothing to do with it.
|
|
428
|
+
|
|
429
|
+
Released on teardown now, where the canvas's event connections were already
|
|
430
|
+
being released for the same reason. Growth over ten round trips: 135 images
|
|
431
|
+
before, 6 after.
|
|
432
|
+
|
|
433
|
+
- **A property field below the fold could not be typed into.** Tk unmaps a
|
|
434
|
+
canvas window that is scrolled out of view, and an unmapped widget takes no
|
|
435
|
+
focus — so in a toolbar too short to show everything, the keys went nowhere
|
|
436
|
+
and the value was silently never committed. Fields are now scrolled into view
|
|
437
|
+
when they take focus, and opening the **More** drawer brings the drawer with
|
|
438
|
+
it rather than opening it somewhere you cannot see.
|
|
439
|
+
|
|
440
|
+
## [1.5.1] — 2026-09-12
|
|
441
|
+
|
|
442
|
+
### Fixed
|
|
443
|
+
|
|
444
|
+
- **Switching back to the interface got slower, and it was the plots redrawing
|
|
445
|
+
twice.** Both modes come from one remembered size, so every switch now
|
|
446
|
+
resizes the window by the toolbar's width. `geometry` only *asks* for a size —
|
|
447
|
+
Tk applies it on a later pass — so the new mode was built at the old width and
|
|
448
|
+
every plot on screen rendered again when the resize finally landed.
|
|
449
|
+
|
|
450
|
+
Measured on three plots, per switch:
|
|
451
|
+
|
|
452
|
+
| | canvas renders | in rendering | switch |
|
|
453
|
+
|---|---|---|---|
|
|
454
|
+
| before the toolbar change | 6 | 78 ms | 133 ms |
|
|
455
|
+
| after it | 9 | 115 ms | 161 ms |
|
|
456
|
+
| now | 6 | 70 ms | 114 ms |
|
|
457
|
+
|
|
458
|
+
It is one extra render of every plot, so it costs whatever your plots cost:
|
|
459
|
+
barely visible on two small ones, a wait on a screenful.
|
|
460
|
+
|
|
461
|
+
The window is now sized and the resize allowed to land *before* the new mode
|
|
462
|
+
is built. That means running the event loop mid-switch, so a click on the top
|
|
463
|
+
bar can arrive between teardown and the new interface existing — `App.busy`
|
|
464
|
+
refuses one while a switch is part-built, rather than letting a rebuild start
|
|
465
|
+
inside a rebuild and tear down what the outer one is holding.
|
|
466
|
+
|
|
467
|
+
Held by a test that counts renders rather than timing them, because a timing
|
|
468
|
+
budget on a shared runner is a flake and the count is what changed.
|
|
469
|
+
|
|
470
|
+
- **The shipped example announced a version crossing to everyone who opened
|
|
471
|
+
it.** `examples/showcase.yaml` was stamped 1.4.0 and shipped in 1.5.0, so
|
|
472
|
+
iterlab correctly decided the file came from another version, said so, and
|
|
473
|
+
left two `.bak` files beside it. It now records the current version, and a
|
|
474
|
+
test keeps it there — it goes stale on every release by nature.
|
|
475
|
+
|
|
476
|
+
## [1.5.0] — 2026-09-12
|
|
477
|
+
|
|
478
|
+
### Added
|
|
479
|
+
|
|
480
|
+
- **A showcase project, in `examples/`.** Three plots — sines at several
|
|
481
|
+
frequencies, a scatter cloud, a bar chart with error bars — plus two boxes,
|
|
482
|
+
three buttons and the labels around them:
|
|
483
|
+
|
|
484
|
+
```console
|
|
485
|
+
iterlab examples/showcase
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
It is a sanity harness first: one command, and every element type that draws
|
|
489
|
+
is on screen doing something. Its `on_startup` builds the data and every
|
|
490
|
+
handler under it only draws, so editing the file and clicking **Redraw** shows
|
|
491
|
+
the loop the project exists for.
|
|
492
|
+
|
|
493
|
+
The suite opens it, runs its startup and uses its controls, because a curated
|
|
494
|
+
project is code nobody runs until someone does — which is exactly how
|
|
495
|
+
`tools/verify.py` came to spend several releases unable to start.
|
|
496
|
+
|
|
497
|
+
`examples/` now ships in the source distribution alongside `docs/`.
|
|
498
|
+
|
|
499
|
+
### Changed
|
|
500
|
+
|
|
501
|
+
- **The README shows the loop rather than describing it.** A screenshot of the
|
|
502
|
+
showcase project in both modes, with the code between them, under the opening
|
|
503
|
+
paragraph. It lives in `docs/` beside the logo, so it ships in the source
|
|
504
|
+
distribution and not in every wheel.
|
|
505
|
+
|
|
506
|
+
The description on PyPI is frozen into each release at upload time and is
|
|
507
|
+
never re-read from the repository, so a README edit reaches that page only
|
|
508
|
+
when a version is published. This is the release that carries it.
|
|
509
|
+
|
|
510
|
+
## [1.4.0] — 2026-09-11
|
|
511
|
+
|
|
512
|
+
### Changed
|
|
513
|
+
|
|
514
|
+
- **One size describes both modes, and the canvas is the run window.** The
|
|
515
|
+
editor canvas is now exactly the interface's pixels, and the editor window is
|
|
516
|
+
that plus the toolbar beside it. Resize either and the other follows.
|
|
517
|
+
|
|
518
|
+
The old model added the toolbar *and* applied a floor of its own (1080x760) to
|
|
519
|
+
the editor, so the two modes were different **shapes**. Positions are
|
|
520
|
+
fractions, so an element drawn square came out stretched when run. That, not
|
|
521
|
+
the forgetting, was the confusing part — the sizes were never comparable in
|
|
522
|
+
the first place.
|
|
523
|
+
|
|
524
|
+
The editor keeps a floor, but it no longer reaches the interface. The window
|
|
525
|
+
stays tall enough for the toolbar's own controls; below that height the canvas
|
|
526
|
+
holds its own size and the leftover shows as blank space under it. Tk does not
|
|
527
|
+
clip a column that does not fit - it silently leaves the bottom controls
|
|
528
|
+
unmapped - so without the floor the properties panel loses its lower half and
|
|
529
|
+
still looks complete. The interface itself now has the only floor that
|
|
530
|
+
constrains it (320x240).
|
|
531
|
+
|
|
532
|
+
- **Editor resizes are now saved**, reversing 1.4.0's earlier rule. That rule
|
|
533
|
+
existed because the editor window was not the interface's size; now it is,
|
|
534
|
+
minus a known allowance, so it can be read straight back out.
|
|
535
|
+
|
|
536
|
+
### Added
|
|
537
|
+
|
|
538
|
+
- **The toolbar folds to a strip.** Click **Toolbar** to fold it away and again
|
|
539
|
+
to bring it back. The window narrows by the difference, so the canvas keeps
|
|
540
|
+
exactly the pixels it had — folding tidies the desk without resizing the
|
|
541
|
+
interface. Called "Toolbar" rather than left as a bare chevron, because a
|
|
542
|
+
chevron on an empty strip does not say what expanding would get you.
|
|
543
|
+
|
|
544
|
+
Kept in the layout, so it travels with the project. Selecting an element while
|
|
545
|
+
folded does not open it: nothing moves unless the researcher moves it.
|
|
546
|
+
|
|
547
|
+
- **Layout schema 6 → 7** for the folded state, no-op migration; absent means
|
|
548
|
+
expanded, which is what every older file means.
|
|
549
|
+
|
|
550
|
+
- A test holds the two window allowances in step with the two panel widths they
|
|
551
|
+
stand for. They live in different modules, and if they drift the canvas
|
|
552
|
+
silently stops being the run window — which would go unnoticed, because
|
|
553
|
+
nothing would look broken.
|
|
554
|
+
|
|
555
|
+
- **A project records which iterlab last edited it, and is backed up when that
|
|
556
|
+
changes.** The layout carries an `iterlab_version` stamp; opening it with a
|
|
557
|
+
different version — newer *or* older — copies both files aside first, as
|
|
558
|
+
`demo.yaml.v1.3.0.bak` and `demo.py.v1.3.0.bak`. The version in the name is
|
|
559
|
+
the one that wrote them, since that is what the copy preserves.
|
|
560
|
+
|
|
561
|
+
Either direction, deliberately. The downgrade is the dangerous one: an older
|
|
562
|
+
build meets a key or an element type it has never heard of. An upgrade is
|
|
563
|
+
safer, because migrations run forward and are tested, but a migration is still
|
|
564
|
+
a rewrite of the researcher's layout.
|
|
565
|
+
|
|
566
|
+
The `.py` is copied and never otherwise touched. If a version change ever went
|
|
567
|
+
wrong across stub injection or a rename, that is the copy that would matter
|
|
568
|
+
most — a layout can be redrawn, an algorithm cannot.
|
|
569
|
+
|
|
570
|
+
An existing backup is not overwritten: the one already on disk is the older
|
|
571
|
+
and more original of the two. A folder that cannot be written to does not stop
|
|
572
|
+
the interface opening, since a folder iterlab cannot write is one it cannot
|
|
573
|
+
damage either — but it says so rather than failing silently.
|
|
574
|
+
|
|
575
|
+
A project made before this has no stamp, and that is the commonest crossing of
|
|
576
|
+
all, so its copies are named `.vunknown.bak` and it is announced like any
|
|
577
|
+
other. An early return on "no recorded version" made exactly that case silent,
|
|
578
|
+
which a test now prevents.
|
|
579
|
+
|
|
580
|
+
- **Layout schema 5 → 6** for the new key, with a no-op migration. An older file
|
|
581
|
+
simply has no stamp, which already means what it needs to mean.
|
|
582
|
+
|
|
583
|
+
### Fixed
|
|
584
|
+
|
|
585
|
+
- **The Gate 2 setup tool could not be started.** `tools/verify.py` called
|
|
586
|
+
`create_element(..., name=...)` several releases after that argument became
|
|
587
|
+
`tag`, so the manual pass raised `TypeError` before it drew anything. Both its
|
|
588
|
+
buttons also read "Click here!" once buttons gained a default label, while the
|
|
589
|
+
checklist says to click **Redraw** and **Break it**. Nothing noticed either,
|
|
590
|
+
because the only thing that runs this tool is a person about to do a pass —
|
|
591
|
+
and the results table records that none happened. The tool is now exercised by
|
|
592
|
+
the suite, including that its button labels are words the checklist actually
|
|
593
|
+
names.
|
|
594
|
+
|
|
595
|
+
- **The release gate could be satisfied by prose.** Gate 2 is the recorded
|
|
596
|
+
manual pass, and the check that asks whether it happened looked for the
|
|
597
|
+
version string anywhere in `VERIFICATION.md`. 1.4.0 passed it on the strength
|
|
598
|
+
of a checklist item reading "open a project made before 1.4.0" — so the one
|
|
599
|
+
automated question standing between an unverified build and an upload that
|
|
600
|
+
cannot be withdrawn was answered by a sentence about something else. It now
|
|
601
|
+
reads the *Recorded results* table, and a near miss such as `1.3.10` does not
|
|
602
|
+
answer for `1.3.1`.
|
|
603
|
+
|
|
604
|
+
- **An interface reopened at the default size instead of the size it was left
|
|
605
|
+
at.** The layout has always carried a `window` size and nothing ever wrote to
|
|
606
|
+
it, so it stayed at 800x450 forever and every launch opened there.
|
|
607
|
+
|
|
608
|
+
The editor appeared to remember, which is what made this easy to miss for so
|
|
609
|
+
long. It does not: it is forced up to a minimum that makes the palette and
|
|
610
|
+
properties panel fit, and that minimum happened to resemble the size people
|
|
611
|
+
were working at. Nothing was being remembered anywhere.
|
|
612
|
+
|
|
613
|
+
A resize in GUI mode is now written to the layout, debounced by 400 ms —
|
|
614
|
+
dragging a window edge fires `<Configure>` continuously, and saving per pixel
|
|
615
|
+
would rewrite the file hundreds of times for one drag. An unchanged size
|
|
616
|
+
writes nothing, and a minimised window (Tk reports 1x1) is not a size anyone
|
|
617
|
+
chose.
|
|
618
|
+
|
|
619
|
+
**Editor resizes are deliberately not saved.** That window holds the sidebar
|
|
620
|
+
and has a floor, so it is not the interface's size — saving it would enlarge a
|
|
621
|
+
deliberately small interface the first time somebody opened the editor on it.
|
|
622
|
+
There is a test for exactly that.
|
|
623
|
+
|
|
624
|
+
Closing also cancels any pending save. One firing into a destroyed root is
|
|
625
|
+
what printed `invalid command name` on the way out, which I found while
|
|
626
|
+
testing this rather than after shipping it.
|
|
627
|
+
|
|
628
|
+
### Changed
|
|
629
|
+
|
|
630
|
+
- **A label looks like text rather than a card.** On the editor canvas it is
|
|
631
|
+
drawn in the canvas's own colour with a black edge; in the running interface
|
|
632
|
+
it takes the background behind it and has no edge.
|
|
633
|
+
|
|
634
|
+
Its editor tint used to be `#e7f2e9` against the file selector's `#e6f0ea` —
|
|
635
|
+
near enough that a glance could not tell them apart, which is what prompted
|
|
636
|
+
this. And in the interface a caption sat in a white box, which is exactly what
|
|
637
|
+
a caption should not look like.
|
|
638
|
+
|
|
639
|
+
Drawn in the canvas colour rather than with `fill=""`. Truly unfilled would
|
|
640
|
+
have been the obvious way to say "transparent", and it would have stopped the
|
|
641
|
+
label being selectable: an unfilled canvas rectangle is only hit on its
|
|
642
|
+
outline, so it would have been clickable on the border and dead in the middle.
|
|
643
|
+
Same colour as the canvas is indistinguishable and stays clickable, and two
|
|
644
|
+
tests hold that line.
|
|
645
|
+
|
|
646
|
+
Tk has no real transparency, so "transparent" in the interface means painting
|
|
647
|
+
the parent's own colour. A background or edge set by researcher code still
|
|
648
|
+
wins — this is only the default.
|
|
649
|
+
|
|
650
|
+
- **Buttons and both selectors now default to the label's height.** All four are
|
|
651
|
+
one line of text, so a row of them lines up without anyone resizing anything.
|
|
652
|
+
Widths still differ, because caption length is what actually varies:
|
|
653
|
+
"Select a Folder" needs more room than "Click here!". Named `LINE_HEIGHT` and
|
|
654
|
+
shared, with a test pinning it so the four cannot drift apart again.
|
|
655
|
+
|
|
656
|
+
The text boxes are deliberately left taller: a field someone types into wants
|
|
657
|
+
more room than a caption they only read.
|
|
658
|
+
|
|
659
|
+
**One consequence, measured rather than assumed.** At the default 800x450
|
|
660
|
+
window a caption needs 16 px and 0.03 of the content area gives 12, so a
|
|
661
|
+
button's text clips there. From roughly 800x720 upward it fits comfortably
|
|
662
|
+
(20 px and rising). The old 0.04 gave exactly 16 px at the default size, which
|
|
663
|
+
is why this did not show before. A label has always been 0.03 and has always
|
|
664
|
+
clipped at that size; this makes buttons match it in both respects.
|
|
665
|
+
|
|
666
|
+
- **Adding an element is now a deliberate two-step act: pick a type, then place
|
|
667
|
+
it.** The palette starts with nothing armed and returns to that after each
|
|
668
|
+
placement, so one pick puts down one element and the highlight clears.
|
|
669
|
+
|
|
670
|
+
A type used to be armed permanently, defaulting to the first in the list, so
|
|
671
|
+
*any* click on the canvas background produced an element — including the click
|
|
672
|
+
a researcher meant as "get out of what I was doing". They then had to find the
|
|
673
|
+
stray element and delete it, and the most likely place for it to land was
|
|
674
|
+
underneath something else.
|
|
675
|
+
|
|
676
|
+
With nothing armed, a background click does what a background click normally
|
|
677
|
+
does: commits whatever was being typed, drops the selection, and takes the
|
|
678
|
+
focus. Existing elements are still selectable, movable and deletable — the
|
|
679
|
+
canvas is not inert, it just does not manufacture things.
|
|
680
|
+
|
|
681
|
+
### Added
|
|
682
|
+
|
|
683
|
+
- **Hovering an element in the editor names its tag.** A button reading "Click
|
|
684
|
+
here!" gives no clue whether it is `cmd_0` or `run_fit`, and that name is what
|
|
685
|
+
the researcher's code uses — so the tooltip answers where the question is
|
|
686
|
+
asked, rather than making them select the element and read the properties
|
|
687
|
+
panel.
|
|
688
|
+
|
|
689
|
+
Shown for everything that displays text, including the two selectors. An axes
|
|
690
|
+
is left out on purpose: it already has its tag drawn on it, so a tooltip would
|
|
691
|
+
only repeat what is there.
|
|
692
|
+
|
|
693
|
+
Faster than the top-bar tooltips (200 ms against 450 ms), because the pointer
|
|
694
|
+
is already on the thing being asked about and the answer is one word. Not
|
|
695
|
+
instant: zero delay would flicker across the canvas on any movement. It holds
|
|
696
|
+
still once shown rather than following the pointer, and gets out of the way on
|
|
697
|
+
a press or a drag.
|
|
698
|
+
|
|
699
|
+
Canvas items cannot carry `<Enter>` and `<Leave>` the way widgets can, so this
|
|
700
|
+
is driven from the motion handler that already reports what a press would do.
|
|
701
|
+
|
|
702
|
+
### Fixed
|
|
703
|
+
|
|
704
|
+
- **An element with no text showed its tag instead of nothing.** Clearing a
|
|
705
|
+
label's text gave a label reading `lbl_0`; the same applied to a button and to
|
|
706
|
+
the two selectors.
|
|
707
|
+
|
|
708
|
+
It was deliberate once. In the first implementation a newly drawn element had
|
|
709
|
+
no text at all, so without the fallback it was an invisible rectangle. Every
|
|
710
|
+
type has carried a real default since 1.1.0 — "Information:", "Click here!" —
|
|
711
|
+
which means the fallback could only fire when somebody had *deliberately*
|
|
712
|
+
cleared the text, and that is the one moment it is certainly not what they
|
|
713
|
+
meant. A blank status line that fills in later is an ordinary thing to want.
|
|
714
|
+
|
|
715
|
+
**The editor still shows the tag** on an element with no text, and that is not
|
|
716
|
+
an oversight: there you are working on the elements themselves, and one with
|
|
717
|
+
nothing in it still has to be findable and clickable on the canvas. The editor
|
|
718
|
+
labels what you are editing; the interface shows what you wrote.
|
|
719
|
+
|
|
720
|
+
Nothing changes about what a new element says.
|
|
721
|
+
|
|
722
|
+
## [1.3.1] — 2026-09-09
|
|
723
|
+
|
|
724
|
+
Repository only. Nothing here changes the installed package, so 1.3.0 on PyPI is
|
|
725
|
+
not defective and needs no replacement.
|
|
726
|
+
|
|
727
|
+
### Fixed
|
|
728
|
+
|
|
729
|
+
- **CI had been red on Linux since 1.2.0, and 1.3.0 was published anyway.**
|
|
730
|
+
|
|
731
|
+
The failure was in a test, not in iterlab: it typed a filename by generating
|
|
732
|
+
key events with the raw character as the keysym, and X11 wants keysym *names*
|
|
733
|
+
— `.` is `period` there. Windows Tk accepts the character, so the local suite
|
|
734
|
+
passed on Windows every time while the Linux job failed. Characters now map to
|
|
735
|
+
the names Tk knows on every platform.
|
|
736
|
+
|
|
737
|
+
This is the second defect of exactly this shape. The first was `size_nw_se`,
|
|
738
|
+
a cursor name Windows accepts and X11 does not, which CI also caught and which
|
|
739
|
+
is guarded by a test asserting every cursor name is valid on the running
|
|
740
|
+
platform. There is now a matching test for keysyms, next to it.
|
|
741
|
+
|
|
742
|
+
The 1.2.0 run failed for an unrelated reason — `apt-get update` could not
|
|
743
|
+
fetch its indexes on the runner. Infrastructure, not code, but it meant the
|
|
744
|
+
first red run was easy to wave away, and the next two were not looked at.
|
|
745
|
+
|
|
746
|
+
### Added
|
|
747
|
+
|
|
748
|
+
- **`tools/preflight.py`**, which asks every question that must be answered
|
|
749
|
+
before publishing: clean tree, commit pushed, **CI green for this exact
|
|
750
|
+
commit**, artifacts present and matching the declared version with no stale
|
|
751
|
+
ones beside them, `twine check`, README links resolving anonymously, and a
|
|
752
|
+
recorded Gate 2 pass. Non-zero exit means do not upload.
|
|
753
|
+
|
|
754
|
+
The constitution already said this gate is "absolute rather than advisory".
|
|
755
|
+
It was advisory in practice because nothing enforced it — the local suite was
|
|
756
|
+
green each time, and nobody opened the run that tests the platform the
|
|
757
|
+
developer is not using. A check that depends on someone remembering to look is
|
|
758
|
+
not a gate.
|
|
759
|
+
|
|
760
|
+
Gate 2 is warned about rather than enforced: only a person can perform it, so
|
|
761
|
+
a tool can ask whether it happened but cannot honestly refuse on its behalf.
|
|
762
|
+
|
|
763
|
+
## [1.3.0] — 2026-09-09
|
|
764
|
+
|
|
765
|
+
### Changed
|
|
766
|
+
|
|
767
|
+
- **Text and number boxes fire on a committed value, not on every keystroke.**
|
|
768
|
+
Enter always runs the handler; leaving the box runs it only if the value
|
|
769
|
+
actually changed, so clicking past a box on the way somewhere else does
|
|
770
|
+
nothing. The generated stub is now `on_changed_<tag>`.
|
|
771
|
+
|
|
772
|
+
Per keystroke redraws once for `1`, again for `10`, again for `100` — two of
|
|
773
|
+
those plots are of a number nobody meant, and each one costs whatever the
|
|
774
|
+
researcher's handler costs.
|
|
775
|
+
|
|
776
|
+
**This was already decided, and I missed it.** The spec has carried a note
|
|
777
|
+
since before boxes existed: a text box "commits its value on Enter or on
|
|
778
|
+
leaving the field, never on every keystroke ... recorded here so the
|
|
779
|
+
convention is not re-litigated when text boxes are built". 1.2.0 re-litigated
|
|
780
|
+
it by accident, because nobody re-read the note when the element was finally
|
|
781
|
+
built. The note now records that too — a written-down decision only helps if
|
|
782
|
+
it is consulted at the moment the thing it describes gets made.
|
|
783
|
+
|
|
784
|
+
### Added
|
|
785
|
+
|
|
786
|
+
- **A `changed` interaction**, joining click, hover, move and key. Universal in
|
|
787
|
+
the same sense as the others: any element may have a handler written for it,
|
|
788
|
+
and one whose value never changes simply never fires — indistinguishable from
|
|
789
|
+
an element nobody wrote a handler for. It exists because "the researcher
|
|
790
|
+
finished entering a value" is not the same question as "a key went down", and
|
|
791
|
+
cannot be built out of `key` without every researcher reimplementing the same
|
|
792
|
+
debounce. FR-017a is amended accordingly.
|
|
793
|
+
|
|
794
|
+
Renaming an element carries its `on_changed_` handler, like every other.
|
|
795
|
+
|
|
796
|
+
- `on_key_<tag>` is untouched and still fires per keystroke for anyone who wants
|
|
797
|
+
it, so nothing written against 1.2.0 stops working.
|
|
798
|
+
|
|
799
|
+
## [1.2.0] — 2026-09-09
|
|
800
|
+
|
|
801
|
+
*Reached GitHub but not PyPI; superseded by 1.3.0.*
|
|
802
|
+
|
|
803
|
+
### Added
|
|
804
|
+
|
|
805
|
+
- **Text and number boxes now generate an `on_key_<tag>` handler**, firing on
|
|
806
|
+
every keystroke, and the generated one prints what was typed — `.text` for a
|
|
807
|
+
text box, `.value` for a number box.
|
|
808
|
+
|
|
809
|
+
This reverses the call made in 1.1.0, where boxes got no stub on the reasoning
|
|
810
|
+
that a box is read when something *else* happens. That covers one use and
|
|
811
|
+
misses the better one: a plot that follows a value as it is typed, with no
|
|
812
|
+
button to press. A researcher who wants the click-then-read pattern deletes
|
|
813
|
+
the handler; one who wants live updating would otherwise have had to know that
|
|
814
|
+
`on_key_<tag>` exists at all.
|
|
815
|
+
|
|
816
|
+
A half-typed number is safe to read: `""`, `"-"` and `"0."` all report `0`
|
|
817
|
+
rather than raising, so a handler firing mid-keystroke cannot fault the
|
|
818
|
+
session.
|
|
819
|
+
|
|
820
|
+
- **The generated file is runnable.** Every new `demo.py` ends with:
|
|
821
|
+
|
|
822
|
+
```python
|
|
823
|
+
if __name__ == "__main__":
|
|
824
|
+
import iterlab
|
|
825
|
+
|
|
826
|
+
iterlab.run(__file__)
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
so an IDE's run button opens the interface, with no terminal and nothing to
|
|
830
|
+
remember. It passes `__file__` rather than a name, so it works from any
|
|
831
|
+
working directory and survives renaming the pair. It cannot loop: iterlab
|
|
832
|
+
executes the researcher's module under a name of its own, so `__name__` is
|
|
833
|
+
only `"__main__"` for the copy they launched — proven by a test that loads the
|
|
834
|
+
file the way the loader does.
|
|
835
|
+
|
|
836
|
+
Interfaces created before this do not get it retrofitted. iterlab adds
|
|
837
|
+
handlers to a researcher's file and nothing else, and that rule is worth more
|
|
838
|
+
than the convenience.
|
|
839
|
+
|
|
840
|
+
### Fixed
|
|
841
|
+
|
|
842
|
+
- **A typed property could still be silently discarded**, and 1.1.1's fix for
|
|
843
|
+
that is what made it reachable.
|
|
844
|
+
|
|
845
|
+
Rebuilding the properties panel destroys its fields, and Tk fires `<FocusOut>`
|
|
846
|
+
at a focused widget as it goes. That event is *queued*: it arrives after the
|
|
847
|
+
rebuild has finished and the panel's busy flag is clear, so the handler
|
|
848
|
+
commits into whichever element is now selected. 1.1.1 added commit points on
|
|
849
|
+
selection and on canvas press, which multiplied the rebuilds and turned a
|
|
850
|
+
latent race into one that fired often. The old fields are now unbound before
|
|
851
|
+
they are destroyed, so a stale event has nothing to run.
|
|
852
|
+
|
|
853
|
+
Found by a test that failed roughly one run in five and could not be
|
|
854
|
+
reproduced by running its own file — it needed another file to have run first.
|
|
855
|
+
Confirmed as mine by running the same loop against 1.1.0 in a worktree: twenty
|
|
856
|
+
clean runs there, three failures in fifteen on the current tree.
|
|
857
|
+
|
|
858
|
+
### Changed
|
|
859
|
+
|
|
860
|
+
- **New handler stubs are inserted above the `if __name__` block** rather than
|
|
861
|
+
appended after it. That block reads as the end of the file, and appending
|
|
862
|
+
below it would push it further from the bottom with every element drawn. The
|
|
863
|
+
guard is matched structurally, so `'__main__'`, extra spaces or a reversed
|
|
864
|
+
comparison all count; only a *trailing* guard qualifies, since one mid-file is
|
|
865
|
+
not a launcher and inserting above it would drop a stub into the middle of the
|
|
866
|
+
researcher's code. Any comment directly above it travels with it. A file
|
|
867
|
+
without a guard is appended to exactly as before.
|
|
868
|
+
|
|
869
|
+
## [1.1.1] — 2026-09-09
|
|
870
|
+
|
|
871
|
+
### Fixed
|
|
872
|
+
|
|
873
|
+
- **A typed property was lost unless focus went to another property field.**
|
|
874
|
+
Editing a value and then clicking an element, the canvas, or a palette card
|
|
875
|
+
silently discarded it. Tabbing to the next field worked, which is what made it
|
|
876
|
+
look intermittent rather than broken.
|
|
877
|
+
|
|
878
|
+
`<FocusOut>` cannot carry this on its own. Tk fires it when another *widget*
|
|
879
|
+
takes keyboard focus, and most of what a researcher clicks next does not take
|
|
880
|
+
it — a Canvas, an element drawn on it and a palette card are all unfocusable.
|
|
881
|
+
Even when focus does move, Tk delivers the event on the next pass through the
|
|
882
|
+
event loop, by which time the panel has been rebuilt for the new selection and
|
|
883
|
+
the entry holding the edit no longer exists. The canvas already called
|
|
884
|
+
`focus_set()` first thing on a press, which looked like it should have covered
|
|
885
|
+
this and could not.
|
|
886
|
+
|
|
887
|
+
Committing is now explicit and synchronous on the events where focus really
|
|
888
|
+
leaves: a press on the canvas, a palette choice, opening the **More** drawer.
|
|
889
|
+
|
|
890
|
+
- **The reported extension filter was this same bug.** Typing `pdf` into
|
|
891
|
+
**Types** and clicking away never saved it, so the chooser had nothing to
|
|
892
|
+
filter by and offered everything. It works once the value is committed.
|
|
893
|
+
|
|
894
|
+
- **An editor change to `extensions` lost to a value set from code.** Found
|
|
895
|
+
while checking the above. Session state is deliberately preserved across a
|
|
896
|
+
mode switch, and an explicit edit in the editor is supposed to beat it — the
|
|
897
|
+
rule already covered `label` and `style`, and `extensions` was simply missed
|
|
898
|
+
when it was added a version ago.
|
|
899
|
+
|
|
900
|
+
### Notes
|
|
901
|
+
|
|
902
|
+
- The first attempt at the commit fix also committed inside `select`, which is
|
|
903
|
+
the refresh path that a drag, a resize and an apply all end on. That wrote the
|
|
904
|
+
panel's now-stale position back over the change that had just happened, and a
|
|
905
|
+
dragged element snapped home — 15 tests caught it, and the suite time went from
|
|
906
|
+
63s to 161s from the churn. There is now a test for that specific regression,
|
|
907
|
+
and one asserting that clicking about without typing does not rewrite the
|
|
908
|
+
layout file at all.
|
|
909
|
+
|
|
910
|
+
## [1.1.0] — 2026-09-09
|
|
911
|
+
|
|
912
|
+
*Reached GitHub but not PyPI; published as part of 1.1.1.*
|
|
913
|
+
|
|
914
|
+
### Added
|
|
915
|
+
|
|
916
|
+
- **Two new element types: `file_select` and `folder_select`.** Each is a button
|
|
917
|
+
that opens the operating system's own chooser — the one a researcher already
|
|
918
|
+
knows, with their places and network drives in it.
|
|
919
|
+
|
|
920
|
+
The first of each takes the bare tag, `fileselect` and `folderselect`, with no
|
|
921
|
+
`_0`: an interface almost always has exactly one, and a number on the only one
|
|
922
|
+
of something is noise that then appears in every handler mentioning it. A
|
|
923
|
+
second becomes `fileselect_1`.
|
|
924
|
+
|
|
925
|
+
`.path` is the choice. It is `""` before anything is picked **and** when what
|
|
926
|
+
was picked has since been deleted or moved — a path that no longer resolves is
|
|
927
|
+
worse than none, because `if ev.fileselect.path:` would pass and the open
|
|
928
|
+
would fail on something that looks perfectly valid. The chooser still reopens
|
|
929
|
+
where the file used to be, since a renamed file is usually still beside it.
|
|
930
|
+
|
|
931
|
+
The handler fires **after** a choice, so `.path` is set when researcher code
|
|
932
|
+
runs. Cancelling does nothing at all: no handler, no change.
|
|
933
|
+
|
|
934
|
+
The caption stays "Select a File"; showing the selection is one line in the
|
|
935
|
+
researcher's handler, and the generated stub shows it. How the interface looks
|
|
936
|
+
stays theirs to decide.
|
|
937
|
+
|
|
938
|
+
- **`extensions` on the file selector**, in the editor as **Types** and in code
|
|
939
|
+
as `ev.fileselect.extensions`. Comma-separated, forgiving about `.TXT`,
|
|
940
|
+
`*.csv` and stray spaces, blank meaning every file. "All files" is always
|
|
941
|
+
offered alongside, because a filter nobody can escape is a trap the moment one
|
|
942
|
+
file was saved with the wrong suffix.
|
|
943
|
+
|
|
944
|
+
- **Selections persist across a hard reset and across the process.** Stored in
|
|
945
|
+
the user's own state directory keyed by the interface's path, never in the
|
|
946
|
+
layout file: `demo.yaml` describes the interface, and writing a runtime choice
|
|
947
|
+
into it would make it a log of what happened and a spurious diff in everyone's
|
|
948
|
+
repository. The project folder stays the two files it has always been. The
|
|
949
|
+
accepted cost is that moving or copying a project starts fresh, which behaves
|
|
950
|
+
exactly like a first run.
|
|
951
|
+
|
|
952
|
+
Nothing there can raise on the researcher's account: a missing file, unreadable
|
|
953
|
+
JSON, a read-only profile all mean "nothing remembered", which is a state every
|
|
954
|
+
caller already handles because it is what a first run looks like.
|
|
955
|
+
|
|
956
|
+
- `ui/dialogs.py`, one seam for the only modal dialogs iterlab opens. The test
|
|
957
|
+
suite's ban on `tkinter.filedialog` stays exactly as it was, so a path that
|
|
958
|
+
reaches a real chooser without being replaced fails loudly instead of hanging.
|
|
959
|
+
It also normalises Tk's mix of `""`, `()` and `None` for a cancelled dialog
|
|
960
|
+
into one shape.
|
|
961
|
+
|
|
962
|
+
- `Event.path`, carrying what was just chosen.
|
|
963
|
+
|
|
964
|
+
### Changed
|
|
965
|
+
|
|
966
|
+
- **Layout schema 4 → 5**, no-op migration. Nothing in an existing file changes;
|
|
967
|
+
the version moves so a version-4 build refuses a file containing a type it has
|
|
968
|
+
never heard of rather than reporting it as a defect in the layout.
|
|
969
|
+
|
|
970
|
+
## [1.0.0] — 2026-09-08
|
|
971
|
+
|
|
972
|
+
**First public release.** `pip install iterlab`.
|
|
973
|
+
|
|
974
|
+
Numbered 1.0.0 rather than continuing the 0.x line because this is the first
|
|
975
|
+
version anyone else can install: a 0.21 would read as accumulated churn, where
|
|
976
|
+
what it actually marks is the point the tool became available.
|
|
977
|
+
|
|
978
|
+
Everything in the entries below shipped in this one release. They were written
|
|
979
|
+
as the work happened and are kept as the development record; nothing before this
|
|
980
|
+
had ever been published.
|
|
981
|
+
|
|
982
|
+
### What this version commits to
|
|
983
|
+
|
|
984
|
+
1.0.0 is a promise under semantic versioning, so the following are the public
|
|
985
|
+
surface and will not change without a major bump:
|
|
986
|
+
|
|
987
|
+
- the `on_<interaction>_<tag>` handler naming convention, and `ev` as the first
|
|
988
|
+
argument to every handler
|
|
989
|
+
- `ev.<tag>` reaching an element, and `.text` on every element that shows text
|
|
990
|
+
- an axes element being a real `matplotlib.axes.Axes`
|
|
991
|
+
- the `iterlab <name>` command and `iterlab.run(name)`
|
|
992
|
+
- the layout schema, which carries its own version and migrates forward
|
|
993
|
+
|
|
994
|
+
The layout schema is versioned separately and independently: a file written by
|
|
995
|
+
an older build is migrated on open, and one written by a newer build is refused
|
|
996
|
+
rather than half-understood.
|
|
997
|
+
|
|
998
|
+
### Changed
|
|
999
|
+
|
|
1000
|
+
- **Ordinary semantic versioning resumes.** Below 1.0.0 the constitution
|
|
1001
|
+
suspended the MINOR/PATCH distinction and bumped MINOR on *every* change, so
|
|
1002
|
+
that the version answered "is the thing in front of me the thing I just
|
|
1003
|
+
changed?" during hand testing. From here PATCH means a fix, MINOR means an
|
|
1004
|
+
addition, MAJOR means a break — which is what a version has to mean once other
|
|
1005
|
+
people depend on it.
|
|
1006
|
+
- `Development Status` classifier moves from `3 - Alpha` to `4 - Beta`. Claiming
|
|
1007
|
+
1.0.0 while advertising alpha would contradict itself. The README's "early,
|
|
1008
|
+
and honest about it" stands: this is a first public release, not a mature one.
|
|
1009
|
+
|
|
1010
|
+
## [0.21.1] — not published
|
|
1011
|
+
|
|
1012
|
+
Renumbered to 1.0.0 before publishing.
|
|
1013
|
+
|
|
1014
|
+
Everything in the entries below shipped in this one release; they were written as
|
|
1015
|
+
the work happened and are kept as the development record. Nothing before this had
|
|
1016
|
+
ever been published.
|
|
1017
|
+
|
|
1018
|
+
### Fixed
|
|
1019
|
+
|
|
1020
|
+
- **The README logo was a broken image.** The repository is private, and
|
|
1021
|
+
`raw.githubusercontent.com` returns 404 for a private repository without a
|
|
1022
|
+
token — so the image failed for every viewer, including on GitHub. The file
|
|
1023
|
+
was present and pushed the whole time; the URL simply could not be fetched.
|
|
1024
|
+
|
|
1025
|
+
This is invisible to whoever owns the repository if they only ever check while
|
|
1026
|
+
signed in, and it is the same failure the README's `GUIDE.md`, `LICENSE` and
|
|
1027
|
+
`NOTICE` links have. All four resolve once the repository is public, which is
|
|
1028
|
+
also what the PyPI page needs, since PyPI renders the README anonymously.
|
|
1029
|
+
|
|
1030
|
+
### Added
|
|
1031
|
+
|
|
1032
|
+
- `tools/check_readme_links.py`, which fetches every external README link with
|
|
1033
|
+
no credentials at all — the way a stranger's browser does. It reports 4 of 4
|
|
1034
|
+
dead against a private repository and should report all clear before
|
|
1035
|
+
publishing. A broken logo on the page people arrive at first is not worth
|
|
1036
|
+
discovering after an upload that cannot be undone.
|
|
1037
|
+
|
|
1038
|
+
## [0.21.0] — 2026-09-08
|
|
1039
|
+
|
|
1040
|
+
*Published to PyPI, then superseded fourteen minutes later by 1.0.0.
|
|
1041
|
+
It is the earliest version installable from PyPI; 1.0.0 is the one to use.*
|
|
1042
|
+
|
|
1043
|
+
Everything in the entries below shipped in this one release; they were written
|
|
1044
|
+
as the work happened and are kept as the development record. Their "unreleased"
|
|
1045
|
+
labels are accurate for what they were at the time — nothing before this had
|
|
1046
|
+
ever been published.
|
|
1047
|
+
|
|
1048
|
+
### Changed
|
|
1049
|
+
|
|
1050
|
+
- Install instructions in `README.md` and `GUIDE.md` now say `pip install
|
|
1051
|
+
iterlab`, since that is true from this release onward. The guide keeps the
|
|
1052
|
+
source install for anyone who wants to change iterlab itself.
|
|
1053
|
+
- `README.md` links and the logo are absolute URLs. PyPI renders this README on
|
|
1054
|
+
its own page, where a repository-relative path resolves to nothing — the logo
|
|
1055
|
+
would have been a broken image and every link a 404, visible to everyone
|
|
1056
|
+
arriving at the project for the first time.
|
|
1057
|
+
- Added `Documentation`, `Repository`, `Changelog` and `Issues` project URLs, a
|
|
1058
|
+
3.13 classifier, and operating-system and environment classifiers.
|
|
1059
|
+
|
|
1060
|
+
## [0.20.2] — unreleased
|
|
1061
|
+
|
|
1062
|
+
### Documentation
|
|
1063
|
+
|
|
1064
|
+
- **The logo now heads `README.md` and `GUIDE.md`**, from `docs/logo.png`.
|
|
1065
|
+
|
|
1066
|
+
- **Both documents brought back in line with the code.** Everything below was
|
|
1067
|
+
wrong, not merely dated:
|
|
1068
|
+
|
|
1069
|
+
- `README.md` said `pip install iterlab`. It is not on PyPI, and the guide
|
|
1070
|
+
said so two paragraphs later in a different file. Now both give the
|
|
1071
|
+
repository install.
|
|
1072
|
+
- `README.md` claimed "two element types" with "text boxes, labels ... next".
|
|
1073
|
+
There are five, and text boxes and labels are two of them.
|
|
1074
|
+
- `GUIDE.md` told the reader to draw `ax_0` and `cmd_0` and then showed an
|
|
1075
|
+
example using `ev.spectrum` and `on_clicked_run_fit` — tags it had never
|
|
1076
|
+
asked anyone to create. The worked example now uses the tags it just named,
|
|
1077
|
+
and says renaming is available.
|
|
1078
|
+
- Two leftovers from a careless find-and-replace: "use **Restart reset**" and
|
|
1079
|
+
"press **Restart app**", for a button now called **Hard reset**.
|
|
1080
|
+
- "Buttons and labels carry these" under Styling, written before boxes
|
|
1081
|
+
existed and never revisited.
|
|
1082
|
+
- Stubs were described as generated for "buttons and plot areas", with
|
|
1083
|
+
"plot areas" long since renamed and boxes never mentioned.
|
|
1084
|
+
- The styling note said code-set style is lost when you "close and reopen".
|
|
1085
|
+
True, but it now survives a mode switch, which is the case a researcher
|
|
1086
|
+
actually meets.
|
|
1087
|
+
|
|
1088
|
+
- Every code example in the guide was executed against this build — startup,
|
|
1089
|
+
the click handler, all eleven style properties, `.text` on each type, and
|
|
1090
|
+
`.value` on a number box — rather than read over. No fault was raised by any
|
|
1091
|
+
of them.
|
|
1092
|
+
|
|
1093
|
+
## [0.20.1] — unreleased
|
|
1094
|
+
|
|
1095
|
+
### Fixed
|
|
1096
|
+
|
|
1097
|
+
- **A mode switch reset every element to its layout value.** Text typed into a
|
|
1098
|
+
box, and a caption, colour or enabled-state set from code, all reverted on the
|
|
1099
|
+
way back from the editor. Reported as "gui objects get reset when going to
|
|
1100
|
+
editor".
|
|
1101
|
+
|
|
1102
|
+
The session introduced in 0.12.0 kept `ev` and the contents of each plot, but
|
|
1103
|
+
not the widgets' own state — and a switch destroys every widget and builds new
|
|
1104
|
+
ones from the layout file, so anything the *running* interface had done was
|
|
1105
|
+
lost. The layout is where an element starts, not where it currently is.
|
|
1106
|
+
|
|
1107
|
+
Each handle can now report its presentation and have it restored; the session
|
|
1108
|
+
holds it across the switch. Programmatic style was reverting too, which was
|
|
1109
|
+
not in the report but is the same defect.
|
|
1110
|
+
|
|
1111
|
+
**An edit in the editor still wins.** The remembered value is recorded
|
|
1112
|
+
alongside the layout value it was based on, so if the researcher has since
|
|
1113
|
+
changed the caption or the colour themselves, the remembered one is dropped —
|
|
1114
|
+
editing a button's caption and having the old one come straight back would be
|
|
1115
|
+
its own bug report. Position is not presentation, so moving an element does
|
|
1116
|
+
not discard what it was showing.
|
|
1117
|
+
|
|
1118
|
+
A **hard reset** still clears everything, which is the difference between
|
|
1119
|
+
restarting and toggling.
|
|
1120
|
+
|
|
1121
|
+
14 tests; 10 of them fail against the unfixed code.
|
|
1122
|
+
|
|
1123
|
+
## [0.20.0] — unreleased
|
|
1124
|
+
|
|
1125
|
+
### Added
|
|
1126
|
+
|
|
1127
|
+
- **Two new element types: `text_box` and `number_box`.** A text box holds a
|
|
1128
|
+
line someone types; a number box refuses anything that is not a number.
|
|
1129
|
+
|
|
1130
|
+
The number box validates the *proposed* contents on each keystroke rather than
|
|
1131
|
+
correcting afterwards, so a rejected character never appears at all — no
|
|
1132
|
+
flicker, and the box is never momentarily holding something that is not a
|
|
1133
|
+
number. It deliberately accepts the half-written states a person passes
|
|
1134
|
+
through: `""`, `"-"`, `"."` and `"-."` are all on the way to a number, and
|
|
1135
|
+
refusing them would make a negative or a decimal impossible to type.
|
|
1136
|
+
|
|
1137
|
+
`.value` gives the number — `int` when it is a whole one, so
|
|
1138
|
+
`range(ev.val_0.value)` works without casting — and an empty box reads as `0`
|
|
1139
|
+
rather than raising, since someone who cleared it to retype is mid-edit, not
|
|
1140
|
+
mistaken. `.text` gives the same thing as a string.
|
|
1141
|
+
|
|
1142
|
+
Neither gets a generated stub, for the reason a label does not: a box is
|
|
1143
|
+
normally read when something *else* happens rather than reacted to keystroke
|
|
1144
|
+
by keystroke. Every interaction remains available to a hand-written handler.
|
|
1145
|
+
|
|
1146
|
+
- **`.text` on every element that shows text**, whatever kind it is. A button
|
|
1147
|
+
and a label keep their string in Tk's `-text` option and a box keeps it in a
|
|
1148
|
+
variable; `.text` hides that, so `ev.<tag>.text` works without first
|
|
1149
|
+
remembering what `<tag>` is.
|
|
1150
|
+
|
|
1151
|
+
### Changed
|
|
1152
|
+
|
|
1153
|
+
- **Default tags are now short and typed**: `cmd_0` for a button, `lbl_0` for a
|
|
1154
|
+
label, `edt_0` for a text box, `val_0` for a number box (`ax_0` unchanged).
|
|
1155
|
+
These are the shorthands a person would use themselves, so `ev.cmd_0` reads
|
|
1156
|
+
the way the code around it already does.
|
|
1157
|
+
|
|
1158
|
+
- **New elements come with working text**: a button says "Click here!" and a
|
|
1159
|
+
label says "Information:", rather than repeating their own tag. A button
|
|
1160
|
+
reading `cmd_0` is a placeholder the researcher has to fix before showing
|
|
1161
|
+
anyone; one reading "Click here!" is a control. The default button is slightly
|
|
1162
|
+
wider to fit its caption — a default that clips its own text is worse than one
|
|
1163
|
+
that is a little roomy.
|
|
1164
|
+
|
|
1165
|
+
- **Layout schema 3 → 4.** Nothing in an existing file changes and the migration
|
|
1166
|
+
is a no-op, but the version has to move: a file written now may contain a type
|
|
1167
|
+
a version-3 build has never heard of, and the version gate is what makes that
|
|
1168
|
+
build refuse the file cleanly rather than report an unknown element type as a
|
|
1169
|
+
defect in the researcher's layout.
|
|
1170
|
+
|
|
1171
|
+
## [0.19.1] — unreleased
|
|
1172
|
+
|
|
1173
|
+
### Fixed
|
|
1174
|
+
|
|
1175
|
+
- **The window icon did not appear.** Tk offers two mechanisms — `iconbitmap`
|
|
1176
|
+
with an `.ico` and `iconphoto` with a `PhotoImage` — and 0.18.0 applied both
|
|
1177
|
+
"for coverage". They do not layer: applied together to one window the title
|
|
1178
|
+
bar shows a blank grey square, which is worse than either alone and worse than
|
|
1179
|
+
doing nothing. Each works perfectly on its own.
|
|
1180
|
+
|
|
1181
|
+
Exactly one is applied now, chosen by platform: `iconbitmap` on Windows, so
|
|
1182
|
+
each size gets the frame drawn for it and the title bar shows the 16 px
|
|
1183
|
+
artwork rather than Tk squeezing down the 256; `iconphoto` elsewhere, which is
|
|
1184
|
+
what X11 and macOS honour. The other is tried only when the first *fails*, as
|
|
1185
|
+
a fallback rather than a supplement.
|
|
1186
|
+
|
|
1187
|
+
The test that existed asserted `apply()` returned True — which it happily did
|
|
1188
|
+
while producing an empty box. It is the same shape of defect as every wiring
|
|
1189
|
+
bug in this project: the mechanism was tested and the outcome was not. The
|
|
1190
|
+
test now counts which Tk calls are actually made and fails if both are, and
|
|
1191
|
+
Gate 2 gained an item to look at the title bar, since only a person can tell a
|
|
1192
|
+
drawn icon from a blank one.
|
|
1193
|
+
|
|
1194
|
+
## [0.19.0] — unreleased
|
|
1195
|
+
|
|
1196
|
+
### Changed
|
|
1197
|
+
|
|
1198
|
+
- **The icon is redrawn from a supplied logo**: a waveform ringed by two arcs
|
|
1199
|
+
chasing each other. The wave is the researcher's data, the ring is the loop
|
|
1200
|
+
they work inside, which is a better statement of the tool than the previous
|
|
1201
|
+
drawing managed.
|
|
1202
|
+
|
|
1203
|
+
Two things carry it. The ring takes an **angular** gradient whose colour run
|
|
1204
|
+
is mapped onto each arc's own sweep, so a tail is fully dark and an arrow head
|
|
1205
|
+
fully bright — spread over a half-turn instead, both ends land mid-blue and
|
|
1206
|
+
the heads lose their punch. The wave takes a **linear** gradient, because it
|
|
1207
|
+
travels where the ring turns.
|
|
1208
|
+
|
|
1209
|
+
The detail thresholds moved after looking at the frames magnified rather than
|
|
1210
|
+
guessing: at 64 px the dotted arcs had already collapsed into a grey fuzz that
|
|
1211
|
+
made the whole mark look dirty, so the full drawing now starts at 128.
|
|
1212
|
+
|
|
1213
|
+
**The 16 and 24 px frames invert** — a white wave on solid brand blue. A dark
|
|
1214
|
+
line on a near-white tile has almost no ink left to work with at that size and
|
|
1215
|
+
goes faint in a taskbar, where the light tile's own edge is lost too. It
|
|
1216
|
+
trades a little consistency between sizes for a mark that can be seen, and
|
|
1217
|
+
nobody views the 16 and the 256 side by side.
|
|
1218
|
+
|
|
1219
|
+
## [0.18.0] — unreleased
|
|
1220
|
+
|
|
1221
|
+
### Added
|
|
1222
|
+
|
|
1223
|
+
- **An application icon**, replacing Tk's default feather — which tells a
|
|
1224
|
+
researcher nothing and makes the window look like a stray interpreter in a
|
|
1225
|
+
taskbar full of real applications.
|
|
1226
|
+
|
|
1227
|
+
A plot with a loop: the rising curve is every plotting library's icon, and the
|
|
1228
|
+
circular arrow is what makes it this one, since iterating inside the interface
|
|
1229
|
+
rather than re-running a script is the whole product.
|
|
1230
|
+
|
|
1231
|
+
- `tools/make_icon.py`, which *is* the icon — checked in as the source rather
|
|
1232
|
+
than a binary somebody would have to open an image editor to change.
|
|
1233
|
+
|
|
1234
|
+
It draws at 8x and downsamples, and brushes strokes as overlapping discs
|
|
1235
|
+
rather than using `draw.line`, which leaves notches exactly where this curve
|
|
1236
|
+
turns. The `.ico` carries **three detail levels across seven sizes**: below
|
|
1237
|
+
48 px the axes are dropped and the brush fattens, and at 16 px only the curve
|
|
1238
|
+
survives. An icon is not one drawing scaled — the thin marks close into mud —
|
|
1239
|
+
and a test asserts the 16 px frame is not merely the 256 resampled.
|
|
1240
|
+
|
|
1241
|
+
Applied through both `iconphoto` (portable, honoured by X11 and macOS) and
|
|
1242
|
+
`iconbitmap` (what Windows uses for the title bar and taskbar, and crisper
|
|
1243
|
+
there). Neither can raise: an icon is decoration, and decoration must not be
|
|
1244
|
+
able to end a session. The `PhotoImage` is held for the life of the process,
|
|
1245
|
+
since Tk silently reverts to the feather when one is collected.
|
|
1246
|
+
|
|
1247
|
+
## [0.17.0] — unreleased
|
|
1248
|
+
|
|
1249
|
+
### Added
|
|
1250
|
+
|
|
1251
|
+
- **Hover text on the top-bar buttons.** Two of them differ only in how much
|
|
1252
|
+
they throw away, and a two-word label cannot carry that. `Tooltip` is drawn as
|
|
1253
|
+
a borderless toplevel that never takes focus.
|
|
1254
|
+
- **A "Screenshot" button**, writing a PNG beside the interface's own files as
|
|
1255
|
+
`demo-<date>-<time>.png`. It captures the **content area only** — the top bar
|
|
1256
|
+
is iterlab's furniture and has no business in a figure someone pastes into a
|
|
1257
|
+
report. No file dialog: a modal blocks the test suite outright, the same
|
|
1258
|
+
reason element creation does not ask for a name. Pillow already ships with
|
|
1259
|
+
matplotlib, so this adds no dependency. A machine that cannot grab the screen
|
|
1260
|
+
(headless Linux) reports it through the fault banner rather than taking the
|
|
1261
|
+
window down.
|
|
1262
|
+
- **A "More" drawer in the properties panel.** Only the tag, and the text for a
|
|
1263
|
+
button or label, are shown by default; position, size, colour, font and state
|
|
1264
|
+
are behind it. The set is declared per element type in
|
|
1265
|
+
`schema.BASIC_PROPERTIES`, so a future slider declares its range and starting
|
|
1266
|
+
position the same way a button declares its caption.
|
|
1267
|
+
|
|
1268
|
+
The advanced widgets are *built* either way and only packed or not, so
|
|
1269
|
+
committing an edit never depends on which fields the researcher happened to
|
|
1270
|
+
reveal. The drawer stays open across selections — someone adjusting colours
|
|
1271
|
+
across several elements should not have to reopen it each time.
|
|
1272
|
+
|
|
1273
|
+
### Changed
|
|
1274
|
+
|
|
1275
|
+
- **"Restart app" is now "Hard reset"**, in the top bar and in the startup
|
|
1276
|
+
notice.
|
|
1277
|
+
- **Positions and sizes are rounded to two decimals on construction**, not only
|
|
1278
|
+
when saved. Hundredths of the window is finer than anyone can place by hand or
|
|
1279
|
+
see, and finer than that turns the layout file into digits whose diffs mean
|
|
1280
|
+
nothing. Rounding at construction means what is in memory is what is on disk,
|
|
1281
|
+
so a value never changes under a researcher between drawing it and reopening
|
|
1282
|
+
it.
|
|
1283
|
+
|
|
1284
|
+
Validation still runs first, so a genuinely invalid rectangle is rejected
|
|
1285
|
+
rather than quietly rounded into an acceptable one. Only rounding's own
|
|
1286
|
+
artefacts are corrected: a sliver that would round away to nothing becomes the
|
|
1287
|
+
smallest real element, and an edge rounded past the window is given its
|
|
1288
|
+
position back rather than being shrunk.
|
|
1289
|
+
|
|
1290
|
+
`DEFAULT_SIZE["button"]` moves from `0.035` to `0.04` high, since a default
|
|
1291
|
+
ought to be expressible on the grid it will be snapped to.
|
|
1292
|
+
|
|
1293
|
+
## [0.16.0] — unreleased
|
|
1294
|
+
|
|
1295
|
+
### Fixed
|
|
1296
|
+
|
|
1297
|
+
- **An edited `on_startup` was often not noticed at all.** Reported as "nothing
|
|
1298
|
+
happens", and there were two independent reasons, either of which was enough
|
|
1299
|
+
on its own:
|
|
1300
|
+
|
|
1301
|
+
1. The check hung off the dispatcher's after-invoke hook, which fires only
|
|
1302
|
+
when a handler actually ran. Clicking an element you have not written code
|
|
1303
|
+
for — normal, and silent by design — never looked at the file. So the
|
|
1304
|
+
notice appeared only if you happened to click something that already had a
|
|
1305
|
+
handler.
|
|
1306
|
+
2. Nothing checked without an interaction at all. Saving the file and looking
|
|
1307
|
+
at the window did nothing, which is exactly when a researcher expects
|
|
1308
|
+
something to happen.
|
|
1309
|
+
|
|
1310
|
+
The check now runs before *every* interaction whatever it goes on to do, and
|
|
1311
|
+
a 700 ms poll notices a save on its own. It reads the file rather than the
|
|
1312
|
+
loaded module — deliberately, since reloading on a timer would re-run
|
|
1313
|
+
module-level code uninvited, and since the module is only reloaded when an
|
|
1314
|
+
interaction reaches a handler that exists.
|
|
1315
|
+
|
|
1316
|
+
### Added
|
|
1317
|
+
|
|
1318
|
+
- **A "Re-run startup" button in the top bar**, as requested. Enabled only when
|
|
1319
|
+
startup has actually been edited, so the button is its own indicator: save the
|
|
1320
|
+
file, look up, and it has come alive. It runs the new startup over the session
|
|
1321
|
+
already in memory, so the data survives.
|
|
1322
|
+
|
|
1323
|
+
### Changed
|
|
1324
|
+
|
|
1325
|
+
- The notice's second action is now **Restart app**, the same restart the top
|
|
1326
|
+
bar offers, rather than a separate session-only restart. One restart concept
|
|
1327
|
+
in the interface rather than two whose difference is invisible.
|
|
1328
|
+
- `ModuleLoader.generation`, added in 0.13.0, is gone. The staleness check is
|
|
1329
|
+
keyed to the file's own (mtime, size) instead, which is what let it work
|
|
1330
|
+
without loading anything — and an API with one caller that no longer needs it
|
|
1331
|
+
is better deleted than kept.
|
|
1332
|
+
|
|
1333
|
+
## [0.15.0] — unreleased
|
|
1334
|
+
|
|
1335
|
+
### Changed
|
|
1336
|
+
|
|
1337
|
+
- **`ev.<tag>` for a plot is now a real matplotlib `Axes`**, not an object that
|
|
1338
|
+
forwards to one. `AxesHandle` subclasses `Axes` and is registered as a
|
|
1339
|
+
matplotlib projection, which is the supported way to have a figure build a
|
|
1340
|
+
particular Axes subclass.
|
|
1341
|
+
|
|
1342
|
+
The difference is invisible for `ev.ax_0.plot(...)`, which worked either way,
|
|
1343
|
+
and decisive everywhere else. `isinstance(ev.ax_0, Axes)` is now true, so any
|
|
1344
|
+
library that takes an `ax=` argument accepts it, and matplotlib's own
|
|
1345
|
+
machinery does too. A forwarding wrapper fails all of that — and fails it
|
|
1346
|
+
inside whatever library the researcher passed it to, a long way from anything
|
|
1347
|
+
iterlab wrote.
|
|
1348
|
+
|
|
1349
|
+
- **The element type `plot_area` is renamed `axes`**, and new ones are tagged
|
|
1350
|
+
`ax_0`, `ax_1`, … rather than `plot_0`. `ax` is what the variable is called in
|
|
1351
|
+
everyone's matplotlib code, so `ev.ax_0` reads the way a researcher's own code
|
|
1352
|
+
already does. What the layout calls the thing is now what the thing is.
|
|
1353
|
+
|
|
1354
|
+
- **Layout schema 2 → 3**, with a migration that rewrites `type: plot_area` to
|
|
1355
|
+
`type: axes`. Tags, positions and styles are untouched, so an interface drawn
|
|
1356
|
+
before this keeps working and keeps its names.
|
|
1357
|
+
|
|
1358
|
+
### Notes
|
|
1359
|
+
|
|
1360
|
+
- Everything iterlab adds to the Axes subclass is prefixed `_iterlab_`, except
|
|
1361
|
+
the deliberate public surface (`tag`, `visible`, `canvas`, `widget`,
|
|
1362
|
+
`element`, `disconnect`). A test asserts that nothing added shadows a
|
|
1363
|
+
matplotlib attribute, so a future matplotlib release cannot quietly collide
|
|
1364
|
+
with us.
|
|
1365
|
+
- `visible` keeps its element-level meaning — is this on screen — uniform with
|
|
1366
|
+
buttons and labels, and hides the toolbar with it. matplotlib's own
|
|
1367
|
+
`set_visible` is left alone and still does matplotlib's thing.
|
|
1368
|
+
|
|
1369
|
+
## [0.14.0] — unreleased
|
|
1370
|
+
|
|
1371
|
+
### Added
|
|
1372
|
+
|
|
1373
|
+
- **A "Restart app" button in the top bar**, beside the mode toggle. A cold
|
|
1374
|
+
restart: the layout is re-read from disk, the researcher's module is dropped
|
|
1375
|
+
from the import cache, and a new session begins. It is the answer to anything
|
|
1376
|
+
a warm reload deliberately does not cover — an edited helper module, a
|
|
1377
|
+
hand-edited layout file, or simply wanting a clean slate.
|
|
1378
|
+
|
|
1379
|
+
It stays in the mode it was pressed in. Restarting is not a request to be
|
|
1380
|
+
moved to a different screen, and the window is not resized either: that would
|
|
1381
|
+
rearrange the researcher's desktop, which is not what was asked for.
|
|
1382
|
+
|
|
1383
|
+
Replaces the narrower "Restart session" button in the top bar. That behaviour
|
|
1384
|
+
still exists and is still offered by the startup notice, where re-running
|
|
1385
|
+
startup over a live session is the point; as a top-bar control, one button
|
|
1386
|
+
with one meaning beats two whose difference is invisible until it bites.
|
|
1387
|
+
|
|
1388
|
+
### Fixed
|
|
1389
|
+
|
|
1390
|
+
- A layout file edited by hand into something unparsable took the window down on
|
|
1391
|
+
restart, which is precisely what Principle III forbids. The last good layout
|
|
1392
|
+
is kept, the interface carries on, and the error is reported through the
|
|
1393
|
+
banner rather than swallowed. Found by a test written to check something else,
|
|
1394
|
+
which crashed instead of failing.
|
|
1395
|
+
|
|
1396
|
+
## [0.13.0] — unreleased
|
|
1397
|
+
|
|
1398
|
+
### Added
|
|
1399
|
+
|
|
1400
|
+
- **An edited `on_startup` is now noticed and offered back.** Every other
|
|
1401
|
+
handler takes effect on the next click because the next click runs it;
|
|
1402
|
+
startup already ran, so editing it did nothing at all and nothing said so.
|
|
1403
|
+
Nothing raises, so no fault appeared — the code simply never ran, which is
|
|
1404
|
+
the most expensive silence this tool can produce.
|
|
1405
|
+
|
|
1406
|
+
A strip now appears offering **Re-run startup** (keeps `ev` and everything on
|
|
1407
|
+
it) and **Restart session** (discards it). Both are offered rather than one
|
|
1408
|
+
chosen, because whether re-running is safe depends on the researcher's code:
|
|
1409
|
+
`ev.x = load(...)` rebinds and is safe, `ev.log.append(...)` is not. Dismissing
|
|
1410
|
+
hides the strip without marking the edit accepted, so a further edit raises it
|
|
1411
|
+
again — ignoring one edit must not make the next one silent.
|
|
1412
|
+
|
|
1413
|
+
- `runtime/startupcheck.py`. What counts as "startup changed" is narrower than
|
|
1414
|
+
"the file changed" — otherwise every handler edit would cry wolf — and wider
|
|
1415
|
+
than "the text of `on_startup` changed", because startup's behaviour lives
|
|
1416
|
+
partly in the module-level helpers it calls. The fingerprint covers
|
|
1417
|
+
`on_startup` plus every module-level function transitively reachable from it,
|
|
1418
|
+
compared as parsed structure so reformatting and comments cost nothing. A
|
|
1419
|
+
file mid-edit that will not parse fingerprints as `None` and raises no alarm.
|
|
1420
|
+
|
|
1421
|
+
- `ModuleLoader.generation`, so a caller can ask "has this reloaded since I last
|
|
1422
|
+
looked?" without re-reading the file. The staleness check is therefore
|
|
1423
|
+
proportional to edits, not to clicks.
|
|
1424
|
+
|
|
1425
|
+
### Notes
|
|
1426
|
+
|
|
1427
|
+
- **New imports already worked** and needed no change: the loader executes the
|
|
1428
|
+
module fresh rather than calling `importlib.reload`, so an `import` line added
|
|
1429
|
+
to a live file runs on the next reload. Verified rather than assumed.
|
|
1430
|
+
- **Imported modules are assumed not to change during a session.** If `demo.py`
|
|
1431
|
+
does `import fitting` and `fitting.py` is then edited, the change is not
|
|
1432
|
+
picked up: `fitting` is already in `sys.modules`, so the import statement
|
|
1433
|
+
binds the cached module. This is a deliberate scope boundary, not an
|
|
1434
|
+
oversight - cascading reloads through a module graph brings the stale-instance
|
|
1435
|
+
problem with it (objects already built keep their old class), and the cost of
|
|
1436
|
+
getting that subtly wrong is higher than the cost of restarting. **Restart
|
|
1437
|
+
app** covers it when it matters.
|
|
1438
|
+
|
|
1439
|
+
## [0.12.0] — unreleased
|
|
1440
|
+
|
|
1441
|
+
### Changed
|
|
1442
|
+
|
|
1443
|
+
- **A session now survives a mode switch.** It belongs to the interface, not to
|
|
1444
|
+
GUI mode. Toggling into the editor to nudge a button and back no longer
|
|
1445
|
+
discards `ev`, no longer blanks a plot, and no longer re-runs `on_startup`.
|
|
1446
|
+
|
|
1447
|
+
This reverses FR-015d, which said a switch ends the session. That behaviour
|
|
1448
|
+
did not remove the cost of reloading data so much as move it: from "every
|
|
1449
|
+
code edit", which the reload loop already solved, to "every layout edit",
|
|
1450
|
+
which is the other half of the same loop. A researcher with a slow load was
|
|
1451
|
+
still paying it, just for a different reason.
|
|
1452
|
+
|
|
1453
|
+
### Added
|
|
1454
|
+
|
|
1455
|
+
- **A "Restart session" control** beside the mode toggle. Because toggling now
|
|
1456
|
+
preserves everything deliberately, there has to be one explicit way to say
|
|
1457
|
+
start over — and it is how a change to `on_startup` takes effect. Chrome
|
|
1458
|
+
under FR-015c, and disabled in editor mode, where there is no live session to
|
|
1459
|
+
discard (FR-015e).
|
|
1460
|
+
- `Session`, owning what outlives a mode: `ev`, one matplotlib `Figure` per plot
|
|
1461
|
+
area, and whether startup has run. A `Figure` can be attached to a new canvas,
|
|
1462
|
+
which is what makes a drawn plot survive at all.
|
|
1463
|
+
- `Session.reconcile` and `Session.retag`, so state belonging to an element
|
|
1464
|
+
deleted in the editor is dropped and state belonging to a renamed one follows
|
|
1465
|
+
the new tag (FR-015f).
|
|
1466
|
+
|
|
1467
|
+
### Fixed
|
|
1468
|
+
|
|
1469
|
+
- A figure's callback registry is shared with **every canvas it is ever attached
|
|
1470
|
+
to**. Reusing the figure across a switch therefore left the dead canvas's
|
|
1471
|
+
connections live, so a single click fired the handler once per switch ever
|
|
1472
|
+
made — three toggles, four handler calls. `PlotHandle.disconnect()` releases
|
|
1473
|
+
them on teardown. Found by prototyping before designing, and now covered by a
|
|
1474
|
+
test that fails with `assert 4 == 1` without the fix.
|
|
1475
|
+
|
|
1476
|
+
### Tests
|
|
1477
|
+
|
|
1478
|
+
- Three tests driving real matplotlib events through the canvas: a drawn curve
|
|
1479
|
+
survives a switch, a click fires exactly once after three switches, and a
|
|
1480
|
+
renamed plot keeps its curve. Each was confirmed to fail against the
|
|
1481
|
+
unfixed code.
|
|
1482
|
+
|
|
1483
|
+
## [0.11.1] — unreleased
|
|
1484
|
+
|
|
1485
|
+
### Fixed
|
|
1486
|
+
|
|
1487
|
+
- A UI test asserted real OS focus, which the window manager can withhold and
|
|
1488
|
+
which other tests disturb by mapping and unmapping the shared Tk root. It
|
|
1489
|
+
passed alone and failed in the full suite. Now asks Tk which widget is last
|
|
1490
|
+
focused *for that toplevel*, which is the same question without depending on
|
|
1491
|
+
the desktop.
|
|
1492
|
+
|
|
1493
|
+
## [0.11.0] — unreleased
|
|
1494
|
+
|
|
1495
|
+
### Added
|
|
1496
|
+
|
|
1497
|
+
- **`GUIDE.md`** — a user guide: install, first interface, the handler and `ev`
|
|
1498
|
+
model, every element type with its code API, the full styling table, tagging,
|
|
1499
|
+
deleting, and the known limits. It will grow as element types are added.
|
|
1500
|
+
|
|
1501
|
+
### Fixed
|
|
1502
|
+
|
|
1503
|
+
- A plot area's `visible` could be set but not read. `PlotHandle` delegates
|
|
1504
|
+
unknown attributes to its matplotlib `Axes`, which knows nothing about
|
|
1505
|
+
`visible`, so reading it raised `AttributeError` while writing it worked. Any
|
|
1506
|
+
style property a handle can set is now also readable — found while checking
|
|
1507
|
+
the guide's claims rather than by writing them down and hoping.
|
|
1508
|
+
|
|
1509
|
+
## [0.10.0] — unreleased
|
|
1510
|
+
|
|
1511
|
+
### Fixed
|
|
1512
|
+
|
|
1513
|
+
- Clicking, hovering or typing on a **plot area** raised `NameError: name
|
|
1514
|
+
'name' is not defined`. The v0.8.0 tag rename missed the closure inside
|
|
1515
|
+
`build_plot_area`, which still referred to `name` and still passed
|
|
1516
|
+
`element=` to an `Event` whose field had become `tag`. Plot areas were the
|
|
1517
|
+
only element type affected.
|
|
1518
|
+
|
|
1519
|
+
### Added
|
|
1520
|
+
|
|
1521
|
+
- `tests/ui/test_plot_events.py` drives matplotlib's own callback machinery —
|
|
1522
|
+
the closures in `build_plot_area` — rather than calling the dispatcher
|
|
1523
|
+
directly. Every other plot test went straight to the dispatcher, so the
|
|
1524
|
+
closures were never executed and a NameError in them survived a 291-test
|
|
1525
|
+
suite. Seven of the eight new tests fail against the bug.
|
|
1526
|
+
|
|
1527
|
+
## [0.9.0] — unreleased
|
|
1528
|
+
|
|
1529
|
+
### Added
|
|
1530
|
+
|
|
1531
|
+
- **Style properties on buttons and labels**: fill colour, text colour, border
|
|
1532
|
+
colour and width, font family, font size, bold, italic, alignment, enabled
|
|
1533
|
+
and visible. A plot area takes only `visible` — matplotlib owns the rest of
|
|
1534
|
+
how it looks, and offering a fill colour that did nothing would be a lie.
|
|
1535
|
+
- **Every style property is settable from code**, and doing so changes the live
|
|
1536
|
+
widget without ever writing back to the layout file. The layout holds the
|
|
1537
|
+
*starting* appearance; research code overrides it for the session:
|
|
1538
|
+
|
|
1539
|
+
ev.title.background = "#ffe0e0"
|
|
1540
|
+
ev.title.font_size = 20
|
|
1541
|
+
ev.run_fit.enabled = False
|
|
1542
|
+
|
|
1543
|
+
- Editors for all of it in the properties panel: hex fields with a swatch that
|
|
1544
|
+
opens the system colour picker, a font dropdown listing only families
|
|
1545
|
+
actually installed, and checkboxes and radio buttons for the rest.
|
|
1546
|
+
- The editor canvas now previews an element's real colours, font and weight, so
|
|
1547
|
+
a styling choice can be judged without toggling to GUI mode.
|
|
1548
|
+
|
|
1549
|
+
### Changed
|
|
1550
|
+
|
|
1551
|
+
- **Layout schema version 2.** The `style` block is new, and an older build
|
|
1552
|
+
would reject it as an unrecognized key, so the version had to move — and with
|
|
1553
|
+
it comes the first real migration (FR-036c said to write one when it was
|
|
1554
|
+
actually needed rather than in advance). A version 1 layout opens unchanged,
|
|
1555
|
+
is migrated in memory, and is only rewritten when something is saved.
|
|
1556
|
+
- Only non-default style values are written, so an unstyled element is still a
|
|
1557
|
+
three-line entry.
|
|
1558
|
+
|
|
1559
|
+
## [0.8.0] — unreleased
|
|
1560
|
+
|
|
1561
|
+
### Changed
|
|
1562
|
+
|
|
1563
|
+
- An element's unique identifier is now called its **tag**, everywhere. It was
|
|
1564
|
+
"name", which collided with the interface's own name and with the handler
|
|
1565
|
+
*function* names it appears in. The legacy 2024 spike called it a tag too.
|
|
1566
|
+
|
|
1567
|
+
Researcher-facing: `event.element` becomes `event.tag`; the properties panel
|
|
1568
|
+
field is "Tag". Unchanged: `ev.<tag>`, `on_clicked_<tag>` and the layout file
|
|
1569
|
+
format — the tag has always been the mapping key there, so **no existing
|
|
1570
|
+
layout or research code needs editing**.
|
|
1571
|
+
|
|
1572
|
+
Internally `Element.name` becomes `Element.tag`, `Layout.names()` becomes
|
|
1573
|
+
`Layout.tags()`, `Layout.rename()` becomes `Layout.retag()`, and
|
|
1574
|
+
`validate_name` becomes `validate_tag`. Deliberately *not* renamed:
|
|
1575
|
+
`Interface.name`, which is the interface's own name, and `handler_name`,
|
|
1576
|
+
which really is a function's name.
|
|
1577
|
+
|
|
1578
|
+
## [0.7.0] — unreleased
|
|
1579
|
+
|
|
1580
|
+
### Fixed
|
|
1581
|
+
|
|
1582
|
+
- Resize cursors did nothing on Linux. `size_nw_se` and `size_ne_sw` are Tk's
|
|
1583
|
+
Windows-only names; X11 has no such cursors, so every diagonal handle showed
|
|
1584
|
+
no pointer change at all. The guard in `_set_cursor` caught the error and
|
|
1585
|
+
said nothing. Replaced with X11 corner names, which all three platforms
|
|
1586
|
+
accept — and which give each corner its own cursor rather than sharing one
|
|
1587
|
+
across a diagonal. Found by CI on Linux.
|
|
1588
|
+
|
|
1589
|
+
### Added
|
|
1590
|
+
|
|
1591
|
+
- `tools/verify.py` builds a throwaway interface for the manual verification
|
|
1592
|
+
pass: a plot, a label and two buttons, with research code that loads slowly,
|
|
1593
|
+
plots, and fails on demand. It removes the setup from Gate 2, which was the
|
|
1594
|
+
real reason the pass had never been done.
|
|
1595
|
+
- A test asserting every cursor name is valid on the running platform. Tk
|
|
1596
|
+
silently ignores an unknown one, so nothing else would report it.
|
|
1597
|
+
|
|
1598
|
+
## [0.6.0] — unreleased
|
|
1599
|
+
|
|
1600
|
+
### Added
|
|
1601
|
+
|
|
1602
|
+
- A **label** element: text placed in the layout and set from code with
|
|
1603
|
+
`ev.status.text = "..."`. It is the first type with **no generated handler** —
|
|
1604
|
+
a label displays text rather than being clicked, and a stub for every one
|
|
1605
|
+
would leave a pile of dead functions in the researcher's file. Every
|
|
1606
|
+
interaction is still available if the handler is written by hand (FR-017a);
|
|
1607
|
+
only the automatic stub is withheld.
|
|
1608
|
+
|
|
1609
|
+
### Changed
|
|
1610
|
+
|
|
1611
|
+
- The editor opens at 1080x760 rather than the interface's own size. That size
|
|
1612
|
+
describes the *interface*, and is advisory; editor mode adds a sidebar the
|
|
1613
|
+
interface knows nothing about. Switching to the editor grows a window that is
|
|
1614
|
+
too small but never shrinks one — a size chosen deliberately stays.
|
|
1615
|
+
- The default button is smaller: roughly 134x38 px on a maximised 1920x1080
|
|
1616
|
+
window, down from 230x65, which read as unusually large.
|
|
1617
|
+
- Palette entries are single compact rows of icon and name, about 33 px each,
|
|
1618
|
+
rather than cards with descriptions. The vocabulary is going to grow, and a
|
|
1619
|
+
card tall enough for a description does not survive a dozen types in a
|
|
1620
|
+
sidebar.
|
|
1621
|
+
- The text field in the properties panel now serves any text-bearing type, not
|
|
1622
|
+
just buttons. `label` holds a button's caption and a label's text — the same
|
|
1623
|
+
idea, so it stays one schema field rather than two.
|
|
1624
|
+
|
|
1625
|
+
## [0.5.0] — unreleased
|
|
1626
|
+
|
|
1627
|
+
### Added
|
|
1628
|
+
|
|
1629
|
+
- Generated starter files import numpy as np. No research happens without it.
|
|
1630
|
+
- A delete control in the properties panel, pinned to the bottom of the sidebar
|
|
1631
|
+
so a destructive action is never the thing pushed off the screen. The
|
|
1632
|
+
element's handler stays in the code file, as it always has.
|
|
1633
|
+
- The editor sidebar scrolls when its contents are taller than the window.
|
|
1634
|
+
|
|
1635
|
+
### Changed
|
|
1636
|
+
|
|
1637
|
+
- The editor has a modern look: the `clam` ttk theme restyled with a flat
|
|
1638
|
+
palette, the element types shown as icon cards rather than radio buttons, and
|
|
1639
|
+
the geometry fields laid out as a 2x2 grid instead of four stacked rows.
|
|
1640
|
+
Icons are drawn as vectors rather than loaded from image files or set as text
|
|
1641
|
+
glyphs — no assets to ship, and no bet on the platform font having a
|
|
1642
|
+
character.
|
|
1643
|
+
- Property edits commit on Enter or when the field loses focus. The Apply
|
|
1644
|
+
button is gone: a value typed and tabbed away from is a value you meant.
|
|
1645
|
+
- Removed the dashed "mode toggle" hint from the canvas. The toggle lives in
|
|
1646
|
+
its own chrome bar above the layout, so nothing is ever underneath it and the
|
|
1647
|
+
hint was misleading.
|
|
1648
|
+
|
|
1649
|
+
### Fixed
|
|
1650
|
+
|
|
1651
|
+
- The sidebar's contents disappeared at small window sizes. Tk stops *mapping*
|
|
1652
|
+
children that no longer fit rather than clipping them, so the geometry fields
|
|
1653
|
+
were absent rather than scrolled out of view — with no error, no scrollbar,
|
|
1654
|
+
and the only symptom being that typing into them did nothing. At the 800x450
|
|
1655
|
+
default this affected every position field.
|
|
1656
|
+
|
|
1657
|
+
## [0.4.0] — unreleased
|
|
1658
|
+
|
|
1659
|
+
### Fixed
|
|
1660
|
+
|
|
1661
|
+
- A button responded only to the left mouse button. Middle and right clicks did
|
|
1662
|
+
not reach the handler at all — Tk's `command` option fires for button 1 only,
|
|
1663
|
+
and nothing else was bound. The event also reported `"left"` unconditionally,
|
|
1664
|
+
since the value was hardcoded rather than read from the click. All three
|
|
1665
|
+
buttons now fire the handler and `event.button` says which one.
|
|
1666
|
+
- Removed `_bind_tk_events`, which was written but never called.
|
|
1667
|
+
|
|
1668
|
+
### Changed
|
|
1669
|
+
|
|
1670
|
+
- The generated stub for a plot area now prints which mouse button was used
|
|
1671
|
+
alongside the coordinates, and its comment lists the possible values. The
|
|
1672
|
+
button was always available on the event; nothing advertised it.
|
|
1673
|
+
|
|
1674
|
+
## [0.3.0] — unreleased
|
|
1675
|
+
|
|
1676
|
+
### Changed
|
|
1677
|
+
|
|
1678
|
+
- Placing an element no longer opens a modal asking for its name. The element
|
|
1679
|
+
is created with its default name, selected, and the properties panel's name
|
|
1680
|
+
field is focused with the text selected — so accepting the default needs no
|
|
1681
|
+
typing and replacing it needs no extra click. This still satisfies FR-005a,
|
|
1682
|
+
and it removes a dialog that stopped the researcher on every placement.
|
|
1683
|
+
|
|
1684
|
+
### Fixed
|
|
1685
|
+
|
|
1686
|
+
- The test suite could stop and wait for a human. One code path opened a modal
|
|
1687
|
+
that no test stubbed, which made the suite unrunnable unattended and so
|
|
1688
|
+
disqualified it as a release gate (Principle VII, Gate 1). The dialog is
|
|
1689
|
+
gone, and `tests/conftest.py` now makes any modal — dialog, message box or
|
|
1690
|
+
file chooser — raise instead of block, so a future one fails loudly rather
|
|
1691
|
+
than appearing to hang.
|
|
1692
|
+
|
|
1693
|
+
## [0.2.0] — unreleased
|
|
1694
|
+
|
|
1695
|
+
Everything found by the first hands-on session with the application. Each of the
|
|
1696
|
+
four defects below was a component that was fully implemented and never
|
|
1697
|
+
connected to anything, and each was invisible to the automated suite because the
|
|
1698
|
+
tests exercised the mechanism directly rather than going through the assembled
|
|
1699
|
+
app.
|
|
1700
|
+
|
|
1701
|
+
### Fixed
|
|
1702
|
+
|
|
1703
|
+
- The mode toggle did nothing. `ModeToggle` was written but never instantiated,
|
|
1704
|
+
so the chrome frame held no control at all.
|
|
1705
|
+
- `ev.some_plot.plot(...)` drew nothing after the first interaction. An embedded
|
|
1706
|
+
figure gets no automatic repaint — pyplot installs that hook and pyplot has no
|
|
1707
|
+
place here, since `plt.show()` would start a second event loop against Tk's.
|
|
1708
|
+
Handlers now repaint whatever they drew.
|
|
1709
|
+
- A launch-time fault in startup was reported twice, because the deferred-startup
|
|
1710
|
+
hook re-entered itself.
|
|
1711
|
+
- Adding an element to a `.py` written with CRLF line endings rewrote every line
|
|
1712
|
+
in the file.
|
|
1713
|
+
|
|
1714
|
+
### Added
|
|
1715
|
+
|
|
1716
|
+
- Drag an element to move it; drag an edge to resize one dimension or a corner
|
|
1717
|
+
to resize both. Pointer feedback says what a press will do before you commit.
|
|
1718
|
+
- Click empty canvas to place an element at a sensible default size for its
|
|
1719
|
+
type, centred on the click. Escape deselects, since clicking now creates.
|
|
1720
|
+
- `iterlab.run(name)` — the library entry point that contracts/commands.md and
|
|
1721
|
+
the README had documented while `__init__.py` was empty.
|
|
1722
|
+
- The version has a single source of truth in `__init__.py`, which
|
|
1723
|
+
`pyproject.toml` reads.
|
|
1724
|
+
|
|
1725
|
+
## [0.1.0] — unreleased
|
|
1726
|
+
|
|
1727
|
+
The initial implementation of feature 001. Never published; superseded by 0.2.0
|
|
1728
|
+
before it left the working tree.
|
|
1729
|
+
|
|
1730
|
+
### Added
|
|
1731
|
+
|
|
1732
|
+
- `iterlab <name>` opens an interface. One command; editing and using it are two
|
|
1733
|
+
modes of one program, switched with the toggle in the top-left corner.
|
|
1734
|
+
- **Editor mode**: a canvas, a palette of element types, and a properties panel.
|
|
1735
|
+
Draw by dragging; every property is editable, including the name.
|
|
1736
|
+
- **GUI mode**: the interface as drawn, with handlers wired and the standard
|
|
1737
|
+
matplotlib navigation toolbar on every plot area.
|
|
1738
|
+
- Two element types: plot areas and buttons.
|
|
1739
|
+
- Handlers bind by naming convention (`on_<interaction>_<element>`), with the
|
|
1740
|
+
universal interaction set click / hover / motion / key. Every handler is
|
|
1741
|
+
optional; exactly one stub is generated per element.
|
|
1742
|
+
- Code changes take effect on the next interaction with no restart, and nothing
|
|
1743
|
+
in the session is discarded — loaded data, computed results and drawn plots
|
|
1744
|
+
all survive.
|
|
1745
|
+
- A fault in researcher code never ends the session. It is reported to stderr
|
|
1746
|
+
in full and signalled in the window, and the report clears when corrected code
|
|
1747
|
+
runs. An element with no handler is silent, which is a different thing.
|
|
1748
|
+
- Renaming an element rewrites its handlers and nothing else in the file.
|
|
1749
|
+
- Layout files record `schema_version: 1`. A layout written by a newer iterlab
|
|
1750
|
+
is reported and left untouched rather than partially understood.
|
|
1751
|
+
|
|
1752
|
+
### Known limits
|
|
1753
|
+
|
|
1754
|
+
- A mode switch ends the session; switching back runs startup again. Applying
|
|
1755
|
+
layout edits to a live session is the aim, not a promise.
|
|
1756
|
+
- Changing `on_startup` takes effect by starting a fresh session — toggling out
|
|
1757
|
+
and back is enough.
|
|
1758
|
+
- Handlers run to completion while the interface waits. Long computations block
|
|
1759
|
+
the window.
|
|
1760
|
+
- Reloading a module re-executes its top level, so data loaded at module level
|
|
1761
|
+
rather than in `on_startup` will reload on every edit. The generated starter
|
|
1762
|
+
file says so.
|