Skip to content

Commit a302c65

Browse files
committed
using base
1 parent 2506131 commit a302c65

File tree

1 file changed

+14
-30
lines changed

1 file changed

+14
-30
lines changed

docs/source/nbsample/run_deal.ipynb

+14-30
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,19 @@
1010
},
1111
{
1212
"cell_type": "code",
13-
"execution_count": 1,
13+
"execution_count": null,
1414
"id": "2e646c1c",
1515
"metadata": {},
1616
"outputs": [
1717
{
18-
"data": {
19-
"text/html": [
20-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800080; text-decoration-color: #800080; font-weight: bold\">Connecting engine server -&gt; </span><span style=\"color: #800080; text-decoration-color: #800080; font-weight: bold; text-decoration: underline\">http://localhost:8081</span>\n",
21-
"</pre>\n"
22-
],
23-
"text/plain": [
24-
"\u001b[1;35mConnecting engine server -> \u001b[0m\u001b[1;4;35mhttp://localhost:8081\u001b[0m\n"
25-
]
26-
},
27-
"metadata": {},
28-
"output_type": "display_data"
29-
},
30-
{
31-
"data": {
32-
"text/html": [
33-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">✅<span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">Connected, local lib:0.</span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">26.4</span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">, server:</span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">0.27</span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">.</span><span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">4</span>\n",
34-
"</pre>\n"
35-
],
36-
"text/plain": [
37-
"\u001b[1;32mConnected, local li\u001b[0m\u001b[1;32mb:0\u001b[0m\u001b[1;32m.\u001b[0m\u001b[1;32m26.4\u001b[0m\u001b[1;32m, server:\u001b[0m\u001b[1;32m0.27\u001b[0m\u001b[1;32m.\u001b[0m\u001b[1;32m4\u001b[0m\n"
38-
]
39-
},
40-
"metadata": {},
41-
"output_type": "display_data"
18+
"ename": "",
19+
"evalue": "",
20+
"output_type": "error",
21+
"traceback": [
22+
"\u001b[1;31mRunning cells with 'Python 3.12.3' requires the ipykernel package.\n",
23+
"\u001b[1;31mRun the following command to install 'ipykernel' into the Python environment. \n",
24+
"\u001b[1;31mCommand: '/opt/homebrew/bin/python3.12 -m pip install ipykernel -U --user --force-reinstall'"
25+
]
4226
}
4327
],
4428
"source": [
@@ -73,7 +57,7 @@
7357
}
7458
],
7559
"source": [
76-
"import absbox.examples as examples"
60+
"import absbox.examples.base as base"
7761
]
7862
},
7963
{
@@ -88,7 +72,7 @@
8872
" ,None)\n",
8973
"\n",
9074
"\n",
91-
"r = localAPI.run(examples.test01\n",
75+
"r = localAPI.run(base.test01\n",
9276
" ,poolAssump=myAssumption\n",
9377
" ,read=True)"
9478
]
@@ -132,7 +116,7 @@
132116
" ,None\n",
133117
" ,None)\n",
134118
"\n",
135-
"r = localAPI.runByScenarios(examples.test01\n",
119+
"r = localAPI.runByScenarios(base.test01\n",
136120
" ,poolAssump={\"00\":myAssumption\n",
137121
" ,\"stressed\":myAssumption2}\n",
138122
" ,read=True)"
@@ -1189,8 +1173,8 @@
11891173
"metadata": {},
11901174
"outputs": [],
11911175
"source": [
1192-
"r = localAPI.runStructs({\"A\":examples.test01\n",
1193-
" ,\"B\":examples.test02}\n",
1176+
"r = localAPI.runStructs({\"A\":base.test01\n",
1177+
" ,\"B\":base.test02}\n",
11941178
" ,read=True)"
11951179
]
11961180
},

0 commit comments

Comments
 (0)