Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

MS Edge (non-Chromium): jupyter-matplotlib plots not showing in JupyterLab

未关闭
#172 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
jupyter, matplotlib, python

调研方向

首先,使用报告中的 ipympl、matplotlib 和 jupyter-matplotlib 版本,在非 Chromium 的 Microsoft Edge 上的 JupyterLab 1.2.6 中复现空白的内联绘图。比较 Jupyter Notebook 中相同的 %matplotlib widget 示例,并检查 JupyterLab 扩展和 widget 渲染路径。当绘图在受影响的环境中以内联方式渲染且控件正常工作时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Hello, this is my first GitHub post. I just installed ipympl and can't get it to work properly in JupyterLab. The widget controls are there, but plot is blank. Plot coordinates are updated when mouse is moved around in the plot area. It works fine in Jupyter notebooks.

Setup (Win 10 x64, Anaconda):

conda list jupyter
# packages in environment at C:\Users\me\Anaconda3\envs\jupmpl:
#
# Name                    Version                   Build  Channel
jupyter                   1.0.0                    py37_7
jupyter_client            5.3.4                    py37_0
jupyter_console           6.1.0                      py_0
jupyter_core              4.6.1                    py37_0
jupyterlab                1.2.6              pyhf63ae98_0
jupyterlab_server         1.0.6                      py_0
jupyterthemes             0.20.0                   pypi_0    pypi
jupyter labextension list
JupyterLab v1.2.6
Known labextensions:
   app dir: C:\Users\me\Anaconda3\envs\jupmpl\share\jupyter\lab
        @bokeh/jupyter_bokeh v1.1.1 enabled  ok
        @jupyter-widgets/jupyterlab-manager v1.1.0 enabled  ok
        jupyter-matplotlib v0.5.0 enabled  ok
conda -V
conda 4.8.2
conda list 'python|conda|ipympl|nodejs|ipywidgets|widgetsnbextension|notebook|matplotlib'
# packages in environment at C:\Users\me\Anaconda3\envs\jupmpl:
#
# Name                    Version                   Build  Channel
_anaconda_depends         2019.03                  py37_0
anaconda                  custom                   py37_1
anaconda-client           1.7.2                    py37_0
anaconda-navigator        1.9.7                    py37_0
anaconda-project          0.8.4                      py_0
conda-package-handling    1.6.0            py37h62dcd97_0
conda-verify              3.4.2                      py_1
ipympl                    0.4.1                      py_0    conda-forge
ipython                   7.12.0           py37h5ca1d4c_0
ipython_genutils          0.2.0                    py37_0
ipywidgets                7.5.1                      py_0
matplotlib                3.1.3                    py37_0
matplotlib-base           3.1.3            py37h64f37c6_0
msgpack-python            0.6.1            py37h74a9793_1
msys2-conda-epoch         20160418                      1
nodejs                    13.8.0                        0    conda-forge
notebook                  6.0.3                    py37_0
python                    3.7.6                h60c2a47_2
python-dateutil           2.8.1                      py_0
python-libarchive-c       2.8                     py37_13
widgetsnbextension        3.5.1                    py37_0

I followed install directions as on the jupyterlab-matplotlib GitHub site, and am using the matplotlib Jupyter magic:

%matplotlib widget

jlab

Note that I can get working interactive 3d plots in external windows by invoking %pylab or
%matplotlib from JupyterLab. But I get no plots inline.

I have messed around with this for many hours and am getting nowhere. Any help would be greatly appreciated! :-)

主要语言
Jupyter Notebook
星标
1.7k
派生
234
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

matplotlib/ipympl 的其他 Issue

查看 matplotlib/ipympl 的全部 Issue

相似的 Issue

更多 Data Visualization Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。