Setting up a Python Lab

Here is a log for whom wants to follow how I teach myself the use of the Python ecology for calibrating my research method and results on the CIVID-19 pandemic as an adaptive complex networked system. The focus is on emulating and understanding mixed social and biological phenomena with toy worlds, fed peridically with theorems and internet data.

Create an empty folder for Jupyter Notebooks. And name it. I place it in my Dropbox folder and name it A-000 (so it appears ner the top).

Get appropriate hard- and software. First download and set up Anaconda, containing Python version 3 (version 2). Python is framed in the inside of Jupyter-Notebook which is inside Anaconda. The net is full of articles that help you with this. I will soon work on Windows 10 machine (Surface 7, Intel i7), but (Apple) machines running OSX operate the software too.

Get a book. There is a book by Bill Lubanovic called Introducing Python (Second Edition 2019). It looks good as a backup helper when my comments raise questions for whom is following the log.

Start Anaconda Navigator. This makes a local web server run. It provides, via the browser you select, an interface to Anaconda and the stuff Anaconda manages. It does so really well, but I take this for gra tes for the moment and do not dwell on it now. Here are two screenschots, one of the Anaconda Navigator’s interface with its modules (Jupyter is one of them) and one of Jupyter Notebook’s interface with the its file management function, filled with my first-level file system folders.

Fig. 1 Anaconda at work

Launch Jupyter Notebook (push the appropriate button in the left graph).

Open an empty Python Notebook. Select Python 3 from the dropdown list that opens up under new. Then you see something like this, which is a no longer empty Jupyter notebook. Such notebooks are Python programs, organized in cells. I show in Fig. 2 what I did to my first empty Notebook: