Skip to content

Repository files navigation

sgit-codecarbon-demo

This repository demonstrates how to use CodeCarbon to estimate the carbon footprint of Python code.

Environment

  • Python version: 3.9
  • Anaconda: Version 3
  • Jupyter Notebook: Run with root permissions

How to Run

  1. Clone this repository:

    git clone https://github.com/your-username/sgit-codecarbon-demo.git
    
  2. Navigate to the project directory:

    cd sgit-codecarbon-demo
    
  3. Create and activate a virtual environment with Python 3.9 (if needed):

    python3.9 -m venv venv
    source venv/bin/activate
    
    
  4. 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.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages