This commit is contained in:
2024-06-04 19:14:01 +00:00
parent ae5b2ca565
commit b87224da5b
11 changed files with 1696 additions and 9 deletions
+66
View File
@@ -100,6 +100,72 @@
"import matplotlib\n",
"os.environ"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "eb38de31-fc19-4515-b08d-9cd7607ea958",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "75642bda0eed47598e340b8c1766949a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"interactive(children=(IntSlider(value=5, description='x', max=10), Output()), _dom_classes=('widget-interact',…"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Done\n"
]
}
],
"source": [
"import ipywidgets\n",
"from ipywidgets import interact, IntSlider\n",
"\n",
"def f(x):\n",
" return x\n",
"\n",
"interact(f, x=IntSlider(min=0, max=10, step=1, value=5))\n",
"print(\"Done\")\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "f46e46a7-9b57-44aa-9bc9-dcbcf643bc88",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"jupyter-events==0.10.0\n",
"jupyter-lsp==2.2.5\n",
"jupyter_client==8.6.2\n",
"jupyter_core==5.7.2\n",
"jupyter_server==2.14.1\n",
"jupyter_server_terminals==0.5.3\n",
"jupyterlab==4.2.1\n",
"jupyterlab_pygments==0.3.0\n",
"jupyterlab_server==2.27.2\n",
"jupyterlab_widgets==3.0.11\n"
]
}
],
"source": [
"!pip freeze | grep jupyter"
]
}
],
"metadata": {