matplotlib / matplotlib/ipympl
ipympl changes MPL backend on import
还没有人认领这个 Issue。
- 主要语言
- Jupyter Notebook
- 星标
- 1.7k
- 派生
- 234
- PR 合并指标
- 30 天内没有已合并 PR
描述
In mne-python (see above), we have a functionality called sys_info, which gives us (among other things) the versions of all sorts of installed packages.
For this reason, we also import ipympl.
At import time, ipympl actually changes the MPL backend.
Is this something that could be avoided? This change in backend was very surprising to us and it took an in-depth profiling to identify it as the cause of a massive memory leak in a pipeline that produced several plots on each iteration, never closing them due to the backend change.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
检查 issue 和链接的 mne-python pull request review 中描述的导入时行为,重点关注导入 ipympl 会在何处改变 Matplotlib backend。使用 sys_info 风格的导入序列重现这一情况,并验证导入 ipympl 不再改变 backend,也不会导致报告中的 plot 生命周期问题。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter-notebook, matplotlib, python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100