Follow the following instructions to install Miniconda and create a Python environment for the course:
-
Download the Python 3.6 installer for Windows, macOS, or Linux from https://conda.io/miniconda.html and install with default settings. Note for Windows: If you don't know if your operating system is 32-bit or 64-bit, then open Settings-System-About-System type to find out your xx-bit system.
- Windows: Double-click on the
Miniconda3-latest-Windows-x86_64.exe
file. - macOS: Run
bash Miniconda3-latest-MacOSX-x86_64.sh
in your terminal. - Linux: Run
bash Miniconda3-latest-Linux-x86_64.sh
in your terminal.
- Windows: Double-click on the
-
Windows: Open the Anaconda Prompt terminal from the Start menu. MacOS, Linux: Open a terminal.
-
Install git:
conda install git
. -
Download the GitHub repository of the course:
git clone https://github.com/xbresson/CE9010_2021
. -
Go to folder CE9010_2021 with
cd CE9010_2021
, and create a Python virtual environment with the packages required for the course:conda env create -f environment.yml
. Note that the environment installation may take some time.Notes:
The installed conda packages can be listed withconda list
.
Some useful Conda commands arepwd
,cd
,ls -al
,rm -r -f folder/
Add a python library to the Python environment:conda install -n CE9010_2021 numpy
(for example)
Read Conda command lines for packages and environments
Read managing Conda environments
-
Windows: Open the Anaconda Prompt terminal from the Start menu. MacOS, Linux: Open a terminal.
-
Activate the environment. Type:
source activate CE9010_2021
orconda activate CE9010_2021
. -
Go to folder
CE9010_2021/
and start Jupyter withjupyter notebook
. The command opens a new tab in your web browser. -
Open, edit and run the notebook
tutorial01.ipynb
in your browser.Notes:
Windows: Folder CE9010_2021 is located atC:\Users\your_user_name\CE9010_2021
. MacOS, Linux:/Users/your_user_name/CE9010_2021
.
List of git commands
-
Follow this Notebook installation :
https://colab.research.google.com/github/xbresson/CE9010_2021/blob/master/colab/installation.ipynb -
Open your Google Drive :
https://www.google.com/drive -
Open in Google Drive Folder 'CE9010_2021' and go to Folder 'CE9010_2021/tutorials/'
Select the notebook 'file.ipynb' and open it with Google Colab using Control Click + Open With Colaboratory.Notes:
Use Google Chrome Navigator.
The first time you open Colab, double-click on any 'file.ipynb'. Then select 'Connect more apps' and type Colab.
Simply click here.