Skip to content

Commit dad8903

Browse files
Deploy improvements_spring_2026 to branch/improvements_spring_2026
1 parent 3766676 commit dad8903

5 files changed

Lines changed: 156 additions & 36 deletions

File tree

branch/improvements_spring_2026/api/contents/all.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"content": [
33
{
44
"content": null,
5-
"created": "2026-04-15T09:33:26.561856Z",
5+
"created": "2026-04-15T09:48:43.911697Z",
66
"format": null,
77
"hash": null,
88
"hash_algorithm": null,
9-
"last_modified": "2026-04-15T09:33:26.561856Z",
9+
"last_modified": "2026-04-15T09:48:43.911697Z",
1010
"mimetype": null,
1111
"name": "quizzes",
1212
"path": "quizzes",
@@ -16,11 +16,11 @@
1616
},
1717
{
1818
"content": null,
19-
"created": "2026-04-15T09:33:26.562159Z",
19+
"created": "2026-04-15T09:48:43.912033Z",
2020
"format": null,
2121
"hash": null,
2222
"hash_algorithm": null,
23-
"last_modified": "2026-04-15T09:33:08.042600Z",
23+
"last_modified": "2026-04-15T09:48:27.999710Z",
2424
"mimetype": "text/plain",
2525
"name": "requirements.txt",
2626
"path": "requirements.txt",
@@ -30,11 +30,11 @@
3030
},
3131
{
3232
"content": null,
33-
"created": "2026-04-15T09:33:26.561225Z",
33+
"created": "2026-04-15T09:48:43.911117Z",
3434
"format": null,
3535
"hash": null,
3636
"hash_algorithm": null,
37-
"last_modified": "2026-04-15T09:33:08.042260Z",
37+
"last_modified": "2026-04-15T09:48:27.998301Z",
3838
"mimetype": "text/x-python",
3939
"name": "pull_files_from_repo_basic.py",
4040
"path": "pull_files_from_repo_basic.py",
@@ -44,25 +44,25 @@
4444
},
4545
{
4646
"content": null,
47-
"created": "2026-04-15T09:33:26.547581Z",
47+
"created": "2026-04-15T09:48:43.896321Z",
4848
"format": null,
4949
"hash": null,
5050
"hash_algorithm": null,
51-
"last_modified": "2026-04-15T09:33:08.025260Z",
51+
"last_modified": "2026-04-15T09:48:27.980575Z",
5252
"mimetype": null,
5353
"name": "Basics.ipynb",
5454
"path": "Basics.ipynb",
55-
"size": 73861,
55+
"size": 75286,
5656
"type": "notebook",
5757
"writable": true
5858
},
5959
{
6060
"content": null,
61-
"created": "2026-04-15T09:33:26.560652Z",
61+
"created": "2026-04-15T09:48:43.910550Z",
6262
"format": null,
6363
"hash": null,
6464
"hash_algorithm": null,
65-
"last_modified": "2026-04-15T09:33:26.560652Z",
65+
"last_modified": "2026-04-15T09:48:43.910550Z",
6666
"mimetype": null,
6767
"name": "images",
6868
"path": "images",
@@ -72,24 +72,24 @@
7272
},
7373
{
7474
"content": null,
75-
"created": "2026-04-15T09:33:26.548094Z",
75+
"created": "2026-04-15T09:48:43.896912Z",
7676
"format": null,
7777
"hash": null,
7878
"hash_algorithm": null,
79-
"last_modified": "2026-04-15T09:33:08.025260Z",
79+
"last_modified": "2026-04-15T09:48:27.980575Z",
8080
"mimetype": null,
8181
"name": "Basics_filled.ipynb",
8282
"path": "Basics_filled.ipynb",
83-
"size": 105099,
83+
"size": 107595,
8484
"type": "notebook",
8585
"writable": true
8686
}
8787
],
88-
"created": "2026-04-15T09:33:26.561856Z",
88+
"created": "2026-04-15T09:48:43.911697Z",
8989
"format": "json",
9090
"hash": null,
9191
"hash_algorithm": null,
92-
"last_modified": "2026-04-15T09:33:26.561856Z",
92+
"last_modified": "2026-04-15T09:48:43.911697Z",
9393
"mimetype": null,
9494
"name": "",
9595
"path": "",

branch/improvements_spring_2026/api/contents/images/all.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"content": [
33
{
44
"content": null,
5-
"created": "2026-04-15T09:33:26.550253Z",
5+
"created": "2026-04-15T09:48:43.898533Z",
66
"format": null,
77
"hash": null,
88
"hash_algorithm": null,
9-
"last_modified": "2026-04-15T09:33:08.041260Z",
9+
"last_modified": "2026-04-15T09:48:27.998301Z",
1010
"mimetype": "image/jpeg",
1111
"name": "First_Computer_Bug,_1947.jpg",
1212
"path": "images/First_Computer_Bug,_1947.jpg",
@@ -16,11 +16,11 @@
1616
},
1717
{
1818
"content": null,
19-
"created": "2026-04-15T09:33:26.560942Z",
19+
"created": "2026-04-15T09:48:43.910854Z",
2020
"format": null,
2121
"hash": null,
2222
"hash_algorithm": null,
23-
"last_modified": "2026-04-15T09:33:08.041260Z",
23+
"last_modified": "2026-04-15T09:48:27.998301Z",
2424
"mimetype": "image/png",
2525
"name": "icons8-python-48.png",
2626
"path": "images/icons8-python-48.png",
@@ -30,11 +30,11 @@
3030
},
3131
{
3232
"content": null,
33-
"created": "2026-04-15T09:33:26.548707Z",
33+
"created": "2026-04-15T09:48:43.897479Z",
3434
"format": null,
3535
"hash": null,
3636
"hash_algorithm": null,
37-
"last_modified": "2026-04-15T09:33:08.026260Z",
37+
"last_modified": "2026-04-15T09:48:27.981301Z",
3838
"mimetype": "image/png",
3939
"name": "ARC448p.png",
4040
"path": "images/ARC448p.png",
@@ -44,11 +44,11 @@
4444
},
4545
{
4646
"content": null,
47-
"created": "2026-04-15T09:33:26.560652Z",
47+
"created": "2026-04-15T09:48:43.910550Z",
4848
"format": null,
4949
"hash": null,
5050
"hash_algorithm": null,
51-
"last_modified": "2026-04-15T09:33:08.041260Z",
51+
"last_modified": "2026-04-15T09:48:27.998301Z",
5252
"mimetype": "image/svg+xml",
5353
"name": "Logo.svg",
5454
"path": "images/Logo.svg",
@@ -57,11 +57,11 @@
5757
"writable": true
5858
}
5959
],
60-
"created": "2026-04-15T09:33:26.560652Z",
60+
"created": "2026-04-15T09:48:43.910550Z",
6161
"format": "json",
6262
"hash": null,
6363
"hash_algorithm": null,
64-
"last_modified": "2026-04-15T09:33:26.560652Z",
64+
"last_modified": "2026-04-15T09:48:43.910550Z",
6565
"mimetype": null,
6666
"name": "images",
6767
"path": "images",

