Python Programming
Monday, 13.07.2020
─
Prerequisites
Basic Knowledge of C Programming
Required Tools/Packages
1. Python-v.3.5 or above (Preferably Anaconda-v3.5 or above)
2. Jupyter-notebook (It is part of Anaconda), no need to install separately if Anaconda
is already installed
3. Browser - Chrome
Setting Up the Environment
4. Windows: Install Anaconda – Refer the instructions given in the following link
https://docs.anaconda.com/anaconda/install/windows/
5. Linux: Install Anaconda
a) Download the Anaconda installer for Linux from:
https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
b) Open the terminal, go to the directory where the installer is downloaded and
type the following:
bash Anaconda3-2020.02-Linux-x86_64.sh
c) Accept the default location or select a user-writable install location such
as ~/anaconda3.
NOTE: Install Anaconda as a user unless root privileges are required.
d) Follow the prompts on the installer screens, and if unsure about any setting,
simply accept the defaults, as they can all be changed later.
2
e) If you select the option to not add the Anaconda directory to your bash shell
PATH environment variable, you may later add this line to the “~/.bashrc” in your
home directory:
export PATH="/home/username/anaconda/bin:$PATH"
f) Replace /home/username/anaconda with the actual path of anaconda3
g) Finally, close and re-open your terminal window for the changes to take effect.
OR
You can follow the instructions given at the following link
https://docs.anaconda.com/anaconda/install/linux/
Getting started with jupyter-notebook
● How to start running a jupyter notebook?
https://jupyter.readthedocs.io/en/latest/running.html
● Notebook Basics:
https://nbviewer.jupyter.org/github/jupyter/notebook/blob/master/docs/source/exa
mples/Notebook/Notebook%20Basics.ipynb
● Tutorial on jupyter notebook
No need to install any additional tools, just go through the given tutorial notebooks
for understanding how to use jupyter.
https://hub.gke.mybinder.org/user/ipython-ipython-in-depth-
m249tszq/notebooks/binder/Index.ipynb
● Detailed documentation of jupyter notebook usage can be found at the below
link (It has the complete documentation of juputer. It can be used as a
reference)
https://jupyter-
notebook.readthedocs.io/en/stable/examples/Notebook/examples_index.html
Action Items
1. Install all the required tools
2. Practice using jupyter notebooks