For this workshop it is required that you have Python pre-installed on your computer. This is a basic guide on how to do this.
-
The simplest way to install Python is direct from the Python website. Please download the windows installer for your processor type (nearly always 64bit) and the latest version 3.11.x
-
Run the installer (that you have just downloaded). Follow the install instructions. It is important that you tick
Add python to PATH
-
Check the installation
- Open Command Prompt
- Run the command
python
The best way to install Python on MacOS is from the offical Python website. Then follow the rest of these instructions.
Please look up the specific method for your distribution.
The easiest way to install packages is using the python package manager pip. This will install packages along with any depencies that they might have.
The latest version of deerlab can be installed with:
pip install deerlab
It is also recomended that you install jupyter. This is required for this workshop but not DeerLab.
pip install jupyter
Run this command to check that deerlab is install properly
python -c "import deerlab; print(deerlab.dd_gauss)"
Whilst everything above is all that is required to use DeerLab it is highly recomended that an IDE is used to program. Here there is two options:
VScode is the most popular development enviroment in the world, with over 70% of developers using it. It is developed by Microsoft.
- It can be installed from the VSCode Website
- Run the installer. Follow the install instructions.
- Start VScode
-
Open your Extensions Tab. Install:
- Python
- Jupyter
-
Your python version should appear status bar at the bottom
Jupyter Lab is a self-hosted web based IDE for Jupyter Notebooks.
- It can be installed using pip
pip install jupyterlab
- Start Jupyter Lab from Command Prompt
jupyter-lab
- Navigate to the relevant folder
To do the course you want to make sure that you have successfully downloaded these scripts and data. This can be download as a zip file by pressing this link. download this folder/repo
Then open this folder in either VScode or Jupyter lab. Before the course have a look at 01-python-basics.