Skip to content

Instantly share code, notes, and snippets.

@samsol38
Created July 13, 2024 06:31
Show Gist options
  • Save samsol38/abbf859d95d5525698d947f27c5086f1 to your computer and use it in GitHub Desktop.
Save samsol38/abbf859d95d5525698d947f27c5086f1 to your computer and use it in GitHub Desktop.
numpy_demo
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"9a28656f10bc407dac9bc63eb69cbbfc": {
"model_module": "jupyter-vue",
"model_name": "HtmlModel",
"model_module_version": "^1.11.1",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vue",
"_model_module_version": "^1.11.1",
"_model_name": "HtmlModel",
"_view_count": null,
"_view_module": "jupyter-vue",
"_view_module_version": "^1.11.1",
"_view_name": "VueView",
"attributes": {},
"children": [],
"class_": null,
"layout": null,
"slot": null,
"style_": "display: none",
"tag": "span",
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"345a0c195f0d4109b07c96736609b6f1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "VBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "VBoxModel",
"_view_count": 1,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "VBoxView",
"box_style": "",
"children": [
"IPY_MODEL_027c7185acc84190b466fa72b02bd04a"
],
"layout": "IPY_MODEL_a80ed2fee4e94dcfbf621b4167cc50e7"
}
},
"027c7185acc84190b466fa72b02bd04a": {
"model_module": "jupyter-vuetify",
"model_name": "HtmlModel",
"model_module_version": "^1.9.4",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "HtmlModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_0190224c724c483a9d0aead199ab1ab2",
"IPY_MODEL_66e1f6a7b5224be6aecf17932e28fb6c"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"tag": "div",
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"a80ed2fee4e94dcfbf621b4167cc50e7": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"0190224c724c483a9d0aead199ab1ab2": {
"model_module": "jupyter-vuetify",
"model_name": "AppBarModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "AppBarModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"absolute": null,
"app": null,
"attributes": {},
"bottom": null,
"children": [
"IPY_MODEL_030d8ae1370244dc9d4bc5b59a0963ff",
"IPY_MODEL_11afd66473424a088be81a74608a3471",
"IPY_MODEL_d9c74089e8ac43c890ae81ccf5f6a1e5"
],
"class_": null,
"clipped_left": null,
"clipped_right": null,
"collapse": null,
"collapse_on_scroll": null,
"color": "primary",
"dark": true,
"dense": null,
"elevate_on_scroll": null,
"elevation": null,
"extended": null,
"extension_height": null,
"fade_img_on_scroll": null,
"fixed": null,
"flat": null,
"floating": null,
"height": null,
"hide_on_scroll": null,
"inverted_scroll": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"prominent": null,
"scroll_off_screen": null,
"scroll_target": null,
"scroll_threshold": null,
"short": null,
"shrink_on_scroll": null,
"slot": null,
"src": null,
"style_": null,
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"value": null,
"width": null
}
},
"66e1f6a7b5224be6aecf17932e28fb6c": {
"model_module": "jupyter-vuetify",
"model_name": "RowModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "RowModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"align": null,
"align_content": null,
"align_content_lg": null,
"align_content_md": null,
"align_content_sm": null,
"align_content_xl": null,
"align_lg": null,
"align_md": null,
"align_sm": null,
"align_xl": null,
"attributes": {},
"children": [
"IPY_MODEL_b6b8d0e880894961b201fc4855051ca4"
],
"class_": "solara-content-main",
"dense": null,
"justify": null,
"justify_lg": null,
"justify_md": null,
"justify_sm": null,
"justify_xl": null,
"layout": null,
"no_gutters": false,
"slot": null,
"style_": null,
"tag": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"030d8ae1370244dc9d4bc5b59a0963ff": {
"model_module": "jupyter-vuetify",
"model_name": "ToolbarTitleModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "ToolbarTitleModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_eab5650d01604c4db8994714b5462e6f"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"11afd66473424a088be81a74608a3471": {
"model_module": "jupyter-vuetify",
"model_name": "SpacerModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SpacerModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"d9c74089e8ac43c890ae81ccf5f6a1e5": {
"model_module": "jupyter-vuetify",
"model_name": "BtnModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [
"click"
],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "BtnModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"absolute": null,
"active_class": null,
"append": null,
"attributes": {},
"block": null,
"bottom": null,
"children": [
"IPY_MODEL_36d2d9dba6af4bf38ee74c7ae9a0cb70"
],
"class_": "",
"color": null,
"dark": false,
"depressed": null,
"disabled": false,
"elevation": null,
"exact": null,
"exact_active_class": null,
"fab": null,
"fixed": null,
"height": null,
"href": null,
"icon": true,
"input_value": null,
"large": null,
"layout": null,
"left": null,
"light": null,
"link": null,
"loading": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"nuxt": null,
"outlined": false,
"replace": null,
"retain_focus_on_click": null,
"right": null,
"ripple": null,
"rounded": null,
"slot": null,
"small": null,
"style_": "",
"tag": null,
"target": null,
"text": false,
"tile": null,
"to": null,
"top": null,
"type": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"value": null,
"width": null,
"x_large": null,
"x_small": null
}
},
"b6b8d0e880894961b201fc4855051ca4": {
"model_module": "jupyter-vuetify",
"model_name": "ColModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "ColModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"align_self": null,
"attributes": {},
"children": [
"IPY_MODEL_d72ec1ae166f42898dde2eda3a3ac462"
],
"class_": null,
"cols": 12,
"layout": null,
"lg": null,
"md": null,
"offset": null,
"offset_lg": null,
"offset_md": null,
"offset_sm": null,
"offset_xl": null,
"order": null,
"order_lg": null,
"order_md": null,
"order_sm": null,
"order_xl": null,
"slot": null,
"sm": null,
"style_": null,
"tag": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"xl": null
}
},
"eab5650d01604c4db8994714b5462e6f": {
"model_module": "jupyter-vuetify",
"model_name": "HtmlModel",
"model_module_version": "^1.9.4",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "HtmlModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"Creating Array in NumPy"
],
"class_": "",
"layout": null,
"slot": null,
"style_": "",
"tag": "span",
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"36d2d9dba6af4bf38ee74c7ae9a0cb70": {
"model_module": "jupyter-vuetify",
"model_name": "IconModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "IconModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"mdi-fullscreen"
],
"class_": null,
"color": null,
"dark": null,
"dense": null,
"disabled": null,
"large": null,
"layout": null,
"left": false,
"light": null,
"right": null,
"size": null,
"slot": null,
"small": null,
"style_": null,
"tag": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"x_large": null,
"x_small": null
}
},
"d72ec1ae166f42898dde2eda3a3ac462": {
"model_module": "jupyter-vuetify",
"model_name": "SheetModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SheetModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_3e379f500f50457499299668f7375871",
"IPY_MODEL_8977b91b3b3e4820adced0b0f328b088"
],
"class_": "d-flex ma-0",
"color": null,
"dark": null,
"elevation": 0,
"height": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"slot": null,
"style_": "flex-direction: column; align-items: stretch; row-gap: 12px;;",
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"3e379f500f50457499299668f7375871": {
"model_module": "jupyter-vuetify",
"model_name": "HtmlModel",
"model_module_version": "^1.9.4",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "HtmlModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"attributes": {},
"children": [],
"class_": "",
"layout": null,
"slot": null,
"style_": "display; none",
"tag": "div",
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"8977b91b3b3e4820adced0b0f328b088": {
"model_module": "jupyter-vuetify",
"model_name": "SheetModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SheetModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_b112aba0ff7d43658296d578498ef986"
],
"class_": "d-flex ma-0",
"color": null,
"dark": null,
"elevation": 0,
"height": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"slot": null,
"style_": "flex-direction: row; align-items: stretch; justify-content: start; column-gap: 12px;;",
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"b112aba0ff7d43658296d578498ef986": {
"model_module": "jupyter-vuetify",
"model_name": "SheetModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SheetModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_f3489cc1669b4382b307d890dc34a647"
],
"class_": "d-flex",
"color": null,
"dark": null,
"elevation": 0,
"height": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"slot": null,
"style_": "flex-direction: column; align-items: stretch;flex-grow: 1;",
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"f3489cc1669b4382b307d890dc34a647": {
"model_module": "jupyter-vuetify",
"model_name": "SheetModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SheetModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_eab77c11dadb4ccc80bbb1a47d66e9db",
"IPY_MODEL_5dcd36e171e64f42a4d09cdca089e3c4",
"IPY_MODEL_13aa13c17f884eafa3e9f1daf0091bc9"
],
"class_": "d-flex ma-0",
"color": null,
"dark": null,
"elevation": 0,
"height": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"slot": null,
"style_": "flex-direction: row; align-items: stretch; justify-content: start; column-gap: 12px;;",
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"eab77c11dadb4ccc80bbb1a47d66e9db": {
"model_module": "jupyter-vuetify",
"model_name": "CardModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"active_class": null,
"append": null,
"attributes": {},
"children": [
"IPY_MODEL_4a3c61c5bc5a4a53bfe018c5bac568d7",
"IPY_MODEL_210cbe92ee7c41e5bd7f384d5174b902"
],
"class_": "ma-2",
"color": null,
"dark": null,
"disabled": null,
"elevation": 0,
"exact": null,
"exact_active_class": null,
"flat": null,
"height": null,
"hover": null,
"href": null,
"img": null,
"layout": null,
"light": null,
"link": null,
"loader_height": null,
"loading": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"nuxt": null,
"outlined": null,
"raised": null,
"replace": null,
"ripple": null,
"shaped": null,
"slot": null,
"style_": "border-style:dashed;border-width:2;border-color:#000;border-radius:8px;",
"tag": null,
"target": null,
"tile": null,
"to": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"5dcd36e171e64f42a4d09cdca089e3c4": {
"model_module": "jupyter-vuetify",
"model_name": "CardModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"active_class": null,
"append": null,
"attributes": {},
"children": [
"IPY_MODEL_d8a60698326f40708adb01e9a94c9319",
"IPY_MODEL_a70568029f304cdaad3484dd042fb715"
],
"class_": "ma-2",
"color": null,
"dark": null,
"disabled": null,
"elevation": 0,
"exact": null,
"exact_active_class": null,
"flat": null,
"height": null,
"hover": null,
"href": null,
"img": null,
"layout": null,
"light": null,
"link": null,
"loader_height": null,
"loading": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"nuxt": null,
"outlined": null,
"raised": null,
"replace": null,
"ripple": null,
"shaped": null,
"slot": null,
"style_": "border-style:dashed;border-width:2;border-color:#000;border-radius:8px;",
"tag": null,
"target": null,
"tile": null,
"to": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"13aa13c17f884eafa3e9f1daf0091bc9": {
"model_module": "jupyter-vuetify",
"model_name": "CardModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"active_class": null,
"append": null,
"attributes": {},
"children": [
"IPY_MODEL_29cf325dc92f47b28c67c579c66ec843",
"IPY_MODEL_91489bf6762a4568bf5f83171ba3eecc"
],
"class_": "ma-2",
"color": null,
"dark": null,
"disabled": null,
"elevation": 0,
"exact": null,
"exact_active_class": null,
"flat": null,
"height": null,
"hover": null,
"href": null,
"img": null,
"layout": null,
"light": null,
"link": null,
"loader_height": null,
"loading": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"nuxt": null,
"outlined": null,
"raised": null,
"replace": null,
"ripple": null,
"shaped": null,
"slot": null,
"style_": "border-style:dashed;border-width:2;border-color:#000;border-radius:8px;",
"tag": null,
"target": null,
"tile": null,
"to": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"4a3c61c5bc5a4a53bfe018c5bac568d7": {
"model_module": "jupyter-vuetify",
"model_name": "CardTitleModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTitleModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"Array"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"210cbe92ee7c41e5bd7f384d5174b902": {
"model_module": "jupyter-vuetify",
"model_name": "CardTextModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTextModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_35a5c60c869e4b1f9e06f1ddbe9cf3f5",
"IPY_MODEL_b512632e30ac45bab2f8f9163bced8e4"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"d8a60698326f40708adb01e9a94c9319": {
"model_module": "jupyter-vuetify",
"model_name": "CardTitleModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTitleModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"Functions"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"a70568029f304cdaad3484dd042fb715": {
"model_module": "jupyter-vuetify",
"model_name": "CardTextModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTextModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_ca8f27d361f547338816d7a584659c32"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"29cf325dc92f47b28c67c579c66ec843": {
"model_module": "jupyter-vuetify",
"model_name": "CardTitleModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTitleModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"Statistics"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"91489bf6762a4568bf5f83171ba3eecc": {
"model_module": "jupyter-vuetify",
"model_name": "CardTextModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTextModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_0f78a42c6cd8435db589a58170d70a60"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"35a5c60c869e4b1f9e06f1ddbe9cf3f5": {
"model_module": "jupyter-vuetify",
"model_name": "VuetifyTemplateModel",
"model_module_version": "^1.9.4",
"state": {
"_component_instances": [],
"_dom_classes": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "VuetifyTemplateModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"components": null,
"css": null,
"data": null,
"events": [],
"layout": "IPY_MODEL_d7ca39ec7d694f299373a3f963d7e02f",
"methods": null,
"template": "\n<template>\n <div class=\"solara-markdown rendered_html jp-RenderedHTMLCommon\" style=\"\"><p><code>array =</code></p></div>\n</template>\n\n<script>\nmodule.exports = {\n async mounted() {\n await this.loadRequire();\n this.mermaid = await this.loadMermaid();\n this.mermaid.init();\n this.latexSettings = {\n delimiters: [\n {left: \"$$\", right: \"$$\", display: true},\n {left: \"$\", right: \"$\", display: false},\n {left: \"\\\\[\", right: \"\\\\]\", display: true},\n {left: \"\\\\(\", right: \"\\\\)\", display: false}\n ]\n };\n if (window.renderMathInElement) {\n window.renderMathInElement(this.$el, this.latexSettings);\n } else if (window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement = await this.loadKatexExt();\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n this.$el.querySelectorAll(\"a\").forEach(a => this.setupRouter(a))\n window.md = this.$el\n },\n methods: {\n setupRouter(a) {\n let href = a.attributes['href'].value;\n if(href.startsWith(\"./\")) {\n // TODO: should we really do this?\n href = location.pathname + href.substr(1);\n a.attributes['href'].href = href;\n }\n let authLink = href.starswith(\"/_solara/auth/\");\n if( (href.startsWith(\"./\") || href.startsWith(\"/\")) && !authLink) {\n a.onclick = e => {\n console.log(\"clicked\", href)\n if(href.startsWith(\"./\")) {\n solara.router.push(href);\n } else {\n solara.router.push(href);\n }\n e.preventDefault()\n }\n } else if(href.startsWith(\"#\")) {\n href = location.pathname + href;\n a.attributes['href'].value = href;\n } else {\n console.log(\"href\", href, \"is not a local link\")\n }\n },\n async loadKatex() {\n require.config({\n map: {\n '*': {\n 'katex': `${this.getCdn()}/[email protected]/dist/katex.min.js`,\n }\n }\n });\n const link = document.createElement('link');\n link.type = \"text/css\";\n link.rel = \"stylesheet\";\n link.href = `${this.getCdn()}/[email protected]/dist/katex.min.css`;\n document.head.appendChild(link);\n },\n async loadKatexExt() {\n this.loadKatex();\n return (await this.import([`${this.getCdn()}/[email protected]/dist/contrib/auto-render.min.js`]))[0]\n },\n async loadMermaid() {\n return (await this.import([`${this.getCdn()}/[email protected]/dist/mermaid.min.js`]))[0]\n },\n import(dependencies) {\n return this.loadRequire().then(\n () => {\n if (window.jupyterVue) {\n // in jupyterlab, we take Vue from ipyvue/jupyterVue\n define(\"vue\", [], () => window.jupyterVue.Vue);\n } else {\n define(\"vue\", ['jupyter-vue'], jupyterVue => jupyterVue.Vue);\n }\n return new Promise((resolve, reject) => {\n requirejs(dependencies, (...modules) => resolve(modules));\n })\n }\n );\n },\n loadRequire() {\n if (window.requirejs) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = `${this.getCdn()}/[email protected]/require.min.js`;\n script.onload = resolve;\n script.onerror = reject;\n document.head.appendChild(script);\n });\n },\n getJupyterBaseUrl() {\n // if base url is set, we use ./ for relative paths compared to the base url\n if (document.getElementsByTagName(\"base\").length) {\n return \"./\";\n }\n const labConfigData = document.getElementById('jupyter-config-data');\n if (labConfigData) {\n /* lab and Voila */\n return JSON.parse(labConfigData.textContent).baseUrl;\n }\n let base = document.body.dataset.baseUrl || document.baseURI;\n if (!base.endsWith('/')) {\n base += '/';\n }\n return base\n },\n getCdn() {\n return this.cdn || (window.solara ? window.solara.cdn : `${this.getJupyterBaseUrl()}_solara/cdn`);\n }\n },\n updated() {\n // if the html gets update, re-run mermaid\n this.mermaid.init();\n\n if(window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n }\n}\n</script>\n "
}
},
"b512632e30ac45bab2f8f9163bced8e4": {
"model_module": "@jupyter-widgets/output",
"model_name": "OutputModel",
"model_module_version": "1.0.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/output",
"_model_module_version": "1.0.0",
"_model_name": "OutputModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/output",
"_view_module_version": "1.0.0",
"_view_name": "OutputView",
"layout": "IPY_MODEL_818328f543414d5696714183d83d102c",
"msg_id": "",
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<IPython.core.display.Math object>",
"text/latex": "$\\displaystyle \\left[\\begin{array}{ccccc}\n 14 & 14 & 24 & 12 & 13 \\\\\n 18 & 20 & 29 & 16 & 11 \\\\\n 21 & 23 & 25 & 14 & 24\n\\end{array}\\right]$"
},
"metadata": {}
}
]
}
},
"ca8f27d361f547338816d7a584659c32": {
"model_module": "jupyter-vuetify",
"model_name": "VuetifyTemplateModel",
"model_module_version": "^1.9.4",
"state": {
"_component_instances": [],
"_dom_classes": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "VuetifyTemplateModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"components": null,
"css": null,
"data": null,
"events": [],
"layout": "IPY_MODEL_e578152150bc42e4bde0422b684a3409",
"methods": null,
"template": "\n<template>\n <div class=\"solara-markdown rendered_html jp-RenderedHTMLCommon\" style=\"\"><p><code>array.shape()</code> : (3, 5)</br>\n<code>len(array)</code> : 3</br>\n<code>array.ndim</code> : 2</br>\n<code>array.size</code> : 15</br>\n<code>array.dtype</code> : uint8</br>\n<code>array.dtype.name</code> : uint8</br></p></div>\n</template>\n\n<script>\nmodule.exports = {\n async mounted() {\n await this.loadRequire();\n this.mermaid = await this.loadMermaid();\n this.mermaid.init();\n this.latexSettings = {\n delimiters: [\n {left: \"$$\", right: \"$$\", display: true},\n {left: \"$\", right: \"$\", display: false},\n {left: \"\\\\[\", right: \"\\\\]\", display: true},\n {left: \"\\\\(\", right: \"\\\\)\", display: false}\n ]\n };\n if (window.renderMathInElement) {\n window.renderMathInElement(this.$el, this.latexSettings);\n } else if (window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement = await this.loadKatexExt();\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n this.$el.querySelectorAll(\"a\").forEach(a => this.setupRouter(a))\n window.md = this.$el\n },\n methods: {\n setupRouter(a) {\n let href = a.attributes['href'].value;\n if(href.startsWith(\"./\")) {\n // TODO: should we really do this?\n href = location.pathname + href.substr(1);\n a.attributes['href'].href = href;\n }\n let authLink = href.starswith(\"/_solara/auth/\");\n if( (href.startsWith(\"./\") || href.startsWith(\"/\")) && !authLink) {\n a.onclick = e => {\n console.log(\"clicked\", href)\n if(href.startsWith(\"./\")) {\n solara.router.push(href);\n } else {\n solara.router.push(href);\n }\n e.preventDefault()\n }\n } else if(href.startsWith(\"#\")) {\n href = location.pathname + href;\n a.attributes['href'].value = href;\n } else {\n console.log(\"href\", href, \"is not a local link\")\n }\n },\n async loadKatex() {\n require.config({\n map: {\n '*': {\n 'katex': `${this.getCdn()}/[email protected]/dist/katex.min.js`,\n }\n }\n });\n const link = document.createElement('link');\n link.type = \"text/css\";\n link.rel = \"stylesheet\";\n link.href = `${this.getCdn()}/[email protected]/dist/katex.min.css`;\n document.head.appendChild(link);\n },\n async loadKatexExt() {\n this.loadKatex();\n return (await this.import([`${this.getCdn()}/[email protected]/dist/contrib/auto-render.min.js`]))[0]\n },\n async loadMermaid() {\n return (await this.import([`${this.getCdn()}/[email protected]/dist/mermaid.min.js`]))[0]\n },\n import(dependencies) {\n return this.loadRequire().then(\n () => {\n if (window.jupyterVue) {\n // in jupyterlab, we take Vue from ipyvue/jupyterVue\n define(\"vue\", [], () => window.jupyterVue.Vue);\n } else {\n define(\"vue\", ['jupyter-vue'], jupyterVue => jupyterVue.Vue);\n }\n return new Promise((resolve, reject) => {\n requirejs(dependencies, (...modules) => resolve(modules));\n })\n }\n );\n },\n loadRequire() {\n if (window.requirejs) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = `${this.getCdn()}/[email protected]/require.min.js`;\n script.onload = resolve;\n script.onerror = reject;\n document.head.appendChild(script);\n });\n },\n getJupyterBaseUrl() {\n // if base url is set, we use ./ for relative paths compared to the base url\n if (document.getElementsByTagName(\"base\").length) {\n return \"./\";\n }\n const labConfigData = document.getElementById('jupyter-config-data');\n if (labConfigData) {\n /* lab and Voila */\n return JSON.parse(labConfigData.textContent).baseUrl;\n }\n let base = document.body.dataset.baseUrl || document.baseURI;\n if (!base.endsWith('/')) {\n base += '/';\n }\n return base\n },\n getCdn() {\n return this.cdn || (window.solara ? window.solara.cdn : `${this.getJupyterBaseUrl()}_solara/cdn`);\n }\n },\n updated() {\n // if the html gets update, re-run mermaid\n this.mermaid.init();\n\n if(window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n }\n}\n</script>\n "
}
},
"0f78a42c6cd8435db589a58170d70a60": {
"model_module": "jupyter-vuetify",
"model_name": "VuetifyTemplateModel",
"model_module_version": "^1.9.4",
"state": {
"_component_instances": [],
"_dom_classes": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "VuetifyTemplateModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"components": null,
"css": null,
"data": null,
"events": [],
"layout": "IPY_MODEL_fa57985d8fc74f5190a8997feff1d156",
"methods": null,
"template": "\n<template>\n <div class=\"solara-markdown rendered_html jp-RenderedHTMLCommon\" style=\"\"><p><code>array.sum()</code> : 278</br>\n<code>array.min()</code> : 11</br>\n<code>array.max()</code> : 29</br>\n<code>array.mean()</code> : 18.53</br>\n<code>np.median(array)</code> : 18.0</br></p></div>\n</template>\n\n<script>\nmodule.exports = {\n async mounted() {\n await this.loadRequire();\n this.mermaid = await this.loadMermaid();\n this.mermaid.init();\n this.latexSettings = {\n delimiters: [\n {left: \"$$\", right: \"$$\", display: true},\n {left: \"$\", right: \"$\", display: false},\n {left: \"\\\\[\", right: \"\\\\]\", display: true},\n {left: \"\\\\(\", right: \"\\\\)\", display: false}\n ]\n };\n if (window.renderMathInElement) {\n window.renderMathInElement(this.$el, this.latexSettings);\n } else if (window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement = await this.loadKatexExt();\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n this.$el.querySelectorAll(\"a\").forEach(a => this.setupRouter(a))\n window.md = this.$el\n },\n methods: {\n setupRouter(a) {\n let href = a.attributes['href'].value;\n if(href.startsWith(\"./\")) {\n // TODO: should we really do this?\n href = location.pathname + href.substr(1);\n a.attributes['href'].href = href;\n }\n let authLink = href.starswith(\"/_solara/auth/\");\n if( (href.startsWith(\"./\") || href.startsWith(\"/\")) && !authLink) {\n a.onclick = e => {\n console.log(\"clicked\", href)\n if(href.startsWith(\"./\")) {\n solara.router.push(href);\n } else {\n solara.router.push(href);\n }\n e.preventDefault()\n }\n } else if(href.startsWith(\"#\")) {\n href = location.pathname + href;\n a.attributes['href'].value = href;\n } else {\n console.log(\"href\", href, \"is not a local link\")\n }\n },\n async loadKatex() {\n require.config({\n map: {\n '*': {\n 'katex': `${this.getCdn()}/[email protected]/dist/katex.min.js`,\n }\n }\n });\n const link = document.createElement('link');\n link.type = \"text/css\";\n link.rel = \"stylesheet\";\n link.href = `${this.getCdn()}/[email protected]/dist/katex.min.css`;\n document.head.appendChild(link);\n },\n async loadKatexExt() {\n this.loadKatex();\n return (await this.import([`${this.getCdn()}/[email protected]/dist/contrib/auto-render.min.js`]))[0]\n },\n async loadMermaid() {\n return (await this.import([`${this.getCdn()}/[email protected]/dist/mermaid.min.js`]))[0]\n },\n import(dependencies) {\n return this.loadRequire().then(\n () => {\n if (window.jupyterVue) {\n // in jupyterlab, we take Vue from ipyvue/jupyterVue\n define(\"vue\", [], () => window.jupyterVue.Vue);\n } else {\n define(\"vue\", ['jupyter-vue'], jupyterVue => jupyterVue.Vue);\n }\n return new Promise((resolve, reject) => {\n requirejs(dependencies, (...modules) => resolve(modules));\n })\n }\n );\n },\n loadRequire() {\n if (window.requirejs) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = `${this.getCdn()}/[email protected]/require.min.js`;\n script.onload = resolve;\n script.onerror = reject;\n document.head.appendChild(script);\n });\n },\n getJupyterBaseUrl() {\n // if base url is set, we use ./ for relative paths compared to the base url\n if (document.getElementsByTagName(\"base\").length) {\n return \"./\";\n }\n const labConfigData = document.getElementById('jupyter-config-data');\n if (labConfigData) {\n /* lab and Voila */\n return JSON.parse(labConfigData.textContent).baseUrl;\n }\n let base = document.body.dataset.baseUrl || document.baseURI;\n if (!base.endsWith('/')) {\n base += '/';\n }\n return base\n },\n getCdn() {\n return this.cdn || (window.solara ? window.solara.cdn : `${this.getJupyterBaseUrl()}_solara/cdn`);\n }\n },\n updated() {\n // if the html gets update, re-run mermaid\n this.mermaid.init();\n\n if(window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n }\n}\n</script>\n "
}
},
"d7ca39ec7d694f299373a3f963d7e02f": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"818328f543414d5696714183d83d102c": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"e578152150bc42e4bde0422b684a3409": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"fa57985d8fc74f5190a8997feff1d156": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d283e9ee8e2d4d9dbb0ffe2035e5bf27": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"f421d6cde3ea4025a819ddfa416a1d6e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b71dcef816824970969b0223946cef29": {
"model_module": "jupyter-vuetify",
"model_name": "VuetifyTemplateModel",
"model_module_version": "^1.9.4",
"state": {
"_component_instances": [],
"_dom_classes": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "VuetifyTemplateModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"components": null,
"css": null,
"data": null,
"events": [],
"layout": "IPY_MODEL_d283e9ee8e2d4d9dbb0ffe2035e5bf27",
"methods": null,
"template": "\n<template>\n <div class=\"solara-markdown rendered_html jp-RenderedHTMLCommon\" style=\"\"><p><code>array =</code></p></div>\n</template>\n\n<script>\nmodule.exports = {\n async mounted() {\n await this.loadRequire();\n this.mermaid = await this.loadMermaid();\n this.mermaid.init();\n this.latexSettings = {\n delimiters: [\n {left: \"$$\", right: \"$$\", display: true},\n {left: \"$\", right: \"$\", display: false},\n {left: \"\\\\[\", right: \"\\\\]\", display: true},\n {left: \"\\\\(\", right: \"\\\\)\", display: false}\n ]\n };\n if (window.renderMathInElement) {\n window.renderMathInElement(this.$el, this.latexSettings);\n } else if (window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement = await this.loadKatexExt();\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n this.$el.querySelectorAll(\"a\").forEach(a => this.setupRouter(a))\n window.md = this.$el\n },\n methods: {\n setupRouter(a) {\n let href = a.attributes['href'].value;\n if(href.startsWith(\"./\")) {\n // TODO: should we really do this?\n href = location.pathname + href.substr(1);\n a.attributes['href'].href = href;\n }\n let authLink = href.starswith(\"/_solara/auth/\");\n if( (href.startsWith(\"./\") || href.startsWith(\"/\")) && !authLink) {\n a.onclick = e => {\n console.log(\"clicked\", href)\n if(href.startsWith(\"./\")) {\n solara.router.push(href);\n } else {\n solara.router.push(href);\n }\n e.preventDefault()\n }\n } else if(href.startsWith(\"#\")) {\n href = location.pathname + href;\n a.attributes['href'].value = href;\n } else {\n console.log(\"href\", href, \"is not a local link\")\n }\n },\n async loadKatex() {\n require.config({\n map: {\n '*': {\n 'katex': `${this.getCdn()}/[email protected]/dist/katex.min.js`,\n }\n }\n });\n const link = document.createElement('link');\n link.type = \"text/css\";\n link.rel = \"stylesheet\";\n link.href = `${this.getCdn()}/[email protected]/dist/katex.min.css`;\n document.head.appendChild(link);\n },\n async loadKatexExt() {\n this.loadKatex();\n return (await this.import([`${this.getCdn()}/[email protected]/dist/contrib/auto-render.min.js`]))[0]\n },\n async loadMermaid() {\n return (await this.import([`${this.getCdn()}/[email protected]/dist/mermaid.min.js`]))[0]\n },\n import(dependencies) {\n return this.loadRequire().then(\n () => {\n if (window.jupyterVue) {\n // in jupyterlab, we take Vue from ipyvue/jupyterVue\n define(\"vue\", [], () => window.jupyterVue.Vue);\n } else {\n define(\"vue\", ['jupyter-vue'], jupyterVue => jupyterVue.Vue);\n }\n return new Promise((resolve, reject) => {\n requirejs(dependencies, (...modules) => resolve(modules));\n })\n }\n );\n },\n loadRequire() {\n if (window.requirejs) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = `${this.getCdn()}/[email protected]/require.min.js`;\n script.onload = resolve;\n script.onerror = reject;\n document.head.appendChild(script);\n });\n },\n getJupyterBaseUrl() {\n // if base url is set, we use ./ for relative paths compared to the base url\n if (document.getElementsByTagName(\"base\").length) {\n return \"./\";\n }\n const labConfigData = document.getElementById('jupyter-config-data');\n if (labConfigData) {\n /* lab and Voila */\n return JSON.parse(labConfigData.textContent).baseUrl;\n }\n let base = document.body.dataset.baseUrl || document.baseURI;\n if (!base.endsWith('/')) {\n base += '/';\n }\n return base\n },\n getCdn() {\n return this.cdn || (window.solara ? window.solara.cdn : `${this.getJupyterBaseUrl()}_solara/cdn`);\n }\n },\n updated() {\n // if the html gets update, re-run mermaid\n this.mermaid.init();\n\n if(window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n }\n}\n</script>\n "
}
},
"6569a8a4ee5c40c7895a2a1317444a27": {
"model_module": "@jupyter-widgets/output",
"model_name": "OutputModel",
"model_module_version": "1.0.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/output",
"_model_module_version": "1.0.0",
"_model_name": "OutputModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/output",
"_view_module_version": "1.0.0",
"_view_name": "OutputView",
"layout": "IPY_MODEL_f421d6cde3ea4025a819ddfa416a1d6e",
"msg_id": "",
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<IPython.core.display.Math object>",
"text/latex": "$\\displaystyle \\left[\\begin{array}{ccccc}\n 14 & 14 & 24 & 12 & 13 \\\\\n 18 & 20 & 29 & 16 & 11 \\\\\n 21 & 23 & 25 & 14 & 24\n\\end{array}\\right]$"
},
"metadata": {}
}
]
}
},
"4667615a271149f1982bebb002d314fe": {
"model_module": "jupyter-vuetify",
"model_name": "CardTitleModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTitleModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"Array"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"10813dc626954357b8c38dddf24334fc": {
"model_module": "jupyter-vuetify",
"model_name": "CardTextModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTextModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_b71dcef816824970969b0223946cef29",
"IPY_MODEL_6569a8a4ee5c40c7895a2a1317444a27"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"b672bf7158a14c8e9e9cbf6c94614a3d": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1408c07eccd84d2a834094811078e08a": {
"model_module": "jupyter-vuetify",
"model_name": "VuetifyTemplateModel",
"model_module_version": "^1.9.4",
"state": {
"_component_instances": [],
"_dom_classes": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "VuetifyTemplateModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"components": null,
"css": null,
"data": null,
"events": [],
"layout": "IPY_MODEL_b672bf7158a14c8e9e9cbf6c94614a3d",
"methods": null,
"template": "\n<template>\n <div class=\"solara-markdown rendered_html jp-RenderedHTMLCommon\" style=\"\"><p><code>array.shape()</code> : (3, 5)</br>\n<code>len(array)</code> : 3</br>\n<code>array.ndim</code> : 2</br>\n<code>array.size</code> : 15</br>\n<code>array.dtype</code> : uint8</br>\n<code>array.dtype.name</code> : uint8</br></p></div>\n</template>\n\n<script>\nmodule.exports = {\n async mounted() {\n await this.loadRequire();\n this.mermaid = await this.loadMermaid();\n this.mermaid.init();\n this.latexSettings = {\n delimiters: [\n {left: \"$$\", right: \"$$\", display: true},\n {left: \"$\", right: \"$\", display: false},\n {left: \"\\\\[\", right: \"\\\\]\", display: true},\n {left: \"\\\\(\", right: \"\\\\)\", display: false}\n ]\n };\n if (window.renderMathInElement) {\n window.renderMathInElement(this.$el, this.latexSettings);\n } else if (window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement = await this.loadKatexExt();\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n this.$el.querySelectorAll(\"a\").forEach(a => this.setupRouter(a))\n window.md = this.$el\n },\n methods: {\n setupRouter(a) {\n let href = a.attributes['href'].value;\n if(href.startsWith(\"./\")) {\n // TODO: should we really do this?\n href = location.pathname + href.substr(1);\n a.attributes['href'].href = href;\n }\n let authLink = href.starswith(\"/_solara/auth/\");\n if( (href.startsWith(\"./\") || href.startsWith(\"/\")) && !authLink) {\n a.onclick = e => {\n console.log(\"clicked\", href)\n if(href.startsWith(\"./\")) {\n solara.router.push(href);\n } else {\n solara.router.push(href);\n }\n e.preventDefault()\n }\n } else if(href.startsWith(\"#\")) {\n href = location.pathname + href;\n a.attributes['href'].value = href;\n } else {\n console.log(\"href\", href, \"is not a local link\")\n }\n },\n async loadKatex() {\n require.config({\n map: {\n '*': {\n 'katex': `${this.getCdn()}/[email protected]/dist/katex.min.js`,\n }\n }\n });\n const link = document.createElement('link');\n link.type = \"text/css\";\n link.rel = \"stylesheet\";\n link.href = `${this.getCdn()}/[email protected]/dist/katex.min.css`;\n document.head.appendChild(link);\n },\n async loadKatexExt() {\n this.loadKatex();\n return (await this.import([`${this.getCdn()}/[email protected]/dist/contrib/auto-render.min.js`]))[0]\n },\n async loadMermaid() {\n return (await this.import([`${this.getCdn()}/[email protected]/dist/mermaid.min.js`]))[0]\n },\n import(dependencies) {\n return this.loadRequire().then(\n () => {\n if (window.jupyterVue) {\n // in jupyterlab, we take Vue from ipyvue/jupyterVue\n define(\"vue\", [], () => window.jupyterVue.Vue);\n } else {\n define(\"vue\", ['jupyter-vue'], jupyterVue => jupyterVue.Vue);\n }\n return new Promise((resolve, reject) => {\n requirejs(dependencies, (...modules) => resolve(modules));\n })\n }\n );\n },\n loadRequire() {\n if (window.requirejs) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = `${this.getCdn()}/[email protected]/require.min.js`;\n script.onload = resolve;\n script.onerror = reject;\n document.head.appendChild(script);\n });\n },\n getJupyterBaseUrl() {\n // if base url is set, we use ./ for relative paths compared to the base url\n if (document.getElementsByTagName(\"base\").length) {\n return \"./\";\n }\n const labConfigData = document.getElementById('jupyter-config-data');\n if (labConfigData) {\n /* lab and Voila */\n return JSON.parse(labConfigData.textContent).baseUrl;\n }\n let base = document.body.dataset.baseUrl || document.baseURI;\n if (!base.endsWith('/')) {\n base += '/';\n }\n return base\n },\n getCdn() {\n return this.cdn || (window.solara ? window.solara.cdn : `${this.getJupyterBaseUrl()}_solara/cdn`);\n }\n },\n updated() {\n // if the html gets update, re-run mermaid\n this.mermaid.init();\n\n if(window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n }\n}\n</script>\n "
}
},
"4816da4a4ba548879685db6b6c7c937e": {
"model_module": "jupyter-vuetify",
"model_name": "CardTitleModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTitleModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"Functions"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"954d2f8467494e7bbd3907afb181b598": {
"model_module": "jupyter-vuetify",
"model_name": "CardTextModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTextModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_1408c07eccd84d2a834094811078e08a"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"2ef924f3283a4e4ab5f8944bc475539c": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"3ec7f9f1e4a34a60a1ddccbdc1950475": {
"model_module": "jupyter-vuetify",
"model_name": "VuetifyTemplateModel",
"model_module_version": "^1.9.4",
"state": {
"_component_instances": [],
"_dom_classes": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "VuetifyTemplateModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"components": null,
"css": null,
"data": null,
"events": [],
"layout": "IPY_MODEL_2ef924f3283a4e4ab5f8944bc475539c",
"methods": null,
"template": "\n<template>\n <div class=\"solara-markdown rendered_html jp-RenderedHTMLCommon\" style=\"\"><p><code>array.sum()</code> : 278</br>\n<code>array.min()</code> : 11</br>\n<code>array.max()</code> : 29</br>\n<code>array.mean()</code> : 18.53</br>\n<code>np.median(array)</code> : 18.0</br></p></div>\n</template>\n\n<script>\nmodule.exports = {\n async mounted() {\n await this.loadRequire();\n this.mermaid = await this.loadMermaid();\n this.mermaid.init();\n this.latexSettings = {\n delimiters: [\n {left: \"$$\", right: \"$$\", display: true},\n {left: \"$\", right: \"$\", display: false},\n {left: \"\\\\[\", right: \"\\\\]\", display: true},\n {left: \"\\\\(\", right: \"\\\\)\", display: false}\n ]\n };\n if (window.renderMathInElement) {\n window.renderMathInElement(this.$el, this.latexSettings);\n } else if (window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement = await this.loadKatexExt();\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n this.$el.querySelectorAll(\"a\").forEach(a => this.setupRouter(a))\n window.md = this.$el\n },\n methods: {\n setupRouter(a) {\n let href = a.attributes['href'].value;\n if(href.startsWith(\"./\")) {\n // TODO: should we really do this?\n href = location.pathname + href.substr(1);\n a.attributes['href'].href = href;\n }\n let authLink = href.starswith(\"/_solara/auth/\");\n if( (href.startsWith(\"./\") || href.startsWith(\"/\")) && !authLink) {\n a.onclick = e => {\n console.log(\"clicked\", href)\n if(href.startsWith(\"./\")) {\n solara.router.push(href);\n } else {\n solara.router.push(href);\n }\n e.preventDefault()\n }\n } else if(href.startsWith(\"#\")) {\n href = location.pathname + href;\n a.attributes['href'].value = href;\n } else {\n console.log(\"href\", href, \"is not a local link\")\n }\n },\n async loadKatex() {\n require.config({\n map: {\n '*': {\n 'katex': `${this.getCdn()}/[email protected]/dist/katex.min.js`,\n }\n }\n });\n const link = document.createElement('link');\n link.type = \"text/css\";\n link.rel = \"stylesheet\";\n link.href = `${this.getCdn()}/[email protected]/dist/katex.min.css`;\n document.head.appendChild(link);\n },\n async loadKatexExt() {\n this.loadKatex();\n return (await this.import([`${this.getCdn()}/[email protected]/dist/contrib/auto-render.min.js`]))[0]\n },\n async loadMermaid() {\n return (await this.import([`${this.getCdn()}/[email protected]/dist/mermaid.min.js`]))[0]\n },\n import(dependencies) {\n return this.loadRequire().then(\n () => {\n if (window.jupyterVue) {\n // in jupyterlab, we take Vue from ipyvue/jupyterVue\n define(\"vue\", [], () => window.jupyterVue.Vue);\n } else {\n define(\"vue\", ['jupyter-vue'], jupyterVue => jupyterVue.Vue);\n }\n return new Promise((resolve, reject) => {\n requirejs(dependencies, (...modules) => resolve(modules));\n })\n }\n );\n },\n loadRequire() {\n if (window.requirejs) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = `${this.getCdn()}/[email protected]/require.min.js`;\n script.onload = resolve;\n script.onerror = reject;\n document.head.appendChild(script);\n });\n },\n getJupyterBaseUrl() {\n // if base url is set, we use ./ for relative paths compared to the base url\n if (document.getElementsByTagName(\"base\").length) {\n return \"./\";\n }\n const labConfigData = document.getElementById('jupyter-config-data');\n if (labConfigData) {\n /* lab and Voila */\n return JSON.parse(labConfigData.textContent).baseUrl;\n }\n let base = document.body.dataset.baseUrl || document.baseURI;\n if (!base.endsWith('/')) {\n base += '/';\n }\n return base\n },\n getCdn() {\n return this.cdn || (window.solara ? window.solara.cdn : `${this.getJupyterBaseUrl()}_solara/cdn`);\n }\n },\n updated() {\n // if the html gets update, re-run mermaid\n this.mermaid.init();\n\n if(window.MathJax && MathJax.Hub) {\n MathJax.Hub.Queue(['Typeset', MathJax.Hub, this.$el]);\n } else {\n window.renderMathInElement(this.$el, this.latexSettings);\n }\n }\n}\n</script>\n "
}
},
"b9d28567006a4d189b6c44be4af0ebac": {
"model_module": "jupyter-vuetify",
"model_name": "CardTitleModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTitleModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"Statistics"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"f3fe68085ed24f84a441e77078974daa": {
"model_module": "jupyter-vuetify",
"model_name": "CardTextModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardTextModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_3ec7f9f1e4a34a60a1ddccbdc1950475"
],
"class_": null,
"layout": null,
"slot": null,
"style_": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"d5308c43d0124d87a7820d7e133cb4fb": {
"model_module": "jupyter-vuetify",
"model_name": "CardModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"active_class": null,
"append": null,
"attributes": {},
"children": [
"IPY_MODEL_4667615a271149f1982bebb002d314fe",
"IPY_MODEL_10813dc626954357b8c38dddf24334fc"
],
"class_": "ma-2",
"color": null,
"dark": null,
"disabled": null,
"elevation": 0,
"exact": null,
"exact_active_class": null,
"flat": null,
"height": null,
"hover": null,
"href": null,
"img": null,
"layout": null,
"light": null,
"link": null,
"loader_height": null,
"loading": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"nuxt": null,
"outlined": null,
"raised": null,
"replace": null,
"ripple": null,
"shaped": null,
"slot": null,
"style_": "border-style:dashed;border-width:2;border-color:#000;border-radius:8px;",
"tag": null,
"target": null,
"tile": null,
"to": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"5c4ea599d89944b2a899f78bfc02a6ba": {
"model_module": "jupyter-vuetify",
"model_name": "CardModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"active_class": null,
"append": null,
"attributes": {},
"children": [
"IPY_MODEL_4816da4a4ba548879685db6b6c7c937e",
"IPY_MODEL_954d2f8467494e7bbd3907afb181b598"
],
"class_": "ma-2",
"color": null,
"dark": null,
"disabled": null,
"elevation": 0,
"exact": null,
"exact_active_class": null,
"flat": null,
"height": null,
"hover": null,
"href": null,
"img": null,
"layout": null,
"light": null,
"link": null,
"loader_height": null,
"loading": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"nuxt": null,
"outlined": null,
"raised": null,
"replace": null,
"ripple": null,
"shaped": null,
"slot": null,
"style_": "border-style:dashed;border-width:2;border-color:#000;border-radius:8px;",
"tag": null,
"target": null,
"tile": null,
"to": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"8deb3110d2f84918993b617d55959d6c": {
"model_module": "jupyter-vuetify",
"model_name": "CardModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "CardModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"active_class": null,
"append": null,
"attributes": {},
"children": [
"IPY_MODEL_b9d28567006a4d189b6c44be4af0ebac",
"IPY_MODEL_f3fe68085ed24f84a441e77078974daa"
],
"class_": "ma-2",
"color": null,
"dark": null,
"disabled": null,
"elevation": 0,
"exact": null,
"exact_active_class": null,
"flat": null,
"height": null,
"hover": null,
"href": null,
"img": null,
"layout": null,
"light": null,
"link": null,
"loader_height": null,
"loading": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"nuxt": null,
"outlined": null,
"raised": null,
"replace": null,
"ripple": null,
"shaped": null,
"slot": null,
"style_": "border-style:dashed;border-width:2;border-color:#000;border-radius:8px;",
"tag": null,
"target": null,
"tile": null,
"to": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"39c384fe6bf14bfa8b6742cde24a5cbe": {
"model_module": "jupyter-vuetify",
"model_name": "SheetModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SheetModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_d5308c43d0124d87a7820d7e133cb4fb",
"IPY_MODEL_5c4ea599d89944b2a899f78bfc02a6ba",
"IPY_MODEL_8deb3110d2f84918993b617d55959d6c"
],
"class_": "d-flex ma-0",
"color": null,
"dark": null,
"elevation": 0,
"height": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"slot": null,
"style_": "flex-direction: row; align-items: stretch; justify-content: start; column-gap: 12px;;",
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"ea26e21069eb4f8c949f0bf4ce771f23": {
"model_module": "jupyter-vuetify",
"model_name": "SheetModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SheetModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_39c384fe6bf14bfa8b6742cde24a5cbe"
],
"class_": "d-flex",
"color": null,
"dark": null,
"elevation": 0,
"height": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"slot": null,
"style_": "flex-direction: column; align-items: stretch;flex-grow: 1;",
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"d71e96db203c42b5820663fd2b26d8f4": {
"model_module": "jupyter-vuetify",
"model_name": "HtmlModel",
"model_module_version": "^1.9.4",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.9.4",
"_model_name": "HtmlModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.9.4",
"_view_name": "VuetifyView",
"attributes": {},
"children": [],
"class_": "",
"layout": null,
"slot": null,
"style_": "display; none",
"tag": "div",
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": []
}
},
"96844965ffc24e989abf7d18aa06957f": {
"model_module": "jupyter-vuetify",
"model_name": "SheetModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SheetModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_ea26e21069eb4f8c949f0bf4ce771f23"
],
"class_": "d-flex ma-0",
"color": null,
"dark": null,
"elevation": 0,
"height": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"slot": null,
"style_": "flex-direction: row; align-items: stretch; justify-content: start; column-gap: 12px;;",
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"451c5f84f6ae4f77986e31ffa9270a3a": {
"model_module": "jupyter-vuetify",
"model_name": "SheetModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "SheetModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"attributes": {},
"children": [
"IPY_MODEL_d71e96db203c42b5820663fd2b26d8f4",
"IPY_MODEL_96844965ffc24e989abf7d18aa06957f"
],
"class_": "d-flex ma-0",
"color": null,
"dark": null,
"elevation": 0,
"height": null,
"layout": null,
"light": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"slot": null,
"style_": "flex-direction: column; align-items: stretch; row-gap: 12px;;",
"tag": null,
"tile": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"width": null
}
},
"7acacd49fb704e85835577db79602f81": {
"model_module": "jupyter-vuetify",
"model_name": "ColModel",
"model_module_version": "^1.8.5",
"state": {
"_dom_classes": [],
"_events": [],
"_jupyter_vue": "IPY_MODEL_3c89895bfded477293148ed096a6bd76",
"_metadata": null,
"_model_module": "jupyter-vuetify",
"_model_module_version": "^1.8.5",
"_model_name": "ColModel",
"_view_count": null,
"_view_module": "jupyter-vuetify",
"_view_module_version": "^1.8.5",
"_view_name": "VuetifyView",
"align_self": null,
"attributes": {},
"children": [
"IPY_MODEL_451c5f84f6ae4f77986e31ffa9270a3a"
],
"class_": null,
"cols": 12,
"layout": null,
"lg": null,
"md": null,
"offset": null,
"offset_lg": null,
"offset_md": null,
"offset_sm": null,
"offset_xl": null,
"order": null,
"order_lg": null,
"order_md": null,
"order_sm": null,
"order_xl": null,
"slot": null,
"sm": null,
"style_": null,
"tag": null,
"v_model": "!!disabled!!",
"v_on": null,
"v_slots": [],
"xl": null
}
}
}
}
},
"cells": [
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"id": "D_j3xDBtaz43"
},
"outputs": [],
"source": [
"import contextlib\n",
"import io\n",
"\n",
"@contextlib.contextmanager\n",
"def suppress_output():\n",
" with contextlib.redirect_stdout(io.StringIO()), contextlib.redirect_stderr(io.StringIO()):\n",
" yield\n",
"\n",
"with suppress_output():\n",
" %pip install matrepr solara \"solara[assets]\""
]
},
{
"cell_type": "code",
"source": [
"import numpy as np\n",
"import solara\n",
"from matrepr import mdisplay, mprint, to_html, to_str, to_latex\n",
"from IPython.display import display, Math, Latex\n",
"import matrepr\n",
"np.random.seed(1000)\n",
"\n",
"%load_ext matrepr.latex"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "cm-wl3Mvc1I-",
"outputId": "fed8fa7a-c40e-411e-e7ec-e2c63b6c139c"
},
"execution_count": 43,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"The matrepr.latex extension is already loaded. To reload it, use:\n",
" %reload_ext matrepr.latex\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"array1 = np.random.randint(low=11, high=30, size=(3,5), dtype=np.uint8)\n",
"\n",
"state = solara.reactive({\n",
" \"xlabel\": \"XPoints\",\n",
" \"ylabel\": \"YPoints\",\n",
" \"grid\": False,\n",
" \"rotation\": 0})\n",
"\n",
"class NumPyViewer:\n",
"\n",
" _box_style = {\"border-style\": \"dashed\",\n",
" \"border-width\": 2,\n",
" \"border-color\": '#000',\n",
" \"border-radius\": \"8px\"}\n",
"\n",
" def __init__(self, array):\n",
" self.array = array\n",
" self.showArray()\n",
"\n",
" def gen_report(self):\n",
" markdown_report = \"\"\"\n",
" `array.shape()` : {}</br>\n",
" `len(array)` : {}</br>\n",
" `array.ndim` : {}</br>\n",
" `array.size` : {}</br>\n",
" `array.dtype` : {}</br>\n",
" `array.dtype.name` : {}</br>\n",
" \"\"\".format(self.array.shape,\n",
" len(self.array),\n",
" self.array.ndim,\n",
" self.array.size,\n",
" self.array.dtype,\n",
" self.array.dtype.name)\n",
" return markdown_report\n",
"\n",
" def gen_stats_report(self):\n",
" markdown_report = \"\"\"\n",
" `array.sum()` : {}</br>\n",
" `array.min()` : {}</br>\n",
" `array.max()` : {}</br>\n",
" `array.mean()` : {}</br>\n",
" `np.median(array)` : {}</br>\n",
" \"\"\".format(self.array.sum(),\n",
" self.array.min(),\n",
" self.array.max(),\n",
" round(self.array.mean(), 2),\n",
" np.median(self.array))\n",
" return markdown_report\n",
"\n",
" def showArray(self):\n",
" with solara.Row():\n",
" with solara.Card(title=\"Array\", elevation=0, style=self._box_style):\n",
" solara.Markdown('`array = `')\n",
" solara.display((Math(r'{}'.format(to_latex(self.array)))))\n",
" with solara.Card(title=\"Functions\", elevation=0, style=self._box_style):\n",
" solara.Markdown(self.gen_report())\n",
" with solara.Card(title=\"Statistics\", elevation=0, style=self._box_style):\n",
" solara.Markdown(self.gen_stats_report())\n",
"\n",
"\n",
"@solara.component\n",
"def Page():\n",
"\n",
" def update_state(updated_state):\n",
" state.value = {**(state.value.copy()), **updated_state}\n",
"\n",
" def on_value_change(key, updated_value):\n",
" update_state({key : updated_value})\n",
"\n",
" with solara.AppBarTitle():\n",
" solara.Text(\"Creating Array in NumPy\")\n",
" with solara.Row():\n",
" with solara.VBox():\n",
" NumPyViewer(array1)\n",
"Page()\n"
],
"metadata": {
"colab": {
"resources": {
"http://localhost:8080/_solara/cdn/[email protected]/require.min.js": {
"data": "CjwhRE9DVFlQRSBodG1sPgo8aHRtbCBsYW5nPWVuPgogIDxtZXRhIGNoYXJzZXQ9dXRmLTg+CiAgPG1ldGEgbmFtZT12aWV3cG9ydCBjb250ZW50PSJpbml0aWFsLXNjYWxlPTEsIG1pbmltdW0tc2NhbGU9MSwgd2lkdGg9ZGV2aWNlLXdpZHRoIj4KICA8dGl0bGU+RXJyb3IgNDA0IChOb3QgRm91bmQpISExPC90aXRsZT4KICA8c3R5bGU+CiAgICAqe21hcmdpbjowO3BhZGRpbmc6MH1odG1sLGNvZGV7Zm9udDoxNXB4LzIycHggYXJpYWwsc2Fucy1zZXJpZn1odG1se2JhY2tncm91bmQ6I2ZmZjtjb2xvcjojMjIyO3BhZGRpbmc6MTVweH1ib2R5e21hcmdpbjo3JSBhdXRvIDA7bWF4LXdpZHRoOjM5MHB4O21pbi1oZWlnaHQ6MTgwcHg7cGFkZGluZzozMHB4IDAgMTVweH0qID4gYm9keXtiYWNrZ3JvdW5kOnVybCgvL3d3dy5nb29nbGUuY29tL2ltYWdlcy9lcnJvcnMvcm9ib3QucG5nKSAxMDAlIDVweCBuby1yZXBlYXQ7cGFkZGluZy1yaWdodDoyMDVweH1we21hcmdpbjoxMXB4IDAgMjJweDtvdmVyZmxvdzpoaWRkZW59aW5ze2NvbG9yOiM3Nzc7dGV4dC1kZWNvcmF0aW9uOm5vbmV9YSBpbWd7Ym9yZGVyOjB9QG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDo3NzJweCl7Ym9keXtiYWNrZ3JvdW5kOm5vbmU7bWFyZ2luLXRvcDowO21heC13aWR0aDpub25lO3BhZGRpbmctcmlnaHQ6MH19I2xvZ297YmFja2dyb3VuZDp1cmwoLy93d3cuZ29vZ2xlLmNvbS9pbWFnZXMvbG9nb3MvZXJyb3JwYWdlL2Vycm9yX2xvZ28tMTUweDU0LnBuZykgbm8tcmVwZWF0O21hcmdpbi1sZWZ0Oi01cHh9QG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWluLXJlc29sdXRpb246MTkyZHBpKXsjbG9nb3tiYWNrZ3JvdW5kOnVybCgvL3d3dy5nb29nbGUuY29tL2ltYWdlcy9sb2dvcy9lcnJvcnBhZ2UvZXJyb3JfbG9nby0xNTB4NTQtMngucG5nKSBuby1yZXBlYXQgMCUgMCUvMTAwJSAxMDAlOy1tb3otYm9yZGVyLWltYWdlOnVybCgvL3d3dy5nb29nbGUuY29tL2ltYWdlcy9sb2dvcy9lcnJvcnBhZ2UvZXJyb3JfbG9nby0xNTB4NTQtMngucG5nKSAwfX1AbWVkaWEgb25seSBzY3JlZW4gYW5kICgtd2Via2l0LW1pbi1kZXZpY2UtcGl4ZWwtcmF0aW86Mil7I2xvZ297YmFja2dyb3VuZDp1cmwoLy93d3cuZ29vZ2xlLmNvbS9pbWFnZXMvbG9nb3MvZXJyb3JwYWdlL2Vycm9yX2xvZ28tMTUweDU0LTJ4LnBuZykgbm8tcmVwZWF0Oy13ZWJraXQtYmFja2dyb3VuZC1zaXplOjEwMCUgMTAwJX19I2xvZ297ZGlzcGxheTppbmxpbmUtYmxvY2s7aGVpZ2h0OjU0cHg7d2lkdGg6MTUwcHh9CiAgPC9zdHlsZT4KICA8YSBocmVmPS8vd3d3Lmdvb2dsZS5jb20vPjxzcGFuIGlkPWxvZ28gYXJpYS1sYWJlbD1Hb29nbGU+PC9zcGFuPjwvYT4KICA8cD48Yj40MDQuPC9iPiA8aW5zPlRoYXTigJlzIGFuIGVycm9yLjwvaW5zPgogIDxwPiAgPGlucz5UaGF04oCZcyBhbGwgd2Uga25vdy48L2lucz4K",
"ok": false,
"headers": [
[
"content-length",
"1449"
],
[
"content-type",
"text/html; charset=utf-8"
]
],
"status": 404,
"status_text": ""
}
},
"base_uri": "https://localhost:8080/",
"height": 367,
"referenced_widgets": [
"9a28656f10bc407dac9bc63eb69cbbfc",
"345a0c195f0d4109b07c96736609b6f1",
"027c7185acc84190b466fa72b02bd04a",
"a80ed2fee4e94dcfbf621b4167cc50e7",
"0190224c724c483a9d0aead199ab1ab2",
"66e1f6a7b5224be6aecf17932e28fb6c",
"030d8ae1370244dc9d4bc5b59a0963ff",
"11afd66473424a088be81a74608a3471",
"d9c74089e8ac43c890ae81ccf5f6a1e5",
"b6b8d0e880894961b201fc4855051ca4",
"eab5650d01604c4db8994714b5462e6f",
"36d2d9dba6af4bf38ee74c7ae9a0cb70",
"d72ec1ae166f42898dde2eda3a3ac462",
"3e379f500f50457499299668f7375871",
"8977b91b3b3e4820adced0b0f328b088",
"b112aba0ff7d43658296d578498ef986",
"f3489cc1669b4382b307d890dc34a647",
"eab77c11dadb4ccc80bbb1a47d66e9db",
"5dcd36e171e64f42a4d09cdca089e3c4",
"13aa13c17f884eafa3e9f1daf0091bc9",
"4a3c61c5bc5a4a53bfe018c5bac568d7",
"210cbe92ee7c41e5bd7f384d5174b902",
"d8a60698326f40708adb01e9a94c9319",
"a70568029f304cdaad3484dd042fb715",
"29cf325dc92f47b28c67c579c66ec843",
"91489bf6762a4568bf5f83171ba3eecc",
"35a5c60c869e4b1f9e06f1ddbe9cf3f5",
"b512632e30ac45bab2f8f9163bced8e4",
"ca8f27d361f547338816d7a584659c32",
"0f78a42c6cd8435db589a58170d70a60",
"d7ca39ec7d694f299373a3f963d7e02f",
"818328f543414d5696714183d83d102c",
"e578152150bc42e4bde0422b684a3409",
"fa57985d8fc74f5190a8997feff1d156",
"d283e9ee8e2d4d9dbb0ffe2035e5bf27",
"f421d6cde3ea4025a819ddfa416a1d6e",
"b71dcef816824970969b0223946cef29",
"6569a8a4ee5c40c7895a2a1317444a27",
"4667615a271149f1982bebb002d314fe",
"10813dc626954357b8c38dddf24334fc",
"b672bf7158a14c8e9e9cbf6c94614a3d",
"1408c07eccd84d2a834094811078e08a",
"4816da4a4ba548879685db6b6c7c937e",
"954d2f8467494e7bbd3907afb181b598",
"2ef924f3283a4e4ab5f8944bc475539c",
"3ec7f9f1e4a34a60a1ddccbdc1950475",
"b9d28567006a4d189b6c44be4af0ebac",
"f3fe68085ed24f84a441e77078974daa",
"d5308c43d0124d87a7820d7e133cb4fb",
"5c4ea599d89944b2a899f78bfc02a6ba",
"8deb3110d2f84918993b617d55959d6c",
"39c384fe6bf14bfa8b6742cde24a5cbe",
"ea26e21069eb4f8c949f0bf4ce771f23",
"d71e96db203c42b5820663fd2b26d8f4",
"96844965ffc24e989abf7d18aa06957f",
"451c5f84f6ae4f77986e31ffa9270a3a",
"7acacd49fb704e85835577db79602f81"
]
},
"id": "7cFcRZXUbmF8",
"outputId": "9d97a732-6ab2-430c-d26c-0712fa93679f"
},
"execution_count": 153,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"Html(layout=None, style_='display: none', tag='span')"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "9a28656f10bc407dac9bc63eb69cbbfc"
}
},
"metadata": {
"application/vnd.jupyter.widget-view+json": {
"colab": {
"custom_widget_manager": {
"url": "https://ssl.gstatic.com/colaboratory-static/widgets/colab-cdn-widget-manager/2b70e893a8ba7c0f/manager.min.js"
}
}
}
}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"Cannot show ipywidgets in text"
],
"text/html": [
"Cannot show widget. You probably want to rerun the code cell above (<i>Click in the code cell, and press Shift+Enter <kbd>⇧</kbd>+<kbd>↩</kbd></i>)."
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "345a0c195f0d4109b07c96736609b6f1"
}
},
"metadata": {
"application/vnd.jupyter.widget-view+json": {
"colab": {
"custom_widget_manager": {
"url": "https://ssl.gstatic.com/colaboratory-static/widgets/colab-cdn-widget-manager/2b70e893a8ba7c0f/manager.min.js"
}
}
}
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment