Skip to content

Fix carbon intensity chart in docs (#580)#1648

Open
vahid-ahmadi wants to merge 1 commit intomainfrom
fix/carbon-intensity-chart-580
Open

Fix carbon intensity chart in docs (#580)#1648
vahid-ahmadi wants to merge 1 commit intomainfrom
fix/carbon-intensity-chart-580

Conversation

@vahid-ahmadi
Copy link
Copy Markdown
Collaborator

Summary

  • In docs/book/programs/contrib/ubi-center/carbon-tax.ipynb, flip the carbon intensity bar chart from vertical to horizontal so long category names are readable, remove the Category axis label, and relabel the value axis to Tonnes CO2 per £1,000 (the chart previously scaled intensity by 100 and used a nonsensical pence/tonne tick suffix).
  • Re-execute the notebook so the built jupyter-book renders the updated chart (execute_notebooks: off in _config.yml, so outputs stored in the .ipynb are what ship to docs).

Closes #580.

Out of scope for this PR: the issue also asks to update the chart in Nikhil's old blog post — that lives outside this repo.

Test plan

  • Notebook executes cleanly locally (nbclient, plotly 6.7.0).
  • Inspected the regenerated plotly JSON: orientation=h, x-axis title = Tonnes CO2 per £1,000, y-axis title empty, categories sorted so the largest (Housing, water and electricity) is at the top.
  • CI green.

🤖 Generated with Claude Code

The chart in docs/book/programs/contrib/ubi-center/carbon-tax.ipynb
is now a horizontal bar chart (axes flipped), with the "Category"
axis label removed and the value axis relabelled to "Tonnes CO2 per
£1,000". The previous chart scaled intensity by 100 and had a
nonsensical "pence/tonne" tick suffix.

Notebook outputs re-executed so the built jupyter-book renders the
new chart (execute_notebooks is off).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vahid-ahmadi vahid-ahmadi self-assigned this Apr 29, 2026
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 this pull request may close these issues.

Fix carbon intensity chart in docs

1 participant