-
Download and install the Anaconda python distribution, (python3 version, use 64bit unless your machine is old and only supports 32bit). The installation instructions are found here.
-
Clone demo repository
-
Windows
- Launch
Anaconda Prompt
- Type
and press enter (hereafter called "issue" command)
git clone https://github.com/PV-Lab/2s986_class.git
- If the above command fails with error message
'git' is not recognized ...
, you need to installgit
. One option is to useconda
to installgit
: issueAlternatively, check here on installation instructions forconda install -c anaconda git
git
on Windows
- If the above command fails with error message
- Change directory by issuing
cd 2s986_class
- Launch
-
MacOS, Linux
- Launch a
terminal
- Type
and press enter (hereafter called "issue" command)
git clone https://github.com/PV-Lab/2s986_class.git
- MacOS: If you are using Mac OS 10.13 (High Sierra), you may get the error message:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
. In this case, reinstall xcode by issuingand clone the repository againxcode-select --install
- MacOS: If you are using Mac OS 10.13 (High Sierra), you may get the error message:
- Change directory by issuing
cd 2s986_class
- Launch a
-
-
Install anaconda:
-
Note for MacOS/Linux machines: Check you are indeed using the anaconda binaries by issuing
which python
You should see outputs with something similar to
/User/<your name>/anaconda3/bin/python
(For linux machines, this will be/home/...
instead of/User/...
). If you see this, no further action is required. If instead, you get something like/usr/bin/python
(i.e. without the anaconda3), you are using your system's python binaries. In this case, please add/User/<your name>/anaconda3/bin
to your$PATH
environment variable (Guide) and then proceed to the next step. -
Windows. In your opened anaconda prompt, issue the following:
-
Create a conda environment:
conda create -n workshop anaconda pip python=3.6
You can use any other name in place of
workshop
but be consistent hereafter -
Activate the environment:
activate workshop
Your prompt should change, from
C:>
to(workshop)C:>
-
Note: you can deactivate the environment by issuing
deactivate
. But make sure to activate the environment again before running any demos from the prompt, since the required packages are installed in this environment! For more information on conda environments, click here
-
-
MacOS, Linux. In your opened terminal, issue the following:
-
Create a conda environment:
conda create -n workshop anaconda pip python=3.6
You can use any other name in place of
workshop
but be consistent hereafter -
Activate the environment:
source activate workshop
Your prompt should change, from
$
to(workshop)$
-
Note: you can deactivate the environment by issuing
source deactivate
. But make sure to activate the environment again before running any demos from the terminal, since the required packages are installed in this environment! For more information on conda environments, click here
-
-
For demos using Jupyter notebook
* Launch Jupyter notebook
* Navigate to the
2s986_class
folder
* Navigate to the corresponding subfolders and click on <demo name>.ipynb
to begin interacting with the demo (Guide)
This project is licensed under the MIT license.