matplotlib / matplotlib/ipympl
Version 0.5.0+ no longer displays output after widget interaction
还没有人认领这个 Issue。
- 主要语言
- Jupyter Notebook
- 星标
- 1.7k
- 派生
- 234
- PR 合并指标
- 30 天内没有已合并 PR
描述
I have not labeled this as a "bug report" as I am not sure whether this is a new feature or regression.
I am developing a package for the processing of NMR spectra that makes extensive use of the ipympl backend:
https://github.com/NMRPy/nmrpy
As part of this there are a number of widgets (interactive matplotlib graphs) for phasing and peak picking of the NMR spectra. Some of these widgets print output to the cell output area (below the ipympl widget) after user interaction, using simple `print()` function calls in the code. In some cases further user input is required for which I have made use of an `ipywidgets.FloatText()` which is then also displayed in the output area.
**As of version 0.5.0 this cell output area is no longer displayed.** The widget interaction with the ipympl graphs still works but the text output from `print()` calls and the ipywidgets output are not there.
- Is this intentional or a regression?
- If intentional, is there a way to get the output area back, or an alternative where to direct text output after interaction with a graph (or instantiate an `ipywidgets` widget) so that it is displayed to the user?
This functionality is crucial to my application and currently I am thus stuck with using ipympl<0.5.0. BTW this is using notebook, not jupyterlab.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在经典 Jupyter Notebook 中,将 ipympl 0.5.0 与 0.5.0 之前的版本进行比较,重现与 ipympl 图表、print() 和 ipywidgets.FloatText() 的交互。跟踪交互后 widget 输出的显示方式;当打印的文本和实例化的 widget 再次出现在单元格输出区域中,或已记录受支持的替代方案时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- jupyter-notebook
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100