| 1 |
{ |
| 2 |
"cells": [ |
| 3 |
{ |
| 4 |
"attachments": {}, |
| 5 |
"cell_type": "markdown", |
| 6 |
"id": "dadf674b-c85d-46f5-b0fb-17f33a757e2c", |
| 7 |
"metadata": {}, |
| 8 |
"source": [ |
| 9 |
"# ISystemtap: An Interactive Systemtap Notebook\n", |
| 10 |
"<img src=\"https://sourceware.org/systemtap/smileytap.svg\" width=\"100em\" height=\"100em\" style=\"float: left; padding: 1em\">\n", |
| 11 |
"<img src=\"https://cdn.pixabay.com/photo/2014/04/02/10/55/plus-304947_1280.png\" width=\"30em\" height=\"30em\" style=\"float: left; padding-top: 3em\">\n", |
| 12 |
"<img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Jupyter_logo.svg/1200px-Jupyter_logo.svg.png\" width=\"85em\" height=\"85em\" style=\"padding: 1em\">\n", |
| 13 |
"\n", |
| 14 |
"## Introduction\n", |
| 15 |
"Welcome the ISystemtap. We will first introduce the core concept of **cells** and **namespaces**.\n", |
| 16 |
"\n", |
| 17 |
"* **cell** : A single code block. These come in various forms, specified by the **magic** first line `%%foo`. To see all the magic commands use the `%%help` **magic**. Only one cell can be executed at one time.\n", |
| 18 |
"* **namespace** : A group of cells, joined under a common name. This name is specified as the optional first argument of the **magic** command\n", |
| 19 |
"\n", |
| 20 |
"We'll start with the 2 most important ISystemtap cells. The `%%edit` cell which contains Systemtap script blocks and the `%%run` cell which combines and runs the blocks.\n", |
| 21 |
"To get started execute (`Ctrl-Enter`) the *helloworld* cells and the *global* cells" |
| 22 |
] |
| 23 |
}, |
| 24 |
{ |
| 25 |
"cell_type": "code", |
| 26 |
"execution_count": null, |
| 27 |
"id": "44aa1812-c82e-43ab-95fc-21830ac04462", |
| 28 |
"metadata": { |
| 29 |
"scrolled": true, |
| 30 |
"tags": [] |
| 31 |
}, |
| 32 |
"outputs": [], |
| 33 |
"source": [ |
| 34 |
"%%edit helloworld\n", |
| 35 |
"probe oneshot{\n", |
| 36 |
" printf(\"Hello ISystemtap\\nI am in the namespace %s\\n\", module_name())\n", |
| 37 |
"}" |
| 38 |
] |
| 39 |
}, |
| 40 |
{ |
| 41 |
"cell_type": "code", |
| 42 |
"execution_count": null, |
| 43 |
"id": "2a814ed8-3a90-47ce-90af-e6f3894b5374", |
| 44 |
"metadata": { |
| 45 |
"tags": [] |
| 46 |
}, |
| 47 |
"outputs": [], |
| 48 |
"source": [ |
| 49 |
"%%run helloworld" |
| 50 |
] |
| 51 |
}, |
| 52 |
{ |
| 53 |
"cell_type": "code", |
| 54 |
"execution_count": null, |
| 55 |
"id": "0af7af41-6033-44f0-a808-38d7603d9c25", |
| 56 |
"metadata": {}, |
| 57 |
"outputs": [], |
| 58 |
"source": [ |
| 59 |
"%%edit\n", |
| 60 |
"global s = \"If a namespace is not specified I am in the\"" |
| 61 |
] |
| 62 |
}, |
| 63 |
{ |
| 64 |
"cell_type": "code", |
| 65 |
"execution_count": null, |
| 66 |
"id": "3e109555-9608-46d2-9053-887e1de741d9", |
| 67 |
"metadata": {}, |
| 68 |
"outputs": [], |
| 69 |
"source": [ |
| 70 |
"%%edit\n", |
| 71 |
"probe oneshot{\n", |
| 72 |
" printf(\"%s %s namespace\\n\", s, module_name())\n", |
| 73 |
"}" |
| 74 |
] |
| 75 |
}, |
| 76 |
{ |
| 77 |
"cell_type": "code", |
| 78 |
"execution_count": null, |
| 79 |
"id": "145d683d-d5cf-4ed9-be31-6c86efbb10d8", |
| 80 |
"metadata": {}, |
| 81 |
"outputs": [], |
| 82 |
"source": [ |
| 83 |
"%%run" |
| 84 |
] |
| 85 |
}, |
| 86 |
{ |
| 87 |
"cell_type": "markdown", |
| 88 |
"id": "9eeca457-2457-4fc5-afda-765ee0ff1c51", |
| 89 |
"metadata": {}, |
| 90 |
"source": [ |
| 91 |
"## Basic Controls\n", |
| 92 |
"Now we will investigate the basic controls of ISystemtap.\n", |
| 93 |
"\n", |
| 94 |
"Run the *controls* namespace and try starting and pausing the entire namespace as well as individual probes. You can also reset globals back to their initial values\n", |
| 95 |
"\n", |
| 96 |
"When you are done you can stop the namespace by clicking the Stop button or typing `I, I` into the cell input while in command mode" |
| 97 |
] |
| 98 |
}, |
| 99 |
{ |
| 100 |
"cell_type": "code", |
| 101 |
"execution_count": null, |
| 102 |
"id": "12b64d69-550f-4dcc-9580-b88190dc8261", |
| 103 |
"metadata": { |
| 104 |
"tags": [] |
| 105 |
}, |
| 106 |
"outputs": [], |
| 107 |
"source": [ |
| 108 |
"%%edit controls\n", |
| 109 |
"global t = 0\n", |
| 110 |
"probe timer.s(1) {\n", |
| 111 |
" t++\n", |
| 112 |
" printf(\"I have counted up to %d\\n\", t)\n", |
| 113 |
"}\n", |
| 114 |
"\n", |
| 115 |
"probe end {\n", |
| 116 |
" printf(\"I have completed\\n\")\n", |
| 117 |
"}" |
| 118 |
] |
| 119 |
}, |
| 120 |
{ |
| 121 |
"cell_type": "code", |
| 122 |
"execution_count": null, |
| 123 |
"id": "3a6e756e-70c2-4460-8132-bb141a0fc908", |
| 124 |
"metadata": { |
| 125 |
"tags": [] |
| 126 |
}, |
| 127 |
"outputs": [], |
| 128 |
"source": [ |
| 129 |
"%%run controls" |
| 130 |
] |
| 131 |
}, |
| 132 |
{ |
| 133 |
"cell_type": "markdown", |
| 134 |
"id": "78f98a74-79db-4828-ac78-e4e830527e6c", |
| 135 |
"metadata": {}, |
| 136 |
"source": [ |
| 137 |
"## Globals\n", |
| 138 |
"Now let's discuss the *Globals* tab in more detail and introduce a new cell type, the `%%python` cell.\n", |
| 139 |
"\n", |
| 140 |
"We'll demonstrate this using one of the Systemtap example scripts: alias_suffixes.stp" |
| 141 |
] |
| 142 |
}, |
| 143 |
{ |
| 144 |
"cell_type": "code", |
| 145 |
"execution_count": null, |
| 146 |
"id": "4b9cf993-9090-4f3e-b9c0-62a988e7fab7", |
| 147 |
"metadata": {}, |
| 148 |
"outputs": [], |
| 149 |
"source": [ |
| 150 |
"%%edit globals\n", |
| 151 |
"# Uses alias suffixes to track time intervals for a subset of kernel\n", |
| 152 |
"# functions. Based on func_time_stats.stp.\n", |
| 153 |
"\n", |
| 154 |
"global start, intervals\n", |
| 155 |
"\n", |
| 156 |
"# We can apply a suffix to multiple probe points designated by one alias:\n", |
| 157 |
"probe miscellany = syscall.{open,close,read,write} { }\n", |
| 158 |
"\n", |
| 159 |
"probe miscellany {\n", |
| 160 |
" start[name, tid()] = gettimeofday_us()\n", |
| 161 |
"}\n", |
| 162 |
"\n", |
| 163 |
"# The 'return' suffix is passed on to each of the underlying probe points:\n", |
| 164 |
"probe miscellany.return {\n", |
| 165 |
" t = gettimeofday_us()\n", |
| 166 |
" if([name, tid()] in start) old_t = start[name, tid()]\n", |
| 167 |
" if (old_t) intervals[name] <<< t - old_t\n", |
| 168 |
" delete start[name, tid()]\n", |
| 169 |
"}\n", |
| 170 |
"\n", |
| 171 |
"probe begin {\n", |
| 172 |
" printf(\"Collecting data... click Stop to end\\n\")\n", |
| 173 |
"}\n", |
| 174 |
"\n", |
| 175 |
"probe end {\n", |
| 176 |
" foreach (name in intervals) {\n", |
| 177 |
" printf(\"intervals for %s -- min:%dus avg:%dus max:%dus count:%d\\n\",\n", |
| 178 |
" name, @min(intervals[name]), @avg(intervals[name]),\n", |
| 179 |
" @max(intervals[name]), @count(intervals[name]))\n", |
| 180 |
" print(@hist_log(intervals[name]))\n", |
| 181 |
" }\n", |
| 182 |
"}" |
| 183 |
] |
| 184 |
}, |
| 185 |
{ |
| 186 |
"cell_type": "code", |
| 187 |
"execution_count": null, |
| 188 |
"id": "a3860fb5-a5c1-4823-b0d7-42e8ba85b789", |
| 189 |
"metadata": {}, |
| 190 |
"outputs": [], |
| 191 |
"source": [ |
| 192 |
"%%run globals -g --suppress-time-limits --suppress-handler-errors" |
| 193 |
] |
| 194 |
}, |
| 195 |
{ |
| 196 |
"cell_type": "markdown", |
| 197 |
"id": "69a609f0-929b-45c4-a7f2-b46c888ba075", |
| 198 |
"metadata": { |
| 199 |
"tags": [] |
| 200 |
}, |
| 201 |
"source": [ |
| 202 |
"As you can see the recorded globals are all visible under the *Globals* tab.\n", |
| 203 |
"\n", |
| 204 |
"The `%%python` cell has access to all of these globals. I'll use them to generate a new plot using bqplot" |
| 205 |
] |
| 206 |
}, |
| 207 |
{ |
| 208 |
"cell_type": "code", |
| 209 |
"execution_count": null, |
| 210 |
"id": "3cab19cf-8cac-4fe5-8298-cc6d6ccd9a0f", |
| 211 |
"metadata": {}, |
| 212 |
"outputs": [], |
| 213 |
"source": [ |
| 214 |
"%%python globals\n", |
| 215 |
"from bqplot import *\n", |
| 216 |
"import bqplot.pyplot as plt\n", |
| 217 |
"# We can access the globals\n", |
| 218 |
"print(start)\n", |
| 219 |
"print(intervals['write']['@avg'])\n", |
| 220 |
"\n", |
| 221 |
"# The bar labels and corresponding heights\n", |
| 222 |
"labels = [syscall for syscall in intervals.keys()]\n", |
| 223 |
"counts = [stats['@count'] for stats in intervals.values()]\n", |
| 224 |
"\n", |
| 225 |
"scale_x = OrdinalScale()\n", |
| 226 |
"scale_y = LinearScale()\n", |
| 227 |
"fig = plt.figure(\n", |
| 228 |
" title=\"Total Hits\",\n", |
| 229 |
" title_style={\"font-size\": \"2em\", \"fill\": \"red\"},\n", |
| 230 |
")\n", |
| 231 |
"def_tt = Tooltip(fields=['x', 'y'], labels = ['Syscall','Hits'])\n", |
| 232 |
"bar = plt.bar(x = labels, y = counts,\n", |
| 233 |
" scales = {'x': scale_x, \"y\": scale_y},\n", |
| 234 |
" colors = ['red'], stroke = 'white', stroke_width=0.4,\n", |
| 235 |
" tooltip = def_tt)\n", |
| 236 |
"# This is how we display plots using ISystemtap\n", |
| 237 |
"display(fig)" |
| 238 |
] |
| 239 |
}, |
| 240 |
{ |
| 241 |
"cell_type": "markdown", |
| 242 |
"id": "9702396c-3b6f-4d38-83a9-804e59c76d1b", |
| 243 |
"metadata": {}, |
| 244 |
"source": [ |
| 245 |
"## Examples and Probe Listing\n", |
| 246 |
"Now we'll discuss the `%%examples` cell. This cell can search through, preview and run the Systemtap examples\n", |
| 247 |
"\n", |
| 248 |
"Try out the `regex.stp` script with the argument \n", |
| 249 |
"\n", |
| 250 |
"functioncallcount.stp" |
| 251 |
] |
| 252 |
}, |
| 253 |
{ |
| 254 |
"cell_type": "code", |
| 255 |
"execution_count": null, |
| 256 |
"id": "79e42092-8008-4192-b4b5-6603a70d10b2", |
| 257 |
"metadata": {}, |
| 258 |
"outputs": [], |
| 259 |
"source": [ |
| 260 |
"%%examples" |
| 261 |
] |
| 262 |
}, |
| 263 |
{ |
| 264 |
"cell_type": "markdown", |
| 265 |
"id": "05fab6f1-7eb3-43a3-8162-425132978b9d", |
| 266 |
"metadata": {}, |
| 267 |
"source": [ |
| 268 |
"We also have the `%%probes` cell. This cell can list availible probes and their context variables\n", |
| 269 |
"\n", |
| 270 |
"Try listing `process.*`" |
| 271 |
] |
| 272 |
}, |
| 273 |
{ |
| 274 |
"cell_type": "code", |
| 275 |
"execution_count": null, |
| 276 |
"id": "9dd49171-9b3d-4a5d-8187-3719a1dec0bb", |
| 277 |
"metadata": {}, |
| 278 |
"outputs": [], |
| 279 |
"source": [ |
| 280 |
"%%probes" |
| 281 |
] |
| 282 |
}, |
| 283 |
{ |
| 284 |
"cell_type": "markdown", |
| 285 |
"id": "8701f5ed-5b3b-4c19-a4d1-16f003dea0df", |
| 286 |
"metadata": {}, |
| 287 |
"source": [ |
| 288 |
"## Writing our own scripts\n", |
| 289 |
"Finally we'll discuss the `%%script` cell which is just a combination of the `%%edit` and `%%run` cells, Like `%%run` cells, `%%script` cells can take regular systemtap options, but `%%script`s can also take arguments (with the `--args=(a,b,c)` flag)\n", |
| 290 |
"\n", |
| 291 |
"Let's try and write our own script, and take advantage of the **Systemtap Language Server** which allows for `tab` completion." |
| 292 |
] |
| 293 |
}, |
| 294 |
{ |
| 295 |
"cell_type": "code", |
| 296 |
"execution_count": null, |
| 297 |
"id": "88542b19-c19f-4ca3-b6cf-c202e345d001", |
| 298 |
"metadata": { |
| 299 |
"tags": [] |
| 300 |
}, |
| 301 |
"outputs": [], |
| 302 |
"source": [ |
| 303 |
"%%script my_own_script -v -g --suppress-time-limits --suppress-handler-errors --args(10)\n", |
| 304 |
"/*\n", |
| 305 |
"* Write a script which prints \"Hello World\" at the start\n", |
| 306 |
"* Then after 10 seconds, prints a histogram for the top 4 most used systemcalls\n", |
| 307 |
"*/\n", |
| 308 |
"\n", |
| 309 |
"# TODO: Define a global called word1\n", |
| 310 |
"gl word1 = \"Hello\"\n", |
| 311 |
"# ^\n", |
| 312 |
"\n", |
| 313 |
"global word2 = \"World\"\n", |
| 314 |
"\n", |
| 315 |
"probe begin {\n", |
| 316 |
" # TODO: Complete the second argument to word2\n", |
| 317 |
" printf(\"%s %s\\n\", word1, wo)\n", |
| 318 |
" # ^\n", |
| 319 |
"}\n", |
| 320 |
"\n", |
| 321 |
"global runtime = 1\n", |
| 322 |
"# TODO: Complete the probe point to timer.s(1)\n", |
| 323 |
"probe tim{\n", |
| 324 |
"# ^\n", |
| 325 |
" runtime++\n", |
| 326 |
" printf(\"%d seconds left\\n\", $1 - runtime)\n", |
| 327 |
" if(runtime >= $1){\n", |
| 328 |
" exit()\n", |
| 329 |
" }\n", |
| 330 |
"}\n", |
| 331 |
"\n", |
| 332 |
"global syscall_counts\n", |
| 333 |
"# TODO: Complete the process path to \"/bin/python\"\n", |
| 334 |
"probe process(\"/bin/pyth\").syscall{\n", |
| 335 |
"# ^\n", |
| 336 |
" if(execname() == \"jupyter-lab\"){\n", |
| 337 |
" # TODO: Complete the context variable to $syscall\n", |
| 338 |
" syscall_counts[syscall_name($sys)] <<< 1\n", |
| 339 |
" # ^\n", |
| 340 |
" }\n", |
| 341 |
"}\n", |
| 342 |
"\n", |
| 343 |
"probe end {\n", |
| 344 |
" # Iterate over the processeses\n", |
| 345 |
" foreach (syscall in syscall_counts- limit 4) {\n", |
| 346 |
" # TODO: Complete the macro to @hist_linear\n", |
| 347 |
" print(@(syscall_counts[syscall], 1, 1, 1))\n", |
| 348 |
" # ^\n", |
| 349 |
" }\n", |
| 350 |
"}" |
| 351 |
] |
| 352 |
}, |
| 353 |
{ |
| 354 |
"cell_type": "markdown", |
| 355 |
"id": "1b00de04-75db-4dd7-9f4f-6487d25ce046", |
| 356 |
"metadata": {}, |
| 357 |
"source": [ |
| 358 |
"For more information on availible Systemtap functions, probes and tapsets take a look at the corresponding man pages. These can be accessed as follows" |
| 359 |
] |
| 360 |
}, |
| 361 |
{ |
| 362 |
"cell_type": "code", |
| 363 |
"execution_count": null, |
| 364 |
"id": "cc0846a8-9be8-4985-90aa-8a403b9e7c82", |
| 365 |
"metadata": { |
| 366 |
"tags": [] |
| 367 |
}, |
| 368 |
"outputs": [], |
| 369 |
"source": [ |
| 370 |
"!man function::module_name\n", |
| 371 |
"!echo ------------------------------------------------------------------------------\n", |
| 372 |
"!man tapset::dentry" |
| 373 |
] |
| 374 |
} |
| 375 |
], |
| 376 |
"metadata": { |
| 377 |
"kernelspec": { |
| 378 |
"display_name": "ISystemtap", |
| 379 |
"language": "systemtap", |
| 380 |
"name": "isystemtap" |
| 381 |
}, |
| 382 |
"language_info": { |
| 383 |
"codemirror_mode": "systemtap", |
| 384 |
"file_extension": ".stp", |
| 385 |
"mimetype": "text/x-systemtap", |
| 386 |
"name": "systemtap" |
| 387 |
}, |
| 388 |
"toc-autonumbering": false, |
| 389 |
"toc-showcode": false, |
| 390 |
"toc-showmarkdowntxt": false, |
| 391 |
"toc-showtags": false, |
| 392 |
"widgets": { |
| 393 |
"application/vnd.jupyter.widget-state+json": { |
| 394 |
"state": { |
| 395 |
"00bc93a4a07045a2a5878c14f4c704d8": { |
| 396 |
"model_module": "@jupyter-widgets/controls", |
| 397 |
"model_module_version": "2.0.0", |
| 398 |
"model_name": "TextModel", |
| 399 |
"state": { |
| 400 |
"description": "stdin>", |
| 401 |
"disabled": true, |
| 402 |
"layout": "IPY_MODEL_564d942a26124d9ead7828b639d30d40", |
| 403 |
"style": "IPY_MODEL_b6ccf94e55a54536b336cc26d69188ff" |
| 404 |
} |
| 405 |
}, |
| 406 |
"025423bcf410487da647213afd6d8ed9": { |
| 407 |
"model_module": "@jupyter-widgets/base", |
| 408 |
"model_module_version": "2.0.0", |
| 409 |
"model_name": "LayoutModel", |
| 410 |
"state": {} |
| 411 |
}, |
| 412 |
"0c9d82393cc74da3ad6b619ff2e07e67": { |
| 413 |
"model_module": "@jupyter-widgets/base", |
| 414 |
"model_module_version": "2.0.0", |
| 415 |
"model_name": "LayoutModel", |
| 416 |
"state": {} |
| 417 |
}, |
| 418 |
"1be39da724bb4088af6834588fd53861": { |
| 419 |
"model_module": "@jupyter-widgets/controls", |
| 420 |
"model_module_version": "2.0.0", |
| 421 |
"model_name": "ButtonStyleModel", |
| 422 |
"state": { |
| 423 |
"font_family": null, |
| 424 |
"font_size": null, |
| 425 |
"font_style": null, |
| 426 |
"font_variant": null, |
| 427 |
"font_weight": null, |
| 428 |
"text_color": null, |
| 429 |
"text_decoration": null |
| 430 |
} |
| 431 |
}, |
| 432 |
"236eddc370d44449b13dc449f8cca4ff": { |
| 433 |
"model_module": "@jupyter-widgets/base", |
| 434 |
"model_module_version": "2.0.0", |
| 435 |
"model_name": "LayoutModel", |
| 436 |
"state": {} |
| 437 |
}, |
| 438 |
"23a82c7e6e0e474ba74717b2aae90bdb": { |
| 439 |
"model_module": "@jupyter-widgets/controls", |
| 440 |
"model_module_version": "2.0.0", |
| 441 |
"model_name": "HBoxModel", |
| 442 |
"state": { |
| 443 |
"children": [ |
| 444 |
"IPY_MODEL_e6663f2fb82e46fd976420fd676044b6", |
| 445 |
"IPY_MODEL_9ac12d04689d464b83c06e310a48dbb4", |
| 446 |
"IPY_MODEL_98da00dafc2a47f7aa88e28ca96db9ec" |
| 447 |
], |
| 448 |
"layout": "IPY_MODEL_558c3bc3db4f4b4eaae8c4226af44cbd" |
| 449 |
} |
| 450 |
}, |
| 451 |
"25a88d918394446ebb7191863e6516be": { |
| 452 |
"model_module": "@jupyter-widgets/base", |
| 453 |
"model_module_version": "2.0.0", |
| 454 |
"model_name": "LayoutModel", |
| 455 |
"state": {} |
| 456 |
}, |
| 457 |
"28845e2c01cf41d69c2612ca4757581f": { |
| 458 |
"model_module": "@jupyter-widgets/base", |
| 459 |
"model_module_version": "2.0.0", |
| 460 |
"model_name": "LayoutModel", |
| 461 |
"state": {} |
| 462 |
}, |
| 463 |
"301b507d8a80485b9a67df78cdd82607": { |
| 464 |
"model_module": "@jupyter-widgets/base", |
| 465 |
"model_module_version": "2.0.0", |
| 466 |
"model_name": "LayoutModel", |
| 467 |
"state": {} |
| 468 |
}, |
| 469 |
"3138620b4e5d48c1a2434eeaf5058cad": { |
| 470 |
"model_module": "@jupyter-widgets/controls", |
| 471 |
"model_module_version": "2.0.0", |
| 472 |
"model_name": "ButtonStyleModel", |
| 473 |
"state": { |
| 474 |
"font_family": null, |
| 475 |
"font_size": null, |
| 476 |
"font_style": null, |
| 477 |
"font_variant": null, |
| 478 |
"font_weight": null, |
| 479 |
"text_color": null, |
| 480 |
"text_decoration": null |
| 481 |
} |
| 482 |
}, |
| 483 |
"37c335910f154a35a29da06b1306a4f9": { |
| 484 |
"model_module": "@jupyter-widgets/controls", |
| 485 |
"model_module_version": "2.0.0", |
| 486 |
"model_name": "HBoxModel", |
| 487 |
"state": { |
| 488 |
"children": [ |
| 489 |
"IPY_MODEL_960bcd05fc7c4b41a4dd073d44f93a97", |
| 490 |
"IPY_MODEL_7f718a08f6b847aaaeed4b36d4c4172e" |
| 491 |
], |
| 492 |
"layout": "IPY_MODEL_81b1e50b6f6c451ab791da96b3eeda1b" |
| 493 |
} |
| 494 |
}, |
| 495 |
"437e3c09999c439981d95171ee6e8f1e": { |
| 496 |
"model_module": "@jupyter-widgets/output", |
| 497 |
"model_module_version": "1.0.0", |
| 498 |
"model_name": "OutputModel", |
| 499 |
"state": { |
| 500 |
"layout": "IPY_MODEL_25a88d918394446ebb7191863e6516be" |
| 501 |
} |
| 502 |
}, |
| 503 |
"4b37e61c18784011ad4652041db65460": { |
| 504 |
"model_module": "@jupyter-widgets/controls", |
| 505 |
"model_module_version": "2.0.0", |
| 506 |
"model_name": "LabelStyleModel", |
| 507 |
"state": { |
| 508 |
"description_width": "", |
| 509 |
"font_family": null, |
| 510 |
"font_size": null, |
| 511 |
"font_style": null, |
| 512 |
"font_variant": null, |
| 513 |
"font_weight": null, |
| 514 |
"text_color": null, |
| 515 |
"text_decoration": null |
| 516 |
} |
| 517 |
}, |
| 518 |
"558c3bc3db4f4b4eaae8c4226af44cbd": { |
| 519 |
"model_module": "@jupyter-widgets/base", |
| 520 |
"model_module_version": "2.0.0", |
| 521 |
"model_name": "LayoutModel", |
| 522 |
"state": {} |
| 523 |
}, |
| 524 |
"564d942a26124d9ead7828b639d30d40": { |
| 525 |
"model_module": "@jupyter-widgets/base", |
| 526 |
"model_module_version": "2.0.0", |
| 527 |
"model_name": "LayoutModel", |
| 528 |
"state": {} |
| 529 |
}, |
| 530 |
"59d33233dcce4957b8e1df5377ff3419": { |
| 531 |
"model_module": "@jupyter-widgets/controls", |
| 532 |
"model_module_version": "2.0.0", |
| 533 |
"model_name": "ButtonStyleModel", |
| 534 |
"state": { |
| 535 |
"font_family": null, |
| 536 |
"font_size": null, |
| 537 |
"font_style": null, |
| 538 |
"font_variant": null, |
| 539 |
"font_weight": null, |
| 540 |
"text_color": null, |
| 541 |
"text_decoration": null |
| 542 |
} |
| 543 |
}, |
| 544 |
"68f7c943396c430c9e958c10104deccc": { |
| 545 |
"model_module": "@jupyter-widgets/base", |
| 546 |
"model_module_version": "2.0.0", |
| 547 |
"model_name": "LayoutModel", |
| 548 |
"state": {} |
| 549 |
}, |
| 550 |
"7f3a9125baea4e9680b680b81abd66ec": { |
| 551 |
"model_module": "@jupyter-widgets/controls", |
| 552 |
"model_module_version": "2.0.0", |
| 553 |
"model_name": "GridBoxModel", |
| 554 |
"state": { |
| 555 |
"layout": "IPY_MODEL_acf5ad72376644ad875836b3ea0c3d1b" |
| 556 |
} |
| 557 |
}, |
| 558 |
"7f718a08f6b847aaaeed4b36d4c4172e": { |
| 559 |
"model_module": "@jupyter-widgets/controls", |
| 560 |
"model_module_version": "2.0.0", |
| 561 |
"model_name": "LabelModel", |
| 562 |
"state": { |
| 563 |
"layout": "IPY_MODEL_236eddc370d44449b13dc449f8cca4ff", |
| 564 |
"style": "IPY_MODEL_4b37e61c18784011ad4652041db65460", |
| 565 |
"value": "Memory: 0data/0text/0ctx/0net/0alloc KB" |
| 566 |
} |
| 567 |
}, |
| 568 |
"81b1e50b6f6c451ab791da96b3eeda1b": { |
| 569 |
"model_module": "@jupyter-widgets/base", |
| 570 |
"model_module_version": "2.0.0", |
| 571 |
"model_name": "LayoutModel", |
| 572 |
"state": {} |
| 573 |
}, |
| 574 |
"960bcd05fc7c4b41a4dd073d44f93a97": { |
| 575 |
"model_module": "@jupyter-widgets/controls", |
| 576 |
"model_module_version": "2.0.0", |
| 577 |
"model_name": "LabelModel", |
| 578 |
"state": { |
| 579 |
"layout": "IPY_MODEL_0c9d82393cc74da3ad6b619ff2e07e67", |
| 580 |
"style": "IPY_MODEL_f18256cebcb94bf496b59c92e37dffca", |
| 581 |
"value": "Uptime: 00:00:00" |
| 582 |
} |
| 583 |
}, |
| 584 |
"98da00dafc2a47f7aa88e28ca96db9ec": { |
| 585 |
"model_module": "@jupyter-widgets/controls", |
| 586 |
"model_module_version": "2.0.0", |
| 587 |
"model_name": "ButtonModel", |
| 588 |
"state": { |
| 589 |
"button_style": "danger", |
| 590 |
"disabled": true, |
| 591 |
"icon": "stop", |
| 592 |
"layout": "IPY_MODEL_28845e2c01cf41d69c2612ca4757581f", |
| 593 |
"style": "IPY_MODEL_1be39da724bb4088af6834588fd53861", |
| 594 |
"tooltip": "Quit script" |
| 595 |
} |
| 596 |
}, |
| 597 |
"9ac12d04689d464b83c06e310a48dbb4": { |
| 598 |
"model_module": "@jupyter-widgets/controls", |
| 599 |
"model_module_version": "2.0.0", |
| 600 |
"model_name": "ButtonModel", |
| 601 |
"state": { |
| 602 |
"button_style": "info", |
| 603 |
"disabled": true, |
| 604 |
"icon": "rotate-left", |
| 605 |
"layout": "IPY_MODEL_68f7c943396c430c9e958c10104deccc", |
| 606 |
"style": "IPY_MODEL_59d33233dcce4957b8e1df5377ff3419", |
| 607 |
"tooltip": "Reset all global variables to their initial states" |
| 608 |
} |
| 609 |
}, |
| 610 |
"acf5ad72376644ad875836b3ea0c3d1b": { |
| 611 |
"model_module": "@jupyter-widgets/base", |
| 612 |
"model_module_version": "2.0.0", |
| 613 |
"model_name": "LayoutModel", |
| 614 |
"state": { |
| 615 |
"grid_template_columns": "5ch 1fr 1fr 1fr 1fr 1fr" |
| 616 |
} |
| 617 |
}, |
| 618 |
"b6ccf94e55a54536b336cc26d69188ff": { |
| 619 |
"model_module": "@jupyter-widgets/controls", |
| 620 |
"model_module_version": "2.0.0", |
| 621 |
"model_name": "TextStyleModel", |
| 622 |
"state": { |
| 623 |
"description_width": "", |
| 624 |
"font_size": null, |
| 625 |
"text_color": null |
| 626 |
} |
| 627 |
}, |
| 628 |
"bd7a79ebefa94140867ecbc782aabe63": { |
| 629 |
"model_module": "@jupyter-widgets/controls", |
| 630 |
"model_module_version": "2.0.0", |
| 631 |
"model_name": "VBoxModel", |
| 632 |
"state": { |
| 633 |
"children": [ |
| 634 |
"IPY_MODEL_37c335910f154a35a29da06b1306a4f9", |
| 635 |
"IPY_MODEL_23a82c7e6e0e474ba74717b2aae90bdb", |
| 636 |
"IPY_MODEL_00bc93a4a07045a2a5878c14f4c704d8" |
| 637 |
], |
| 638 |
"layout": "IPY_MODEL_025423bcf410487da647213afd6d8ed9" |
| 639 |
} |
| 640 |
}, |
| 641 |
"bdfb3a020e94485699633db069724423": { |
| 642 |
"model_module": "@jupyter-widgets/controls", |
| 643 |
"model_module_version": "2.0.0", |
| 644 |
"model_name": "TabModel", |
| 645 |
"state": { |
| 646 |
"_view_count": 1, |
| 647 |
"children": [ |
| 648 |
"IPY_MODEL_bd7a79ebefa94140867ecbc782aabe63", |
| 649 |
"IPY_MODEL_437e3c09999c439981d95171ee6e8f1e", |
| 650 |
"IPY_MODEL_7f3a9125baea4e9680b680b81abd66ec" |
| 651 |
], |
| 652 |
"layout": "IPY_MODEL_301b507d8a80485b9a67df78cdd82607", |
| 653 |
"selected_index": 0, |
| 654 |
"titles": [ |
| 655 |
"Controls", |
| 656 |
"Globals", |
| 657 |
"Probes" |
| 658 |
] |
| 659 |
} |
| 660 |
}, |
| 661 |
"c311ef8edc4c4b17a3da1cb6034e8509": { |
| 662 |
"model_module": "ipyevents", |
| 663 |
"model_module_version": "2.0.1", |
| 664 |
"model_name": "EventModel", |
| 665 |
"state": { |
| 666 |
"_supported_key_events": [ |
| 667 |
"keydown", |
| 668 |
"keyup" |
| 669 |
], |
| 670 |
"_supported_mouse_events": [ |
| 671 |
"click", |
| 672 |
"auxclick", |
| 673 |
"dblclick", |
| 674 |
"mouseenter", |
| 675 |
"mouseleave", |
| 676 |
"mousedown", |
| 677 |
"mouseup", |
| 678 |
"mousemove", |
| 679 |
"wheel", |
| 680 |
"contextmenu", |
| 681 |
"dragstart", |
| 682 |
"drag", |
| 683 |
"dragend", |
| 684 |
"dragenter", |
| 685 |
"dragover", |
| 686 |
"dragleave", |
| 687 |
"drop" |
| 688 |
], |
| 689 |
"_supported_touch_events": [ |
| 690 |
"touchstart", |
| 691 |
"touchend", |
| 692 |
"touchmove", |
| 693 |
"touchcancel" |
| 694 |
], |
| 695 |
"_view_module": "@jupyter-widgets/controls", |
| 696 |
"source": "IPY_MODEL_bdfb3a020e94485699633db069724423", |
| 697 |
"throttle_or_debounce": "", |
| 698 |
"watched_events": [ |
| 699 |
"keydown", |
| 700 |
"click" |
| 701 |
], |
| 702 |
"xy_coordinate_system": "" |
| 703 |
} |
| 704 |
}, |
| 705 |
"e6663f2fb82e46fd976420fd676044b6": { |
| 706 |
"model_module": "@jupyter-widgets/controls", |
| 707 |
"model_module_version": "2.0.0", |
| 708 |
"model_name": "ButtonModel", |
| 709 |
"state": { |
| 710 |
"button_style": "info", |
| 711 |
"disabled": true, |
| 712 |
"icon": "pause", |
| 713 |
"layout": "IPY_MODEL_fb02cb78989e41b7bc6289451df7e639", |
| 714 |
"style": "IPY_MODEL_3138620b4e5d48c1a2434eeaf5058cad", |
| 715 |
"tooltip": "Pause/resume script by toggling off/on all probes" |
| 716 |
} |
| 717 |
}, |
| 718 |
"f18256cebcb94bf496b59c92e37dffca": { |
| 719 |
"model_module": "@jupyter-widgets/controls", |
| 720 |
"model_module_version": "2.0.0", |
| 721 |
"model_name": "LabelStyleModel", |
| 722 |
"state": { |
| 723 |
"description_width": "", |
| 724 |
"font_family": null, |
| 725 |
"font_size": null, |
| 726 |
"font_style": null, |
| 727 |
"font_variant": null, |
| 728 |
"font_weight": null, |
| 729 |
"text_color": null, |
| 730 |
"text_decoration": null |
| 731 |
} |
| 732 |
}, |
| 733 |
"fb02cb78989e41b7bc6289451df7e639": { |
| 734 |
"model_module": "@jupyter-widgets/base", |
| 735 |
"model_module_version": "2.0.0", |
| 736 |
"model_name": "LayoutModel", |
| 737 |
"state": {} |
| 738 |
} |
| 739 |
}, |
| 740 |
"version_major": 2, |
| 741 |
"version_minor": 0 |
| 742 |
} |
| 743 |
} |
| 744 |
}, |
| 745 |
"nbformat": 4, |
| 746 |
"nbformat_minor": 5 |
| 747 |
} |