branch/improvements_spring_2026/api/contents/quizzes/all.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"content": [
33
{
44
"content": null,
5-
"created": "2026-04-15T09:33:26.561856Z",
5+
"created": "2026-04-15T09:48:43.911697Z",
66
"format": null,
77
"hash": null,
88
"hash_algorithm": null,
9-
"last_modified": "2026-04-15T09:33:08.042600Z",
9+
"last_modified": "2026-04-15T09:48:27.999710Z",
1010
"mimetype": "application/json",
1111
"name": "datatypes.json",
1212
"path": "quizzes/datatypes.json",
@@ -16,11 +16,11 @@
1616
},
1717
{
1818
"content": null,
19-
"created": "2026-04-15T09:33:26.561583Z",
19+
"created": "2026-04-15T09:48:43.911437Z",
2020
"format": null,
2121
"hash": null,
2222
"hash_algorithm": null,
23-
"last_modified": "2026-04-15T09:33:08.042260Z",
23+
"last_modified": "2026-04-15T09:48:27.998301Z",
2424
"mimetype": "text/x-python",
2525
"name": "__init__.py",
2626
"path": "quizzes/__init__.py",
@@ -29,11 +29,11 @@
2929
"writable": true
3030
}
3131
],
32-
"created": "2026-04-15T09:33:26.561856Z",
32+
"created": "2026-04-15T09:48:43.911697Z",
3333
"format": "json",
3434
"hash": null,
3535
"hash_algorithm": null,
36-
"last_modified": "2026-04-15T09:33:26.561856Z",
36+
"last_modified": "2026-04-15T09:48:43.911697Z",
3737
"mimetype": null,
3838
"name": "quizzes",
3939
"path": "quizzes",

