master > master: notebook - cleanup
This commit is contained in:
parent
dc5918682c
commit
c2ac8e4c13
@ -22,8 +22,9 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# imports\n",
|
||||
"import os;\n",
|
||||
"import sys;\n",
|
||||
"import sys; \n",
|
||||
"\n",
|
||||
"# NOTE: need this to force jupyter to reload imports:\n",
|
||||
"for key in list(sys.modules.keys()):\n",
|
||||
@ -49,11 +50,21 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"FunctionDiagramWidget(\n",
|
||||
" N = 2,\n",
|
||||
" fnames = ['f', 'g', 'h', 'i', 'j'],\n",
|
||||
" setnames = ['X', 'Y', 'Z', 'U', 'V', 'W'],\n",
|
||||
").run();"
|
||||
"# Userinput - Anzahl der Funktionen\n",
|
||||
"fnames = ['f', 'g', 'h', 'i', 'j'];\n",
|
||||
"setnames = ['X', 'Y', 'Z', 'U', 'V', 'W'];\n",
|
||||
"ctrl = widgets.IntSlider(value=1, description=f'# Funktionen', min=1, max=len(fnames));\n",
|
||||
"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