Skip to content

Commit 6ce505e

Browse files
committed
Use Return instead of Enter
1 parent 3fbf884 commit 6ce505e

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

_episodes/00-Before-we-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ You may want additional directories or subdirectories depending on your project
107107
The basis of programming is that we write down instructions for the computer to follow, and then we tell the computer to follow those instructions. We write, or code, instructions in Python because it is a common language that both the computer and we can understand. We call the instructions commands and we tell the computer to follow the instructions by executing (also called running) those commands.
108108

109109
##### If you are working with Jupyter notebook:
110-
You can type Python code into a code cell and then execute the code by pressing <kbd>Shift</kbd> + <kbd>Enter</kbd>. Any output will be printed directly under the input cell. You can recognise a code cell by the `In[ ]:` at the beginning of the cell and output is marked by `Out[ ]:`. Pressing the __+__ button in the menu bar will add a new cell. All your commands as well as any output will be saved with the notebook.
110+
You can type Python code into a code cell and then execute the code by pressing <kbd>Shift</kbd>+<kbd>Return</kbd>. Any output will be printed directly under the input cell. You can recognise a code cell by the `In[ ]:` at the beginning of the cell and output is marked by `Out[ ]:`. Pressing the __+__ button in the menu bar will add a new cell. All your commands as well as any output will be saved with the notebook.
111111

112112
##### If you are working with Spyder:
113113

114-
You can either use the console or use script files (plain text files that contain your code). The console pane (in Spyder, the bottom right panel) is the place where commands written in the Python language can be typed and executed immediately by the computer. It is also where the results will be shown for commands that have been executed. You can type commands directly into the console and press Enter to execute those commands, but they will be forgotten when you close the session. Spyder uses the [IPython](http://ipython.org) console by default.
114+
You can either use the console or use script files (plain text files that contain your code). The console pane (in Spyder, the bottom right panel) is the place where commands written in the Python language can be typed and executed immediately by the computer. It is also where the results will be shown for commands that have been executed. You can type commands directly into the console and press <kbd>Return</kbd> to execute those commands, but they will be forgotten when you close the session. Spyder uses the [IPython](http://ipython.org) console by default.
115115

116116
Because we want our code and workflow to be reproducible, it is better to type the commands we want in the script editor, and save the script. This way, there is a complete record of what we did, and anyone (including our future selves!) can easily replicate the results on their computer.
117117

_episodes/00-short-introduction-to-Python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pi_value = 3.1415 # An example of a float
7171

7272
Here we've assigned data to the variables `text`, `number` and `pi_value`,
7373
using the assignment operator `=`. To review the value of a variable, we
74-
can type the name of the variable into the interpreter and press `Enter`:
74+
can type the name of the variable into the interpreter and press <kbd>Return</kbd>:
7575

7676
~~~
7777
>>> text

_extras/jupyter_notebooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ After typing the command `jupyter notebook`, the following happens:
4949
*A Code cell*
5050

5151
* This is a **Code** cell (see the cell type dropdown with the word **Code**).
52-
To run the cell, type Shift-Enter.
52+
To run the cell, type <kbd>Shift</kbd>+<kbd>Return</kbd>.
5353

5454
![Code cell and its output](../fig/00_6_jupyter_code_after.png)
5555
*A Code cell and its output*
@@ -62,7 +62,7 @@ After typing the command `jupyter notebook`, the following happens:
6262
![markdown input cell](../fig/00_7_jupyter_markdown_before.png)
6363
*A markdown input cell*
6464

65-
* To run the cell, type Shift-Enter.
65+
* To run the cell, type <kbd>Shift</kbd>+<kbd>Return</kbd>.
6666

6767
![rendered markdown cell](../fig/00_8_jupyter_markdown_after.png)
6868
*A rendered markdown cell*

reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ integer
5555
interactive mode
5656
: is an online mode of operation in which the user writes the commands directly
5757
on the command line one-by-one and execute them immediately by pressing a button
58-
on the keyword, usually Enter.
58+
on the keyword, usually <kbd>Return</kbd>.
5959

6060
join key
6161
: is a variable or an array representing the column names over which pandas.DataFrame.join()

0 commit comments

Comments
 (0)