Skip to content

Commit 2c33644

Browse files
authored
remove state
1 parent 35834f7 commit 2c33644

File tree

1 file changed

+1
-76
lines changed

1 file changed

+1
-76
lines changed

2025/anywidget_fallback_experiment.ipynb

Lines changed: 1 addition & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -14,81 +14,6 @@
1414
"language_info": {
1515
"name": "python"
1616
},
17-
"widgets": {
18-
"application/vnd.jupyter.widget-state+json": {
19-
"f816c099762e4037aef41ec2aad8409b": {
20-
"model_module": "anywidget",
21-
"model_name": "AnyModel",
22-
"model_module_version": "~0.9.*",
23-
"state": {
24-
"_anywidget_id": "__main__.CounterWidget",
25-
"_dom_classes": [],
26-
"_esm": "\n function render({ model, el }) {\n let button = document.createElement(\"button\");\n button.innerHTML = `count is ${model.get(\"value\")}`;\n button.addEventListener(\"click\", () => {\n model.set(\"value\", model.get(\"value\") + 1);\n model.save_changes();\n });\n model.on(\"change:value\", () => {\n button.innerHTML = `count is ${model.get(\"value\")}`;\n });\n el.appendChild(button);\n }\n export default { render };\n ",
27-
"_model_module": "anywidget",
28-
"_model_module_version": "~0.9.*",
29-
"_model_name": "AnyModel",
30-
"_view_count": null,
31-
"_view_module": "anywidget",
32-
"_view_module_version": "~0.9.*",
33-
"_view_name": "AnyView",
34-
"layout": "IPY_MODEL_899796661d6a405d8802689124889135",
35-
"value": 42
36-
}
37-
},
38-
"899796661d6a405d8802689124889135": {
39-
"model_module": "@jupyter-widgets/base",
40-
"model_name": "LayoutModel",
41-
"model_module_version": "1.2.0",
42-
"state": {
43-
"_model_module": "@jupyter-widgets/base",
44-
"_model_module_version": "1.2.0",
45-
"_model_name": "LayoutModel",
46-
"_view_count": null,
47-
"_view_module": "@jupyter-widgets/base",
48-
"_view_module_version": "1.2.0",
49-
"_view_name": "LayoutView",
50-
"align_content": null,
51-
"align_items": null,
52-
"align_self": null,
53-
"border": null,
54-
"bottom": null,
55-
"display": null,
56-
"flex": null,
57-
"flex_flow": null,
58-
"grid_area": null,
59-
"grid_auto_columns": null,
60-
"grid_auto_flow": null,
61-
"grid_auto_rows": null,
62-
"grid_column": null,
63-
"grid_gap": null,
64-
"grid_row": null,
65-
"grid_template_areas": null,
66-
"grid_template_columns": null,
67-
"grid_template_rows": null,
68-
"height": null,
69-
"justify_content": null,
70-
"justify_items": null,
71-
"left": null,
72-
"margin": null,
73-
"max_height": null,
74-
"max_width": null,
75-
"min_height": null,
76-
"min_width": null,
77-
"object_fit": null,
78-
"object_position": null,
79-
"order": null,
80-
"overflow": null,
81-
"overflow_x": null,
82-
"overflow_y": null,
83-
"padding": null,
84-
"right": null,
85-
"top": null,
86-
"visibility": null,
87-
"width": null
88-
}
89-
}
90-
}
91-
}
9217
},
9318
"cells": [
9419
{
@@ -260,4 +185,4 @@
260185
"outputs": []
261186
}
262187
]
263-
}
188+
}

0 commit comments

Comments
 (0)