You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/recap.md
+42-7
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,36 @@
1
1
---
2
2
3
3
layout: ots
4
-
title: Recap of Python Essentials
4
+
title: Python and Jupyter-Notebook (Recap)
5
5
6
6
---
7
7
8
-
This chapter is just a recap of some of the important points of the Introduction to Programming with Python course. Feel free to skip ahead if this course is still fresh in your memory.
8
+
This chapter is a recap of some of the important points of the Introduction to Programming with Python course. Feel free to skip ahead if this course is still fresh in your memory. In addition, we will introduce jupyter-notebooks, an interactive way to execute python scripts.
9
9
10
-
# Running Python
10
+
# Installing Python and Jupyter
11
+
12
+
The easiest way to install python on your computer is to use *anaconda*. There are many other ways to get python and jupyter but this one is most suitable for beginners. Follow the instructions for your operating system on [https://www.anaconda.com/download/].
13
+
14
+
With the anaconda package, you get the anaconda navigator, an interactive program that lets you install addons and run programs.
15
+
16
+
Use the anaconda navigator to install jupyter notebook. Alternatively, you can use the command line and type
17
+
```
18
+
conda install jupyter notebook
19
+
```
20
+
21
+
22
+
23
+
# Running Python and Jupyter
11
24
12
25
After installing Python on your system successfully, you can start the
13
26
interactive Python prompt by typing `python` in the command line and
14
27
pressing `<Enter>`. It will show you some context information about
15
28
Python similar to this::
16
29
17
-
Python 3.3.5 (v3.3.5:62cf4e77f785, Mar 9 2014, 10:37:12) [MSC v.1600 32 bit (Intel)] on win32
30
+
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
31
+
[GCC 7.3.0] on linux
18
32
Type "help", "copyright", "credits" or "license" for more information.
19
-
>>>
33
+
>>>
20
34
21
35
On Windows you can open Python through the Start Menu.
22
36
@@ -28,13 +42,34 @@ To run a program saved in a Python file, you can run it from the command line li
28
42
29
43
On Windows you can run a Python file by double-clicking it.
30
44
45
+
But there is a much more interactive and fast way to start using python. Launch jupyter notebook from the anaconda navigator or by typing on the command line
46
+
47
+
```
48
+
jupyter notebook
49
+
```
50
+
51
+
It will start the python interpreter in the background and show a browser page, that is connected to python and will interactively edit and run your python code.
52
+
53
+
Navigate to a directory where you want to start you python project and press the *new* button on the top right of the web page.
0 commit comments