master > master: notebook - cleanup
This commit is contained in:
parent
dc5918682c
commit
c2ac8e4c13
@ -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();"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user