Need jupyter-matplotlib 0.11 but can't upgrade
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- jupyter, jupyter-notebook, python
调研方向
首先,使用报告中的 Python 和 Jupyter 版本复现 %matplotlib widget,然后检查 jupyter labextension list 的输出,以及报告中显示的用户级和虚拟环境 labextension 路径。确定已注册的 jupyter-matplotlib 版本为何与已安装的 ipympl 版本不同;在执行报告中的安装或升级流程后,扩展能够加载且不出现 MPLCanvasModel 错误,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Describe the issue
When trying to plot something with %matplotlib widget I get the following error:
[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'MPLCanvasModel' from module 'jupyter-matplotlib'
Error: Module jupyter-matplotlib, version ^0.11 is not registered, however, 0.10.0 is
at f.loadClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.bcbea9feb6e7c4da7530.js?v=bcbea9feb6e7c4da7530:1:74977)
at f.loadModelClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:10729)
at f._make_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:7517)
at f.new_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:5137)
at f.handle_comm_open (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:3894)
at _handleCommOpen (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.bcbea9feb6e7c4da7530.js?v=bcbea9feb6e7c4da7530:1:73393)
at b._handleCommOpen (http://localhost:8888/static/lab/jlab_core.51beadafc5e485cc904a.js?v=51beadafc5e485cc904a:2:996724)
at async b._handleMessage (http://localhost:8888/static/lab/jlab_core.51beadafc5e485cc904a.js?v=51beadafc5e485cc904a:2:998714)
However python -m jupyter labextension update jupyter-matplotlib returns Extension 'jupyter-matplotlib' already up to date. And python -m jupyter labextension uninstall jupyter-matplotlib returns JupyterLab cannot uninstall jupyter-matplotlib since it was installed outside of JupyterLab. Use the same method used to install this extension to uninstall this extension.. Seems like some pip module is stopping me from modifying jupyter-matplotlib, but I can't see which. I've tried uninstalling and installing ipympl but no difference
Versions
3.10.6 (main, Aug 2 2022, 15:11:28) [GCC 9.4.0]
ipympl version: 0.9.2
Selected Jupyter core packages...
IPython : 7.16.1
ipykernel : 5.5.6
ipywidgets : 8.0.2
jupyter_client : 7.3.4
jupyter_core : 4.11.1
jupyter_server : 1.21.0
jupyterlab : 3.4.8
nbclient : 0.6.7
nbconvert : 7.0.0
nbformat : 5.4.0
notebook : 6.4.12
qtconsole : not installed
traitlets : 5.3.0
Known nbextensions:
config dir: /home/linus/workspace/convex_relaxations/venv3.10/etc/jupyter/nbconfig
notebook section
jupyter-matplotlib/extension enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
JupyterLab v3.4.8
/home/linus/.local/share/jupyter/labextensions
jupyter-matplotlib v0.10.0 enabled OK
/home/linus/workspace/convex_relaxations/venv3.10/share/jupyter/labextensions
@jupyter-widgets/jupyterlab-manager v5.0.3 enabled OK (python, jupyterlab_widgets)
Other labextensions (built into JupyterLab)
app dir: /home/linus/workspace/convex_relaxations/venv3.10/share/jupyter/lab
The following source extensions are overshadowed by older prebuilt extensions:
jupyter-matplotlib
- 主要语言
- Jupyter Notebook
- 星标
- 1.7k
- 派生
- 234
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
matplotlib/ipympl 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
matplotlib/ipympl#623 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
matplotlib/ipympl#622 · 13 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
matplotlib/ipympl#612 ·
-
难度 3/5 1-2 天 新手友好度 45/100
matplotlib/ipympl#611 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
matplotlib/ipympl#609 · 6 条评论 ·
查看 matplotlib/ipympl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
chore P3 plotly-internal size: 3 task
难度 2/5 1-3 小时 新手友好度 77/100
-
难度 2/5 1-3 小时 新手友好度 65/100
jbkunst/highcharter#849 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
equinor/energyvision#4027 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
bancolombia/sentinel#23 ·