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

Multicursor disappears when not moving

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

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
jupyter, jupyter-notebook
领域
frontend

调研方向

首先在 JupyterLab 和 classic Notebook 中运行链接的 Matplotlib MultiCursor 文档示例,然后将其行为与 QT 进行比较。调查光标小部件的渲染路径;当鼠标停止移动后,多光标在两个 Jupyter 环境中都仍保持可见时,即表示完成。

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

描述

Describe the issue

In both JupyterLab and old Notebook MultiCursor not only is blinking when is bing moved, but also completely disappears when mouse stops motion. Same code works fine in QT.

Documentation example may be used for demonstration:


import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import MultiCursor

t = np.arange(0.0, 2.0, 0.01)
s1 = np.sin(2*np.pi*t)
s2 = np.sin(4*np.pi*t)

fig, (ax1, ax2) = plt.subplots(2, sharex=True)
ax1.plot(t, s1)
ax2.plot(t, s2)

multi = MultiCursor(fig.canvas, (ax1, ax2), color='r', lw=1)
plt.show()

Versions

3.8.3 | packaged by conda-forge | (default, Jun  1 2020, 17:43:00) 
[GCC 7.5.0]
ipympl version: 0.6.3
jupyter core     : 4.7.1
jupyter-notebook : 6.2.0
qtconsole        : 5.0.2
ipython          : 7.20.0
ipykernel        : 5.3.4
jupyter client   : 6.1.7
jupyter lab      : 3.0.7
nbconvert        : 6.0.7
ipywidgets       : 7.6.3
nbformat         : 5.1.2
traitlets        : 5.0.5
Config option `kernel_spec_manager_class` not recognized by `ListNBExtensionsApp`.
Known nbextensions:
  config dir: /home/ilyap/.jupyter/nbconfig
    notebook section
      limit_output/main disabled
      table_beautifier/main disabled
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
      qtconsole/qtconsole disabled
      hinterland/hinterland disabled
      snippets_menu/main disabled
      jupyter-datawidgets/extension  enabled 
      - Validating: OK
      collapsible_headings/main disabled
      code_font_size/code_font_size disabled
      addbefore/main disabled
  config dir: /home/ilyap/anaconda3/etc/jupyter/nbconfig
    notebook section
      bqplot/extension  enabled 
      - Validating: OK
      ipyvolume/extension  enabled 
      - Validating: OK
      jupyter-webrtc/extension  enabled 
      - Validating: OK
      jupyter-datawidgets/extension  enabled 
      - Validating: OK
      jupyter-matplotlib/extension  enabled 
      - Validating: OK
      jupyter-threejs/extension  enabled 
      - Validating: OK
      k3d/extension  enabled 
      - Validating: OK
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
      qgrid/extension  enabled 
      - Validating: OK
      hide_code/hide_code  enabled 
      - Validating: OK
Config option `kernel_spec_manager_class` not recognized by `ListLabExtensionsApp`.
[W 2021-03-01 14:01:32.364 LabApp] Config option `kernel_spec_manager_class` not recognized by `LabApp`.
JupyterLab v3.0.7
/home/ilyap/anaconda3/share/jupyter/labextensions
        jupyter-matplotlib v0.8.3 enabled OK
        bqplot v0.5.21 enabled OK
        jupyterlab-datawidgets v7.0.0 enabled OK
        @jupyter-widgets/jupyterlab-manager v3.0.0 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab)
   app dir: /home/ilyap/anaconda3/share/jupyter/lab
        @arbennett/base16-one-dark v0.1.5 enabled OK
        jupyterlab_hidecode v0.1.4 enabled OK


Uninstalled core extensions:
    @aquirdturtle/collapsible_headings

主要语言
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

更多 Web Dev Issue

把新 issue 发到你的邮箱

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