Skip to content

Commit 6593aeb

Browse files
committed
Set kernel in yaml, fix tables, make error messages scrollable (take up less space)
1 parent f426f20 commit 6593aeb

32 files changed

Lines changed: 14562 additions & 10660 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
lessons/data
44
lesons/data.zip
55
lessons/results
6+
7+
**/*.quarto_ipynb

_instructor_notes.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
When creating the `intro_python` environment, also run the following line:
2+
3+
```
4+
python -m ipykernel install --user --name intro_python --display-name "intro_python"
5+
```
6+
7+
This will ensure that in the lessons 07_libraries and beyond, the
8+
9+
```
10+
jupyter: intro_python
11+
```
12+
13+
line will correctly use the conda environment.

css/styles.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,22 @@ figure.quarto-float-tbl > div[aria-describedby] > table {
414414
margin-left: 0;
415415
margin-right: 0;
416416
}
417+
418+
/* ============================================================
419+
Error message handling
420+
============================================================ */
421+
422+
423+
/* Make long error messages scroll instead of stretching the page */
424+
.cell-output-stderr pre,
425+
.cell-output-stdout pre,
426+
.cell-output pre,
427+
pre.error {
428+
max-height: 300px; /* adjust as you like */
429+
overflow-y: auto; /* vertical scrollbar */
430+
overflow-x: auto; /* horizontal scrollbar if needed */
431+
white-space: pre; /* keep original formatting */
432+
border: 1px solid #ddd;
433+
padding: 0.5em;
434+
background-color: #f8f8f8;
435+
}

docs/css/styles.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,22 @@ figure.quarto-float-tbl > div[aria-describedby] > table {
414414
margin-left: 0;
415415
margin-right: 0;
416416
}
417+
418+
/* ============================================================
419+
Error message handling
420+
============================================================ */
421+
422+
423+
/* Make long error messages scroll instead of stretching the page */
424+
.cell-output-stderr pre,
425+
.cell-output-stdout pre,
426+
.cell-output pre,
427+
pre.error {
428+
max-height: 300px; /* adjust as you like */
429+
overflow-y: auto; /* vertical scrollbar */
430+
overflow-x: auto; /* horizontal scrollbar if needed */
431+
white-space: pre; /* keep original formatting */
432+
border: 1px solid #ddd;
433+
padding: 0.5em;
434+
background-color: #f8f8f8;
435+
}

docs/lessons/07_libraries.html

Lines changed: 900 additions & 877 deletions
Large diffs are not rendered by default.

docs/lessons/08_numpy_arrays-Answer_key.html

Lines changed: 759 additions & 735 deletions
Large diffs are not rendered by default.

docs/lessons/08_numpy_arrays.html

Lines changed: 947 additions & 916 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)