Skip to content

Commit 9a013b3

Browse files
author
Tim Sinaeve
committed
modified: Classes.ipynb
modified: Pattern matching.ipynb modified: Python basics.ipynb modified: Rich showcase.ipynb
1 parent eee9f52 commit 9a013b3

4 files changed

+20
-13
lines changed

Classes.ipynb

+8-9
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 20,
5+
"execution_count": 26,
66
"metadata": {},
77
"outputs": [],
88
"source": [
99
"from rich import inspect, pretty\n",
1010
"from rich import print\n",
11+
"from rich.traceback import install\n",
1112
"\n",
13+
"install(show_locals=True)\n",
1214
"pretty.install()"
1315
]
1416
},
1517
{
1618
"cell_type": "code",
17-
"execution_count": 21,
19+
"execution_count": 27,
1820
"metadata": {},
1921
"outputs": [
2022
{
@@ -129,7 +131,7 @@
129131
},
130132
{
131133
"cell_type": "code",
132-
"execution_count": 22,
134+
"execution_count": 28,
133135
"metadata": {},
134136
"outputs": [
135137
{
@@ -209,7 +211,7 @@
209211
},
210212
{
211213
"cell_type": "code",
212-
"execution_count": 23,
214+
"execution_count": 29,
213215
"metadata": {},
214216
"outputs": [
215217
{
@@ -286,7 +288,7 @@
286288
},
287289
{
288290
"cell_type": "code",
289-
"execution_count": 24,
291+
"execution_count": 30,
290292
"metadata": {},
291293
"outputs": [
292294
{
@@ -358,7 +360,7 @@
358360
},
359361
{
360362
"cell_type": "code",
361-
"execution_count": 25,
363+
"execution_count": 31,
362364
"metadata": {},
363365
"outputs": [
364366
{
@@ -429,9 +431,6 @@
429431
],
430432
"source": [
431433
"from dataclasses import dataclass\n",
432-
"from rich.traceback import install\n",
433-
"install(show_locals=True)\n",
434-
"from rich import console\n",
435434
"\n",
436435
"@dataclass(frozen=True)\n",
437436
"class Coordinate:\n",

Pattern matching.ipynb

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"source": [
99
"from rich import inspect, pretty\n",
1010
"from rich import print\n",
11+
"from rich.traceback import install\n",
12+
"\n",
13+
"install(show_locals=True)\n",
1114
"\n",
1215
"pretty.install()"
1316
]
@@ -228,7 +231,7 @@
228231
"name": "python",
229232
"nbconvert_exporter": "python",
230233
"pygments_lexer": "ipython3",
231-
"version": "3.9.12"
234+
"version": "3.10.6"
232235
},
233236
"vscode": {
234237
"interpreter": {

Python basics.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"source": [
1616
"from rich import inspect, pretty\n",
1717
"from rich import print\n",
18+
"from rich.traceback import install\n",
1819
"\n",
20+
"install(show_locals=True)\n",
1921
"pretty.install()"
2022
]
2123
},

Rich showcase.ipynb

+6-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": 4,
19+
"execution_count": 11,
2020
"metadata": {},
2121
"outputs": [
2222
{
@@ -48,6 +48,9 @@
4848
],
4949
"source": [
5050
"from rich import print\n",
51+
"from rich.traceback import install\n",
52+
"\n",
53+
"install(show_locals=True)\n",
5154
"\n",
5255
"print('[italic white]italic[/] [red]red[/] [bold underline green]bold underline green[/]' )\n",
5356
"print('Numbers like 1, 2 and 3 are easy to remember.')"
@@ -62,7 +65,7 @@
6265
},
6366
{
6467
"cell_type": "code",
65-
"execution_count": 5,
68+
"execution_count": 12,
6669
"metadata": {},
6770
"outputs": [
6871
{
@@ -103,7 +106,7 @@
103106
},
104107
{
105108
"cell_type": "code",
106-
"execution_count": 10,
109+
"execution_count": 13,
107110
"metadata": {},
108111
"outputs": [
109112
{

0 commit comments

Comments
 (0)