Skip to content

Commit bacae52

Browse files
committed
add version info to Jupyter tutorial
1 parent 4eb200c commit bacae52

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

examples/python-control_tutorial.ipynb

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"id": "numerous-rochester",
66
"metadata": {},
77
"source": [
8-
"# Introduction to the Python Control Systems Library (python-control)\n",
9-
"\n",
10-
"Richard M. Murray, 13 Nov 2021 (updated 26 Dec 2024)\n",
8+
"# Python Control Systems Library (python-control) Tutorial\n",
119
"\n",
1210
"This Jupyter notebook contains an introduction to the basic operations in the Python Control Systems Library (python-control), a Python package for control system design. The tutorial consists of two examples:\n",
1311
"\n",
@@ -1209,13 +1207,35 @@
12091207
"We see that there is a small error in each axis. By adjusting the weights in the LQR controller we can adjust the steady state error (try it!)"
12101208
]
12111209
},
1210+
{
1211+
"cell_type": "markdown",
1212+
"id": "03b1fd75-579c-47da-805d-68f155957084",
1213+
"metadata": {},
1214+
"source": [
1215+
"## Computing environment"
1216+
]
1217+
},
12121218
{
12131219
"cell_type": "code",
1214-
"execution_count": null,
1215-
"id": "f31dd981-161a-49f0-a637-84128f7ec5ff",
1220+
"execution_count": 31,
1221+
"id": "280d8d0e-38bc-484c-8ed5-fd6a7f2b56b5",
12161222
"metadata": {},
1217-
"outputs": [],
1218-
"source": []
1223+
"outputs": [
1224+
{
1225+
"name": "stdout",
1226+
"output_type": "stream",
1227+
"text": [
1228+
"Control version: 0.10.1.dev324+g2fd3802a.d20241218\n",
1229+
"Slycot installed: True\n",
1230+
"NumPy version: 2.2.0\n"
1231+
]
1232+
}
1233+
],
1234+
"source": [
1235+
"print(\"Control version:\", ct.__version__)\n",
1236+
"print(\"Slycot installed:\", ct.slycot_check())\n",
1237+
"print(\"NumPy version:\", np.__version__)"
1238+
]
12191239
}
12201240
],
12211241
"metadata": {

0 commit comments

Comments
 (0)