Skip to content

Commit 7010df1

Browse files
authored
Merge pull request #198 from realpython/complex-numbers
Sample code for the Complex Numbers tutorial
2 parents 7fd1ec9 + 81a37a4 commit 7010df1

File tree

3 files changed

+645
-0
lines changed

3 files changed

+645
-0
lines changed

complex-numbers/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Complex Numbers in Python
2+
3+
## Installation
4+
5+
Create and activate a virtual environment:
6+
7+
```shell
8+
$ python -m venv ./venv
9+
$ source venv/bin/activate
10+
```
11+
12+
Install dependencies into your active environment:
13+
14+
```python
15+
(venv)$ python -m pip install -U pip jupyterlab ipywidgets matplotlib
16+
(venv)$ python -m jupyter labextension install @jupyter-widgets/jupyterlab-manager
17+
```
18+
19+
## Running
20+
21+
Start Jupter Lab in the same directory where the examples are located:
22+
23+
```shell
24+
(venv)$ python -m jupyterlab
25+
```

0 commit comments

Comments
 (0)