matplotlib / matplotlib/ipympl
"Error displaying widget" using Jupyter Lab 1.0.2
未关闭
还没有人认领这个 Issue。
- 主要语言
- Jupyter Notebook
- 星标
- 1.7k
- 派生
- 234
- PR 合并指标
- 30 天内没有已合并 PR
描述
Possibly related to #124, I am trying to run a super simple example after following the installation instructions:
pip install ipympl
# If using JupyterLab
# Install nodejs: https://nodejs.org/en/download/
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-matplotlib
nodejs info:
$ node -v
v10.16.0
$ npm version
{ npm: '6.9.0',
...
}
Jupyter info:
$ jupyter --version
jupyter core : 4.5.0
jupyter-notebook : 6.0.0
qtconsole : not installed
ipython : 7.6.1
ipykernel : 5.1.1
jupyter client : 5.3.1
jupyter lab : 1.0.2
nbconvert : 5.5.0
ipywidgets : 7.5.0
nbformat : 4.4.0
traitlets : 4.3.2
Simple example:
# Enabling the `widget` backend.
# This requires jupyter-matplotlib a.k.a. ipympl.
# ipympl can be install via pip or conda.
%matplotlib widget
# aka import ipympl
import matplotlib.pyplot as plt
plt.plot([0, 1, 2, 2])
plt.show()
Error:
Error displaying widget
Not sure what else I need, or where a version mismatch is, any help is appreciated. Thank you!
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用列出的 ipympl、JupyterLab、Node.js 和 Jupyter 软件包版本以及显示的 labextension 命令重现该示例。检查 JupyterLab 小部件扩展的设置和版本兼容性;完成的标准是示例显示绘制的小部件,而不是显示 "Error displaying widget"。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter-notebook, node.js, python
- 领域
- frontend, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100