Figures not automatically rendered in some cases
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- jupyter-notebook, python
调研方向
首先在一个全新的 Jupyter kernel 中复现双单元格示例,比较有无 style context 和 DateFormatter 时的 inline rendering 行为。跟踪第一个单元格之后的 rendering path;当后续单元格中创建的图形能够正常渲染时即表示完成。
由索引模型根据 Issue 内容生成。
描述
I found that in a fresh Jupyter kernel, the following snippet prevents further figures to be rendered:
# cell 1
import matplotlib.pyplot as plt
from matplotlib.dates import DateFormatter
with plt.style.context('seaborn'):
fig, ax = plt.subplots(figsize=(5, 5))
ax.xaxis.set_major_formatter(DateFormatter("%H:%M"))
This figure ("cell 1") is rendered, but new figures are not rendered any more in a notebook:
# cell 2
fig, ax = plt.subplots(figsize=(5, 5)) # not rendered
The issue does not appear in any of the following case:
- "cell 2" is run before "cell 1": all following figures are then properly rendered
- The
%matplotlib inlineinstruction is explicitly added, before or after "cell 1" - The context manager is not used (but it fails with any stylesheet)
- The
DateFormatteris not applied
- 主要语言
- Jupyter Notebook
- 星标
- 31
- 派生
- 39
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ipython/matplotlib-inline 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 48/100
ipython/matplotlib-inline#61 ·
-
难度 3/5 1-2 天 新手友好度 35/100
ipython/matplotlib-inline#59 ·
-
难度 3/5 1-2 天 新手友好度 35/100
ipython/matplotlib-inline#57 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
ipython/matplotlib-inline#54 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 48/100
ipython/matplotlib-inline#44 · 1 条评论 ·
查看 ipython/matplotlib-inline 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
scope: charts status: waiting for maintainer
难度 2/5 1-3 小时 新手友好度 88/100
-
chore P3 plotly-internal size: 3 task
难度 2/5 1-3 小时 新手友好度 77/100
-
难度 2/5 1-3 小时 新手友好度 76/100
Live-Charts/LiveCharts2#2394 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
jbkunst/highcharter#849 ·