pytest
- Run all tests in the current directory
pytest -k test_name
- Run a specific test
pytest -v
- Verbose output
pytest testing/
- Run all tests in a specific directory
pytest test_module.py
- Run all tests in a specific file
https://docs.pytest.org/en/7.1.x/how-to/usage.html
pyenv install -l
pyenv install 3.x.x
pyenv versions
pyenv local 3.x.x
pyenv global 3.x.x
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
python -m venv /path/to/new/virtual/environment
- Setup a new virtual environment
conda env create -f conda-environment.yml
- Create a new conda environment from a file
conda env list
- List all conda environments
conda activate myenv
- Activate a conda environment
pip install jupyter
- Installs the jupyter package
pipx install jupyter
- Installs the jupyter package globally
jupyter-lab
- Runs jupyter lab
jupyter notebook
- Runs jupyter notebook