I tried to allign the python version and all the pip-dependencies as good as possible with the modules available on EBRAINS. At the time of writing (May 2023), the EBRAINS-23.02 python kernel is used.
TODO
We use nb-stripout as a precommit-hook for formatting jupyter notebooks before commiting.
- Make sure that python 3.8 is installed on your system.
- Clone the repo:
git clone git@github.com:timomit/dsa-python-course.gitand move to directory:cd dsa-python-course. - Create a virtual environment. Use one the following options:
- Conda:
conda env create -n dsa-tut python=3.8, thenconda activate dsa-tut - Python venv:
python3.8 -m venv "dsa-tut", thensource dsa-tut/bin/activate
- Conda:
- Install python dependencies:
pip install -r requirements.txt - Install the pre-commit hooks:
pre-commit install. - Happy coding!