master > master: notebook - cleanup

This commit is contained in:
RD 2022-10-23 14:13:30 +02:00
parent dc5918682c
commit c2ac8e4c13

View File

@ -22,8 +22,9 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"# imports\n",
"import os;\n", "import os;\n",
"import sys;\n", "import sys; \n",
"\n", "\n",
"# NOTE: need this to force jupyter to reload imports:\n", "# NOTE: need this to force jupyter to reload imports:\n",
"for key in list(sys.modules.keys()):\n", "for key in list(sys.modules.keys()):\n",
@ -49,11 +50,21 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"FunctionDiagramWidget(\n", "# Userinput - Anzahl der Funktionen\n",
" N = 2,\n", "fnames = ['f', 'g', 'h', 'i', 'j'];\n",
" fnames = ['f', 'g', 'h', 'i', 'j'],\n", "setnames = ['X', 'Y', 'Z', 'U', 'V', 'W'];\n",
" setnames = ['X', 'Y', 'Z', 'U', 'V', 'W'],\n", "ctrl = widgets.IntSlider(value=1, description=f'# Funktionen', min=1, max=len(fnames));\n",
").run();" "display(ctrl);"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Widget - Mengen und Funktionen\n",
"FunctionDiagramWidget(N=ctrl.value, fnames=fnames, setnames=setnames).run();"
] ]
}, },
{ {