The Backlog of hackhatons and dev-meetings activities can be found in the logs folder.
Instructions to setup the (local) Python development environment are reported below, using either venv or conda (for Anaconda Python distribution):
black and flake8 are used for uniform and PEP8-compliant coding style and formatting. Automate checking for style and formatting is integrated via pre-commit git hooks. More details in the pre-commit section.
The venv module provides support for creating lightweight “virtual environments”
with their own site directories, optionally isolated from system site directories.
Each virtual environment has its own Python binary
(which matches the version of the binary that was used to create this environment)
and can have its own independent set of installed Python packages in
its site directories.
Note: The venv module is part of the Python Standard Library, so no further
installation is required.
The following 3 steps are required to setup a new virtual environment
using venv:
-
Create the environment:
python -m venv <PATH-TO-VENV-FOLDER>/thecurious
-
Activate the environment:
source <PATH-TO-VENV-FOLDER>/thecurious/bin/activate-
Install the Required Package (using the
requirements.txtfile):pip install -r requirements.txt
-
(Optional) Create new Jupyter notebook Kernel
To avoid re-installing the entire Jupyter stack into the new environment, it is possible to add a new Jupyter Kernel to be used in notebooks with the "default" Jupyter.
To do so, please make sure that the ipykernel package is installed in the new Python environment:
pip install ipykernel ## this should be the default pipThen, execute the following command:
python -m ipykernel install --user --prefix <PATH-TO-VENV-FOLDER>/thecurious --display-name "Python 3 (TheCurious)"Further information here
If you are using Anaconda Python distribution (recommended),
it is possible to re-create the virtual (conda) environment using the export .yml (YAML) file:
conda env create -f thecurious_conda_env.ymlThis will create a new Conda environment named thecurious with all the
required packages. To activate the environment:
conda activate thecuriousTo avoid re-installing the entire Jupyter stack into the new environment, it is possible to add a new Jupyter Kernel to be used in notebooks with the "default" Jupyter.
To do so, please make sure that the ipykernel package is installed in the new conda environment:
conda install ipykernelThen, still remaining in the new conda environment, execute the following command:
python -m ipykernel install --user --name thecurious --display-name "Python 3 (TheCurious)"Further information here
In order to automate the black and flake8 code formatting, this project integrates the pre-commit Python package.
The pre-commit package can be installed via pip
(already included in the virtual environment):
pip install pre-commitTo install and enbale the git hooks (in the ./git/hooks directory):
pre-commit install