Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain dashboard usage in README #521

Open
jonas4climate opened this issue Mar 28, 2024 · 2 comments · May be fixed by #508
Open

Explain dashboard usage in README #521

jonas4climate opened this issue Mar 28, 2024 · 2 comments · May be fixed by #508
Assignees

Comments

@jonas4climate
Copy link

jonas4climate commented Mar 28, 2024

  • CodeCarbon version: master
  • Python version: 3.11
  • Operating System: macOS 14.2.1

Description

I wanted to test out the project, so I ran the initialization and wanted to view the emission tracking using the dashboard mentioned in the README. However, I don't understand how the dashboard works or how to view my currently running project on it.

What I Did

Step 1:

Ran Jupyter Notebook:

!codecarbon init
!echo "log_level = DEBUG\nsave_to_api = True" >> .codecarbon.config
!codecarbon monitor
# Happy with just testing it out without any code running

Step 2:
Go to https://dashboard.codecarbon.io/
Here I don't know how to proceed. The overview seems global but I assumed I will be able to track my local project, however not sure how to. Do I need to specify a name somewhere and select it from the projects list perhaps?

It would be nice if the mandatory steps to use the dashboard intuitively are explained in the README

@LuisBlanche
Copy link
Contributor

Hi Jonas ! Thanks for using CodeCarbon
There are some ongoing pull requests to improve the Dashboard and CLI user Experience. The idea is that there is a hierarchy Organisation > Team > Project > Experiment, and as of now you can find your experiment by knowing in which Project of which Team of which Organization it belongs to. Currently the only way to create organisations, projects or teams is through the (OpenAPI interface, or by sending queries to the API.

In a future release you will have the functionalities to create those directly from the codecarbon CLI or from the dashboard configuration page.

@benoit-cty
Copy link
Contributor

In .codecarbon.config you will find the experiment_id but yes it is hard to find it in the dashboard. @alencon is working on it.

You could get the total of your runs by calling:

curl -X 'GET' \
  'https://api.codecarbon.io/runs/YOUR_EXPERIMENT_ID_HERE/sums/?token=jessica' \
  -H 'accept: application/json' \
  -H 'x_token: fake-super-secret-token'

@benoit-cty benoit-cty linked a pull request Apr 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants