matplotlib / matplotlib/ipympl
matplotlib widgets fail to load
未关闭
还没有人认领这个 Issue。
- 主要语言
- Jupyter Notebook
- 星标
- 1.7k
- 派生
- 234
- PR 合并指标
- 30 天内没有已合并 PR
描述
Describe the issue
Get a line like [<matplotlib.lines.Line2D at 0x7f610447e140>] when trying to plot, and an 'empty' plot which seems to have a toolbar of button, but no content.
developer tools console has:
Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason: Control comm was closed too early
_loadFromKernel @ manager-base.js:291
Versions
3.10.8 (main, Nov 30 2022, 11:24:29) [GCC 10.2.1 20210110]
ipympl version: 0.9.2
Selected Jupyter core packages...
IPython : 8.7.0
ipykernel : 6.18.3
ipywidgets : 8.0.2
jupyter_client : 7.4.7
jupyter_core : 5.1.0
jupyter_server : 1.23.3
jupyterlab : 3.5.1
nbclient : 0.7.2
nbconvert : 7.2.5
nbformat : 5.7.0
notebook : 6.5.2
qtconsole : not installed
traitlets : 5.6.0
Known nbextensions:
config dir: /home/zlobko/.pyenv/versions/3.10.8/etc/jupyter/nbconfig
notebook section
jupyter-matplotlib/extension enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
JupyterLab v3.5.1
/home/zlobko/.pyenv/versions/3.10.8/share/jupyter/labextensions
jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
jupyter-matplotlib v0.11.2 enabled OK
@jupyter-widgets/jupyterlab-manager v5.0.3 enabled OK (python, jupyterlab_widgets)
Other labextensions (built into JupyterLab)
app dir: /home/zlobko/.pyenv/versions/3.10.8/share/jupyter/lab
The following source extensions are overshadowed by older prebuilt extensions:
@jupyter-widgets/jupyterlab-manager
FWIW: This is on debian/WSL2 (which was converted from WSL1).
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用报告中的 Python、ipympl、JupyterLab 和 ipywidgets 版本重现空图,然后从 manager-base.js:291 中的 widget 加载失败以及已启用的 jupyter-matplotlib 扩展开始调查。完成的标准是 matplotlib widget 能在 JupyterLab 中加载,并且图表内容和工具栏能够显示,且不再出现报告中的通信通道错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter-notebook, python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100