Skip to content
Snippets Groups Projects
Commit f028e0db authored by Thomas Landman's avatar Thomas Landman
Browse files

Update Notebook 1 Python Basics.md

parent d0ee985d
No related branches found
No related tags found
No related merge requests found
Pipeline #24952 passed
......@@ -54,7 +54,7 @@ To send this command to the python kernel, there are several options. First, sel
When you run the cell, the code will be sent to the python kernel, which will translate your python command into a binary language your computer CPU understands, send it to the CPU, and read back the answer. If the code you run produces an "output", meaning that the kernel will send something back to you, then the output that your code produces will be displayed below the code cell in the "output" section of the code cell. This is a scheme of what this process looks like "behind the scenes":
<img width=60% src="behind_the_scenes.png"></img>
<img width=60% src="resource/asnlib/public/Notebook_1_behind_the_scenes.png"></img>
After you have run the code cell, a number will appear beside your code cell. This number tell you in which order that piece of code was sent to the kernel. Because the kernel has a "memory", as you will see in the next section, this number can be useful so that you remember in which order the code cells in your notebook were executed.
......@@ -175,7 +175,8 @@ For this, there is both a menubar "Kernel" at the top, along with two useful but
* "Stop": tells the kernel to abort trying to run the code it is working on, but does not erase its memory
* "Restart": "kill" the kernel (erasing its memory), and start a new one attached to the notebook.
<img src="restartkernelmenu.png" width=80%></img>
<img src="resource/asnlib/public/Notebook_1_stop_button.png" width=40%></img>
<img src="resource/asnlib/public/Notebook_1_restartkernelmenu.png" width=600%></img>
To see this in action, you can execute the following cell, which will do nothing other than wait for 10 minutes:
......@@ -550,7 +551,7 @@ After your code cell, you will see some colored text called a "Traceback". This
Let's take a look at the traceback:
<img src="anatomy_of_an_error.png" width=80%></img>
<img src="resource/asnlib/public/Notebook_1_anatomy_of_an_error.png" width=80%></img>
The traceback contains three important details that can help you:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment