inequality: the plotly figure (fig:plotly-gini-gdppc-years) renders nothing on the website

オープン 初心者向け
#871 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
80/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
jupyter-notebook, plotly, python

調査の方向性

lectures/inequality.md の 767–776 行目と lectures/_config.yml の 79 行目を開いてください。payload は 2 つの renderer オプションと抑制された mystnb.unknown_mime_type 警告を示しています。renderer の修正を 1 つ選び、inequality の講義を再ビルドし、ビルド後のページに図が表示されることを確認してください。完了とは、plotly の出力が mime-type の暗黙のドロップなしでレンダリングされることです。また、抑制を外すと他のページに影響するかどうかも確認してください。

索引モデルが issue の本文から書いたものです。

説明

bug

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 emits text/html. The #98 repro's test page renders a figure this way, in every build.
  • Setting plotly.io.renderers.default once in the lecture, before the figure.
  • Either way, dropping mystnb.unknown_mime_type from suppress_warnings would 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)

主要言語
Jupyter Notebook
スター
67
フォーク
35
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QuantEcon/lecture-python-intro のほかの issue

QuantEcon/lecture-python-intro の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。