This repository demonstrates how to use CodeCarbon to estimate the carbon footprint of Python code.
- Python version: 3.9
- Anaconda: Version 3
- Jupyter Notebook: Run with root permissions
-
Clone this repository:
git clone https://github.com/your-username/sgit-codecarbon-demo.git
-
Navigate to the project directory:
cd sgit-codecarbon-demo -
Create and activate a virtual environment with Python 3.9 (if needed):
python3.9 -m venv venv source venv/bin/activate -
Start Jupyter Notebook with root permissions:
sudo jupyter notebook --allow-root --notebook-dir="PATH/sgit-codecarbon-demo" Replace "PATH/sgit-codecarbon-demo" with the actual path to this folder.