Fix carbon intensity chart in docs (#580)#1648
Open
vahid-ahmadi wants to merge 1 commit intomainfrom
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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 theCategoryaxis label, and relabel the value axis toTonnes CO2 per £1,000(the chart previously scaled intensity by 100 and used a nonsensicalpence/tonnetick suffix).execute_notebooks: offin_config.yml, so outputs stored in the.ipynbare 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
nbclient, plotly 6.7.0).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.🤖 Generated with Claude Code