Commit 4ba84dc
authored
Absorb stray Input-styled widget-dump cells when opening Manipulate notebooks (#450)
Wolfram Demonstrations Project source notebooks (the authoring copy
downloaded from demonstrations.wolfram.com) sometimes store an extra
Input-styled cell between the real Manipulate[...] source and its
cached Output — a leftover evaluation snapshot whose content is itself
a raw FrontEnd widget dump (DynamicModuleBox[...]), never meaningful
as code. editors_from_notebook only recognized Output/Print cells as
part of an Input cell's evaluation result, so this stray cell broke
the pairing: the real source lost its cached output (no live widget),
and the stray cell rendered as its own empty, broken "code" cell.
Treat an Input-styled cell whose content is itself a dynamic-box dump
the same as a stored Output when scanning forward from a source cell,
so it is absorbed into the widget instantiation instead of shown as
its own broken cell.1 parent 69f61ba commit 4ba84dc
1 file changed
Lines changed: 47 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
572 | 580 | | |
573 | 581 | | |
574 | 582 | | |
575 | 583 | | |
576 | | - | |
| 584 | + | |
577 | 585 | | |
578 | 586 | | |
579 | | - | |
| 587 | + | |
| 588 | + | |
580 | 589 | | |
581 | 590 | | |
582 | | - | |
| 591 | + | |
583 | 592 | | |
584 | 593 | | |
585 | 594 | | |
| |||
7264 | 7273 | | |
7265 | 7274 | | |
7266 | 7275 | | |
| 7276 | + | |
| 7277 | + | |
| 7278 | + | |
| 7279 | + | |
| 7280 | + | |
| 7281 | + | |
| 7282 | + | |
| 7283 | + | |
| 7284 | + | |
| 7285 | + | |
| 7286 | + | |
| 7287 | + | |
| 7288 | + | |
| 7289 | + | |
| 7290 | + | |
| 7291 | + | |
| 7292 | + | |
| 7293 | + | |
| 7294 | + | |
| 7295 | + | |
| 7296 | + | |
| 7297 | + | |
| 7298 | + | |
| 7299 | + | |
| 7300 | + | |
| 7301 | + | |
| 7302 | + | |
| 7303 | + | |
| 7304 | + | |
| 7305 | + | |
| 7306 | + | |
| 7307 | + | |
| 7308 | + | |
| 7309 | + | |
7267 | 7310 | | |
7268 | 7311 | | |
7269 | 7312 | | |
| |||
0 commit comments