Skip to content

Commit

Permalink
clean old widget name from IPYNB files
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rind committed Sep 27, 2023
1 parent e4eba10 commit 69556d0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 73 deletions.
61 changes: 22 additions & 39 deletions examples/SoniScope-Graz.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"cell_type": "code",
"execution_count": null,
"id": "ed04a35d-22bc-407a-913e-6206c19c660e",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import numpy as np\n",
Expand Down Expand Up @@ -122,7 +124,9 @@
"cell_type": "code",
"execution_count": null,
"id": "72321d87-9cd0-43e7-a85b-38e644ed135f",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"numeric_cols = daily.select_dtypes(include='number').columns.values.tolist() # get possible colums for axes\n",
Expand Down Expand Up @@ -197,7 +201,9 @@
"cell_type": "code",
"execution_count": null,
"id": "c074c465-6f5e-448d-93bb-0e32a3837a45",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"def on_lens_clicked(widget, x: float, y: float, filtered: pd.DataFrame, distances: pd.Series): \n",
Expand Down Expand Up @@ -316,7 +322,9 @@
"cell_type": "code",
"execution_count": null,
"id": "b576bb3e-dd28-4cbb-89d5-e72ea69304ad",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"def on_lens_released(widget): \n",
Expand All @@ -341,7 +349,9 @@
"cell_type": "code",
"execution_count": null,
"id": "fecec03e-36cc-40d0-9b8f-f6780a1a23a2",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"def sonifyer(filtered, shape, size, t0, T_max, decay, soni_dim_value, soni_dim_min, soni_dim_max, soni_sort_dim_value, soni_sort_dim_min, soni_sort_dim_max, x_field, y_field, x_min, x_max, y_min, y_max, midi_min, midi_max, dB_min, dB_max):\n",
Expand Down Expand Up @@ -394,7 +404,9 @@
"cell_type": "code",
"execution_count": null,
"id": "6d468384-175b-4137-9f8f-e29b40ac1f7c",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"style = {'description_width': 'initial'}\n",
Expand Down Expand Up @@ -503,6 +515,9 @@
"execution_count": null,
"id": "fa2be301-99ee-4dab-b606-6fa0078fec74",
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -672,7 +687,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.2"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down Expand Up @@ -715,17 +730,6 @@
"model_name": "LayoutModel",
"state": {}
},
"6ed4f256d35e4fdeb1cbdffa722bcc15": {
"model_module": "sonivis-lens-widget",
"model_module_version": "^0.1.0",
"model_name": "LensModel",
"state": {
"_model_module_version": "^0.1.0",
"_view_module_version": "^0.1.0",
"layout": "IPY_MODEL_8cf636348312444482e3b219df369467",
"value": "none"
}
},
"75ae2fd7e25d439889ed85d0f2c85479": {
"model_module": "@jupyter-widgets/output",
"model_module_version": "1.0.0",
Expand All @@ -747,16 +751,6 @@
"model_name": "LayoutModel",
"state": {}
},
"943e3134d5ad40b89e10299d93b82b9f": {
"model_module": "sonivis-lens-widget",
"model_module_version": "^0.1.0",
"model_name": "LensModel",
"state": {
"_model_module_version": "^0.1.0",
"_view_module_version": "^0.1.0",
"layout": "IPY_MODEL_65ebbb08d2474b4ab491d2943d93f588"
}
},
"a7f433d7f01c4c1f9aeaf58a04f29c51": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
Expand Down Expand Up @@ -786,17 +780,6 @@
"style": "IPY_MODEL_13100241d576457ab2a0f0977d9345f9",
"value": "Hover in LensWidget is reflected in target1"
}
},
"cc239f75e4654ea59bc3b9d8d6e30d4f": {
"model_module": "sonivis-lens-widget",
"model_module_version": "^0.1.0",
"model_name": "LensModel",
"state": {
"_model_module_version": "^0.1.0",
"_view_module_version": "^0.1.0",
"layout": "IPY_MODEL_bcf4849b02824e4d91860b012eaa491b",
"value": "abc"
}
}
},
"version_major": 2,
Expand Down
38 changes: 4 additions & 34 deletions examples/SoniScope.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,9 @@
"cell_type": "code",
"execution_count": null,
"id": "fa2be301-99ee-4dab-b606-6fa0078fec74",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"plotBike = LensWidget(daily, 'temp °C', 'hum %')\n",
Expand Down Expand Up @@ -696,7 +698,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.2"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down Expand Up @@ -739,17 +741,6 @@
"model_name": "LayoutModel",
"state": {}
},
"6ed4f256d35e4fdeb1cbdffa722bcc15": {
"model_module": "sonivis-lens-widget",
"model_module_version": "^0.1.0",
"model_name": "LensModel",
"state": {
"_model_module_version": "^0.1.0",
"_view_module_version": "^0.1.0",
"layout": "IPY_MODEL_8cf636348312444482e3b219df369467",
"value": "none"
}
},
"75ae2fd7e25d439889ed85d0f2c85479": {
"model_module": "@jupyter-widgets/output",
"model_module_version": "1.0.0",
Expand All @@ -771,16 +762,6 @@
"model_name": "LayoutModel",
"state": {}
},
"943e3134d5ad40b89e10299d93b82b9f": {
"model_module": "sonivis-lens-widget",
"model_module_version": "^0.1.0",
"model_name": "LensModel",
"state": {
"_model_module_version": "^0.1.0",
"_view_module_version": "^0.1.0",
"layout": "IPY_MODEL_65ebbb08d2474b4ab491d2943d93f588"
}
},
"a7f433d7f01c4c1f9aeaf58a04f29c51": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
Expand Down Expand Up @@ -810,17 +791,6 @@
"style": "IPY_MODEL_13100241d576457ab2a0f0977d9345f9",
"value": "Hover in LensWidget is reflected in target1"
}
},
"cc239f75e4654ea59bc3b9d8d6e30d4f": {
"model_module": "sonivis-lens-widget",
"model_module_version": "^0.1.0",
"model_name": "LensModel",
"state": {
"_model_module_version": "^0.1.0",
"_view_module_version": "^0.1.0",
"layout": "IPY_MODEL_bcf4849b02824e4d91860b012eaa491b",
"value": "abc"
}
}
},
"version_major": 2,
Expand Down

0 comments on commit 69556d0

Please sign in to comment.