branch/improvements_spring_2026/files/Basics.ipynb

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,42 @@
452452
"even if the exact syntax, the way how you write things down, changes."
453453
]
454454
},
455+
{
456+
"cell_type": "markdown",
457+
"id": "d56c16b6",
458+
"metadata": {
459+
"slideshow": {
460+
"slide_type": "slide"
461+
},
462+
"editable": false
463+
},
464+
"source": [
465+
"## Outputting text with `print()`\n",
466+
"\n",
467+
"To output values to console or here below the cell, we can use the `print()` function. You can print text, numbers, variables, and more.\n",
468+
"\n",
469+
"A function you invoke has a name followed by parentheses. Inside these parentheses you can put something for the function to work with.\n",
470+
"```python\n",
471+
"function_name(arguments)\n",
472+
"```\n",
473+
"\n",
474+
"In the case of `print()`, you can put in there what you want to print."
475+
]
476+
},
477+
{
478+
"cell_type": "code",
479+
"execution_count": null,
480+
"id": "5d3a3430",
481+
"metadata": {},
482+
"outputs": [],
483+
"source": [
484+
"# print something to the console\n",
485+
"print(\"Hello, world!\")\n",
486+
"\n",
487+
"# print a number\n",
488+
"print(1)"
489+
]
490+
},
455491
{
456492
"cell_type": "markdown",
457493
"id": "c515267a",
@@ -1599,7 +1635,9 @@
15991635
"Here are some exercise ideas for \"Getting data in and out\":\n",
16001636
"- Prompt the user for a filename and write a short text into it.\n",
16011637
"- Read it back and print the lines to the screen.\n",
1602-
"- Experiment with different modes: 'r', 'w', 'a' to see how the file content changes."
1638+
"- Experiment with different modes: 'r', 'w', 'a' to see how the file content changes.\n",
1639+
"\n",
1640+
"Be aware that Jupyterlite can only display the content of text files if they have a known extension, such as .txt."
16031641
]
16041642
},
16051643
{
@@ -1611,10 +1649,19 @@
16111649
"slideshow": {
16121650
"slide_type": ""
16131651
},
1652+
"remove_code": "non-comments",
16141653
"tags": []
16151654
},
16161655
"outputs": [],
1617-
"source": []
1656+
"source": [
1657+
"# Get a filename from the user\n",
1658+
"\n",
1659+
"# Open the file for writing and write some text and numbers to it\n",
1660+
"\n",
1661+
"# Open the same file for appending and add some more text and numbers to it\n",
1662+
"\n",
1663+
"# Open the file for reading and print its content to the console\n"
1664+
]
16181665
},
16191666
{
16201667
"cell_type": "markdown",

branch/improvements_spring_2026/files/Basics_filled.ipynb

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,57 @@
630630
"even if the exact syntax, the way how you write things down, changes."
631631
]
632632
},
633+
{
634+
"cell_type": "markdown",
635+
"id": "d56c16b6",
636+
"metadata": {
637+
"slideshow": {
638+
"slide_type": "slide"
639+
}
640+
},
641+
"source": [
642+
"## Outputting text with `print()`\n",
643+
"\n",
644+
"To output values to console or here below the cell, we can use the `print()` function. You can print text, numbers, variables, and more.\n",
645+
"\n",
646+
"A function you invoke has a name followed by parentheses. Inside these parentheses you can put something for the function to work with.\n",
647+
"```python\n",
648+
"function_name(arguments)\n",
649+
"```\n",
650+
"\n",
651+
"In the case of `print()`, you can put in there what you want to print."
652+
]
653+
},
654+
{
655+
"cell_type": "code",
656+
"execution_count": null,
657+
"id": "5d3a3430",
658+
"metadata": {},
659+
"outputs": [],
660+
"source": [
661+
"# print something to the console\n",
662+
"print(\"Hello, world!\")\n",
663+
"\n",
664+
"# print a number\n",
665+
"print(1)"
666+
]
667+
},
668+
{
669+
"cell_type": "markdown",
670+
"id": "d4a9e370",
671+
"metadata": {
672+
"slideshow": {
673+
"slide_type": "notes"
674+
}
675+
},
676+
"source": [
677+
"##### _<ins>Notes:</ins>_\n",
678+
"\n",
679+
"- Do not go into the details of functions now. \n",
680+
"- Basically just magic word (name) followed by parentheses, and you put in there what you want the function to work with and something happens.\n",
681+
"- The main objective is to introduce the `print()` function.\n"
682+
]
683+
},
633684
{
634685
"cell_type": "markdown",
635686
"id": "c515267a",
@@ -2353,7 +2404,9 @@
23532404
"Here are some exercise ideas for \"Getting data in and out\":\n",
23542405
"- Prompt the user for a filename and write a short text into it.\n",
23552406
"- Read it back and print the lines to the screen.\n",
2356-
"- Experiment with different modes: 'r', 'w', 'a' to see how the file content changes."
2407+
"- Experiment with different modes: 'r', 'w', 'a' to see how the file content changes.\n",
2408+
"\n",
2409+
"Be aware that Jupyterlite can only display the content of text files if they have a known extension, such as .txt."
23572410
]
23582411
},
23592412
{
@@ -2365,10 +2418,30 @@
23652418
"slideshow": {
23662419
"slide_type": ""
23672420
},
2421+
"remove_code": "non-comments",
23682422
"tags": []
23692423
},
23702424
"outputs": [],
2371-
"source": []
2425+
"source": [
2426+
"number1 = 44\n",
2427+
"number2 = 111\n",
2428+
"\n",
2429+
"# Get a filename from the user\n",
2430+
"output_filename = input(\"Give a filename to write to (end with .txt):\")\n",
2431+
"\n",
2432+
"# Open the file for writing and write some text and numbers to it\n",
2433+
"with open(output_filename, \"w\") as my_file:\n",
2434+
" my_file.write(\"This is some text that I have written to a file.\\n\")\n",
2435+
" my_file.write(f\"I can also write numbers like this: {number1} {number2}\")\n",
2436+
"\n",
2437+
"# Open the same file for appending and add some more text and numbers to it\n",
2438+
"with open(output_filename, \"a\") as my_file:\n",
2439+
" my_file.write(f\"I have opened the same file again.\\n More numbers: {number1} {number2}.\")\n",
2440+
"\n",
2441+
"# Open the file for reading and print its content to the console\n",
2442+
"with open(output_filename, \"r\") as my_file:\n",
2443+
" print(my_file.read())\n"
2444+
]
23722445
},
23732446
{
23742447
"cell_type": "markdown",

0 commit comments

Comments
 (0)