|
6 | 6 | "name": "01_intro_jupyter_widgets.ipynb", |
7 | 7 | "provenance": [], |
8 | 8 | "collapsed_sections": [], |
9 | | - "authorship_tag": "ABX9TyMFjm8QXUwpAYwNJY9kui7p" |
| 9 | + "authorship_tag": "ABX9TyMFjm8QXUwpAYwNJY9kui7p", |
| 10 | + "include_colab_link": true |
10 | 11 | }, |
11 | 12 | "kernelspec": { |
12 | 13 | "name": "python3", |
|
1209 | 1210 | } |
1210 | 1211 | }, |
1211 | 1212 | "cells": [ |
| 1213 | + { |
| 1214 | + "cell_type": "markdown", |
| 1215 | + "metadata": { |
| 1216 | + "id": "view-in-github", |
| 1217 | + "colab_type": "text" |
| 1218 | + }, |
| 1219 | + "source": [ |
| 1220 | + "<a href=\"https://colab.research.google.com/github/gumdropsteve/intro_to_python/blob/main/day_13/01_intro_jupyter_widgets.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" |
| 1221 | + ] |
| 1222 | + }, |
1212 | 1223 | { |
1213 | 1224 | "cell_type": "markdown", |
1214 | 1225 | "metadata": { |
|
1228 | 1239 | "import ipywidgets as widgets\r\n", |
1229 | 1240 | "from IPython.display import display" |
1230 | 1241 | ], |
1231 | | - "execution_count": 1, |
| 1242 | + "execution_count": null, |
1232 | 1243 | "outputs": [] |
1233 | 1244 | }, |
1234 | 1245 | { |
|
1250 | 1261 | "btn = widgets.Button(description='Hello!')\r\n", |
1251 | 1262 | "display(btn)" |
1252 | 1263 | ], |
1253 | | - "execution_count": 2, |
| 1264 | + "execution_count": null, |
1254 | 1265 | "outputs": [ |
1255 | 1266 | { |
1256 | 1267 | "output_type": "display_data", |
|
1297 | 1308 | "\r\n", |
1298 | 1309 | "btn.on_click(btn_eventhandler)" |
1299 | 1310 | ], |
1300 | | - "execution_count": 4, |
| 1311 | + "execution_count": null, |
1301 | 1312 | "outputs": [ |
1302 | 1313 | { |
1303 | 1314 | "output_type": "display_data", |
|
1351 | 1362 | " disabled=False\r\n", |
1352 | 1363 | ")" |
1353 | 1364 | ], |
1354 | | - "execution_count": 7, |
| 1365 | + "execution_count": null, |
1355 | 1366 | "outputs": [ |
1356 | 1367 | { |
1357 | 1368 | "output_type": "display_data", |
|
1392 | 1403 | " disabled=False\r\n", |
1393 | 1404 | ")" |
1394 | 1405 | ], |
1395 | | - "execution_count": 9, |
| 1406 | + "execution_count": null, |
1396 | 1407 | "outputs": [ |
1397 | 1408 | { |
1398 | 1409 | "output_type": "display_data", |
|
1433 | 1444 | " disabled=False\r\n", |
1434 | 1445 | ")" |
1435 | 1446 | ], |
1436 | | - "execution_count": 12, |
| 1447 | + "execution_count": null, |
1437 | 1448 | "outputs": [ |
1438 | 1449 | { |
1439 | 1450 | "output_type": "display_data", |
|
1479 | 1490 | "end = widgets.DatePicker(description='End Date',\r\n", |
1480 | 1491 | " disabled=False)" |
1481 | 1492 | ], |
1482 | | - "execution_count": 15, |
| 1493 | + "execution_count": null, |
1483 | 1494 | "outputs": [] |
1484 | 1495 | }, |
1485 | 1496 | { |
|
1512 | 1523 | "items = [widgets.Label(str(i)) for i in range(4)]\r\n", |
1513 | 1524 | "widgets.HBox(items)" |
1514 | 1525 | ], |
1515 | | - "execution_count": 16, |
| 1526 | + "execution_count": null, |
1516 | 1527 | "outputs": [ |
1517 | 1528 | { |
1518 | 1529 | "output_type": "display_data", |
|
1560 | 1571 | "\r\n", |
1561 | 1572 | "widgets.HBox(items)" |
1562 | 1573 | ], |
1563 | | - "execution_count": 17, |
| 1574 | + "execution_count": null, |
1564 | 1575 | "outputs": [ |
1565 | 1576 | { |
1566 | 1577 | "output_type": "display_data", |
|
0 commit comments