inequality: the plotly figure (fig:plotly-gini-gdppc-years) renders nothing on the website
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 80/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- jupyter-notebook, plotly, python
- Domain
- build-system, documentation
Research direction
Open lectures/inequality.md at lines 767–776 and lectures/_config.yml line 79; the payload names the two renderer options and the suppressed mystnb.unknown_mime_type warning. Choose one renderer fix, rebuild the inequality lecture, and confirm the figure appears in the built page. Done means the plotly output renders without the silent mime-type drop; also check whether removing the suppression affects other pages.
Written by the indexing model from the issue text.
Description
The plotly figure in inequality.md (fig:plotly-gini-gdppc-years, lectures/inequality.md:767–:776) renders nothing on the website. On https://intro.quantecon.org/inequality.html the cell's output is empty (checked 2026-11-15).
Why. plotly 6's default renderer in a Jupyter kernel emits only application/vnd.plotly.v1+json. myst-nb has no renderer for that mimetype, so it drops the output with a mystnb.unknown_mime_type warning. lectures/_config.yml:79 suppresses that warning, and the build passes without a word.
The rm -r _build/.doctrees step in publish.yml plays no part in this: the figure is missing with or without it (QuantEcon/actions#98, where this was found).
Options
fig.show(renderer="notebook_connected"), which emitstext/html. The #98 repro's test page renders a figure this way, in every build.- Setting
plotly.io.renderers.defaultonce in the lecture, before the figure. - Either way, dropping
mystnb.unknown_mime_typefromsuppress_warningswould turn the next such drop into a warning rather than a silent gap. Other pages may rely on that suppression, though.
Claude Code (on behalf of mmcky)
- Dominant language
- Jupyter Notebook
- Stars
- 67
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from QuantEcon/lecture-python-intro
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
lake_model_intro, time_series_with_matrices, long_run_growth: four small fixesPossibly taken @nishantmishraa claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
QuantEcon/lecture-python-intro#862 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
inequality's data.ipynb raises under the pinned pandas 3, and nothing runs it to noticePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in QuantEcon/lecture-python-intro
Similar issues
-
ready-for-agent tech-debt
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
DigiBanks99/menlo#640 ·
Maintainers usually reply within 1 day
-
aikido critical security
Difficulty 1/5 Under an hour Newbie friendliness 72/100
dequelabs/axe-core-nuget#305 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
google/tensorstore#306 ·
-
ci good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
TMHSDigital/GH-Arcade#111 ·
-
agent:WSL bug code-review linux pri:medium sev:low tooling
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day