Skip to content

Commit 7bb855c

Browse files
revise ch 1,2,3
1 parent b2315f8 commit 7bb855c

File tree

8 files changed

+211
-132
lines changed

8 files changed

+211
-132
lines changed
Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"id": "fc45f0ff-5ff8-47ba-a839-f8fdf55c7a9f",
1717
"metadata": {},
1818
"source": [
19-
"There are several ways to execute code."
19+
"There are several ways to execute (also called \"run\") Python code."
2020
]
2121
},
2222
{
@@ -72,7 +72,7 @@
7272
"\n",
7373
"> A read–eval–print loop (REPL) is a simple interactive computer programming environment that takes single user inputs, executes them, and returns the result to the user.\n",
7474
"\n",
75-
"If type `uv run python` in our terminal and hit enter, we get into the built-in python REPL."
75+
"If we type `uv run python` in our terminal and hit enter, we get into the built-in python REPL."
7676
]
7777
},
7878
{
@@ -139,7 +139,7 @@
139139
"metadata": {},
140140
"source": [
141141
"- `?`\n",
142-
"- `! <COMMAND>`: Call the system COMMAND, eg `!ls` to list contents.\n",
142+
"- `! <COMMAND>`: Call the system COMMAND, eg `!ls` to list contents of current directory.\n",
143143
"- `%run`: Run a file inside IPython as a program. \n",
144144
"- `%time`: Time execution of a Python statement or expression.\n",
145145
"- `%timeit`: Time execution of a Python statement or expression."
@@ -158,7 +158,7 @@
158158
"3) Multiply 3 twenty two times\n",
159159
"4) Print your name using the `print` function\n",
160160
"5) Add two strings, e.g. \"hello\" + \"world\"\n",
161-
"6) Run the file `hello.py` inside the REPL\n",
161+
"6) Create the file `src/pycourse/main.py` that prints your name and run it inside the IPython REPL\n",
162162
"7) Same but print it's execution time"
163163
]
164164
},
@@ -172,7 +172,7 @@
172172
"There are many options out there.\n",
173173
"Do not spend too much time deciding which to pick, you can always change your choice later. \n",
174174
"[VS-Code](https://code.visualstudio.com/) is a reasonable general choice as of today, it is free and widely adopted.\n",
175-
"For a user experience more similar to matlab and oriented to scientific computing you can check out [Spyder](https://www.spyder-ide.org)."
175+
"For a user experience more similar to matlab or R-studio and oriented to scientific computing you can check out [Spyder](https://www.spyder-ide.org)."
176176
]
177177
},
178178
{
@@ -183,7 +183,7 @@
183183
"## Jupyter Notebook\n",
184184
"Notebooks run on the browser and are a way to mix code with other kinds of data, such as images, videos or widgets.\n",
185185
"They are a very useful tool for explorative analysis.\n",
186-
"If you ever used something like Mathematica you'll be already familiar with them.\n",
186+
"If you ever used something like [Mathematica](https://www.wolfram.com/mathematica/) you'll be already familiar with them.\n",
187187
"\n",
188188
"There are several versions of notebooks, we are going to use [JupyterLab](https://jupyterlab.readthedocs.io/en/latest/).\n",
189189
"Let's install it:\n",
@@ -197,7 +197,16 @@
197197
"```bash\n",
198198
"mkdir noteboooks\n",
199199
"```\n",
200+
"So far your project should look like this:\n",
200201
"\n",
202+
"![](./images/tree.png)"
203+
]
204+
},
205+
{
206+
"cell_type": "markdown",
207+
"id": "339a9009-15aa-4180-8770-1a165210a3d8",
208+
"metadata": {},
209+
"source": [
201210
"Launch a jupyterlab session:\n",
202211
"\n",
203212
"```bash\n",
@@ -233,7 +242,7 @@
233242
"name": "python",
234243
"nbconvert_exporter": "python",
235244
"pygments_lexer": "ipython3",
236-
"version": "3.10.13"
245+
"version": "3.13.3"
237246
}
238247
},
239248
"nbformat": 4,

0 commit comments

Comments
 (0)