Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7b55734

Browse filesBrowse files
Update intro slides (empa-scientific-it#93)
Co-authored-by: Aliaksandr Yakutovich <yakutovicha@gmail.com>
1 parent e6999fc commit 7b55734
Copy full SHA for 7b55734

File tree

Expand file treeCollapse file tree

2 files changed

+311
-87
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+311
-87
lines changed

‎intro.ipynb

Copy file name to clipboardExpand all lines: intro.ipynb
+40-87Lines changed: 40 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "raw",
5-
"metadata": {},
6-
"source": [
7-
"---\n",
8-
"title: \"Python Tutorial 2023\"\n",
9-
"subtitle: \"17-20 April\"\n",
10-
"format: revealjs\n",
11-
"callout-icon: false\n",
12-
"jupyter: python3\n",
13-
"highlight-style: gruvbox\n",
14-
"execute:\n",
15-
" echo: true\n",
16-
" enabled: false\n",
17-
"---"
18-
]
19-
},
203
{
214
"cell_type": "markdown",
225
"metadata": {},
236
"source": [
24-
"## Welcome! 🐍\n",
7+
"# Welcome! 🐍\n",
258
"\n",
269
"Hello and welcome, everyone! We’re excited that you chose to embark in this Python journey\n",
2710
"\n",
2811
"Over **four** days, we'll see a lot of Python. **Two** fundamental topics each day\n",
2912
"\n",
30-
"::: {.panel-tabset}\n",
31-
"\n",
3213
"### Day 1\n",
3314
"1. Basic syntax and data types\n",
3415
"2. Control flow, loops, and exceptions\n",
@@ -45,14 +26,7 @@
4526
"1. Modules and packages\n",
4627
"2. Questions, exercises, more questions...\n",
4728
"\n",
48-
":::\n",
49-
"\n",
50-
"\n",
51-
"::: {.notes}\n",
52-
"\n",
53-
"Although this is an introductory course, we will be going quite in-depth to cover as much ground as possible. Our aim is to equip you with a strong foundation in Python programming that you can build on in the future. So, let's get started!\n",
54-
"\n",
55-
":::"
29+
"Although this is an introductory course, we will be going quite in-depth to cover as much ground as possible. Our aim is to equip you with a strong foundation in Python programming that you can build on in the future. So, let's get started!"
5630
]
5731
},
5832
{
@@ -63,18 +37,13 @@
6337
"\n",
6438
"**TL;DR:** Every morning, 9:00-13:00, on Zoom\n",
6539
"\n",
66-
". . .\n",
67-
"\n",
6840
"More in detail:\n",
6941
"\n",
70-
"::: {.incremental}\n",
71-
"\n",
7242
"- 8:45-9:00 — Welcome, warm-up questions\n",
7343
"- 9:00-10:50 — Topic 1 (theory, hands-on, Q&A)\n",
74-
"- *10:50-11:10 — Break ☕*\n",
44+
"- *10:50-11:10 — Break* ☕\n",
7545
"- 11:10-13:00 — Topic 2\n",
76-
"\n",
77-
":::"
46+
"- 🥪 – Practice – Offline discussions on Slack"
7847
]
7948
},
8049
{
@@ -83,16 +52,10 @@
8352
"source": [
8453
"## How to interact\n",
8554
"\n",
86-
"::: {.notes}\n",
87-
"\n",
8855
"Each block is 20% theory and 80% hands-on. It's an online workshop, so interaction between us is **essential**\n",
8956
"\n",
90-
":::\n",
91-
"\n",
9257
"A few tips to interact:\n",
9358
"\n",
94-
"::: {.panel-tabset}\n",
95-
"\n",
9659
"### On Zoom\n",
9760
"- Raise your hand 🤚 then ask\n",
9861
"- Write in the chat\n",
@@ -101,16 +64,10 @@
10164
"\n",
10265
"### On Slack\n",
10366
"- Ask your question in the **corresponding channel**. Use `#help` for generic questions\n",
104-
"- Reply **in a thread** if you want to add a comment on another question\n",
67+
"- Reply **in a thread** if you want to add a comment to a question\n",
10568
"- Use `@Sasha`, `@Simone`, `@Edoardo` if you want to mention the tutorial instructors directly\n",
10669
"\n",
107-
":::\n",
108-
"\n",
109-
"::: {.notes}\n",
110-
"\n",
111-
"Although the chat will be distributed together with the recording, Slack is much better suited to hold continued Q&A and other discussions. Please, use it.\n",
112-
"\n",
113-
":::"
70+
"Although the chat will be distributed together with the recording, Slack is much better suited to hold continued Q&A and other discussions. Please, use it."
11471
]
11572
},
11673
{
@@ -134,17 +91,11 @@
13491
"source": [
13592
"## Exercises 🌶️\n",
13693
"\n",
137-
"::: {.fragment}\n",
138-
"\n",
13994
"For each topic we prepared a bunch of exercises to practice the concepts\n",
14095
"\n",
141-
":::\n",
96+
"In the notebooks, you will see cells like\n",
14297
"\n",
143-
"::: {.fragment}\n",
144-
"\n",
145-
"You will see cells like\n",
146-
"\n",
147-
"```{.python code-line-numbers=\"false\"}\n",
98+
"```python\n",
14899
"%%ipytest\n",
149100
"\n",
150101
"def solution_to_exercise(input_arg):\n",
@@ -156,54 +107,56 @@
156107
"\n",
157108
"**Unless otherwise noted**, you can delete everything *below* the line starting with `def` and write your solution\n",
158109
"\n",
159-
":::\n",
160-
"\n",
161-
"::: {.notes}\n",
162-
"\n",
163110
"The \"chili\" 🌶️ symbol estimates the effort required. In general, more chilis mean more work and thinking to solve the exercise\n",
164111
"\n",
165112
"Double-check before deleting everything in a solution's cell. There might be useful hints to solve the exercise!\n",
166113
"\n",
167-
":::"
168-
]
169-
},
170-
{
171-
"cell_type": "markdown",
172-
"metadata": {},
173-
"source": [
174-
"## Exercises 🌶️\n",
114+
"---\n",
175115
"\n",
176-
"::: {.callout-important}\n",
116+
"Let's look at one important detail about exercises: the variables in **your solution** you are expected to work with.\n",
177117
"\n",
178-
"If you tried to evaluate an exercise cell and you see the error\n",
118+
"```python\n",
119+
"%%ipytest\n",
179120
"\n",
121+
"def solution_longest_sequence(numbers: list[int]) -> int:\n",
122+
" \"\"\"\n",
123+
" You should treat `numbers` as a \"list of integers\".\n",
124+
" It will be already defined when you run this function\n",
125+
" \"\"\"\n",
126+
" pass\n",
180127
"```\n",
181-
"UsageError: Cell magic %%ipytest not found\n",
182-
"```\n",
183-
"\n",
184-
"make sure you **first** evaluate the cell with the content below\n",
185128
"\n",
186-
"```\n",
187-
"%reload_ext tutorial.tests.testsuite\n",
188-
"```\n",
129+
"<div class=\"alert alert-block alert-danger\">\n",
130+
" <h4><b>Important</b></h4>\n",
131+
" The input arguments to the <code>solution_*</code> function <strong>is already available</strong>. We also tell you what <strong>type</strong> you should expect: a string, an integer, a file path, or anything else.\n",
132+
"</div> \n",
189133
"\n",
190-
"You should find it just after the **Exercises** section heading\n",
191134
"\n",
192-
":::\n",
135+
"Remember: **ask** if you need help, either on Zoom or on Slack. These four days should be a practical workshop where we can answer to most of your questions you have as a beginner Python user. Let's make the most out of this time!\n"
136+
]
137+
},
138+
{
139+
"cell_type": "markdown",
140+
"metadata": {},
141+
"source": [
142+
"## Hands-on sessions\n",
193143
"\n",
194-
". . .\n",
144+
"There will be plenty of time to work on the exercises.\n",
195145
"\n",
196-
"::: {.callout-tip}\n",
146+
"Here's how these time slots will be organized **on Zoom**:\n",
197147
"\n",
198-
"There might be more exercises than time available. Don't worry, you can come back and continue any time, even after the workshop\n",
148+
"### Main room\n",
199149
"\n",
200-
":::\n",
150+
"- Anyone who is not yet comfortable with Python\n",
151+
"- Walkthrough of a few challenging exercises\n",
152+
"- **Interactive**: you should participate with suggestions\n",
201153
"\n",
202-
"::: {.notes}\n",
203154
"\n",
204-
"Remember: **ask** if you need help, either on Zoom or on Slack. These four days should be a practical workshop where we can answer to most of your questions you have as a beginner Python user. Let's make the most out of this time!\n",
155+
"### Break-out rooms\n",
205156
"\n",
206-
":::"
157+
"- Anyone who wants to work on their own\n",
158+
"- Discussion with someone who wants to share their code\n",
159+
"- Specific Q&A"
207160
]
208161
},
209162
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.