【发布时间】:2017-04-06 07:45:39
【问题描述】:
我在 Jupyter 笔记本中使用 %%R 单元魔法。我知道您可以设置每个单元格的绘图大小,例如:
%%R -w 800 -h 600
但我想为整个 notebook/R 会话设置一个默认值。
我看过the documentation,看过this blog post on the R Jupyter Notebook Kernel,并看过Plot Size - Using ggplot2 in IPython Notebook (via rmagic) 按单元格设置绘图大小,但除非我错过了一些明显的东西,否则似乎没有办法为 R 魔法中的绘图设置默认绘图大小。
这可能吗?是否有隐藏设置,或者必须为每个单元格单独设置-w 和-h?
【问题讨论】:
标签: python r plot jupyter-notebook rpy2