【问题标题】:Ipython display function html equivalent but for r kernelIpython 显示功能 html 等效但适用于 r 内核
【发布时间】:2019-03-26 15:09:17
【问题描述】:

我在 ipython 单元(python 内核)中有以下代码:

from IPython.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))

这样,当我导出到 html 时,笔记本会占据 html 的整个宽度。

除了 r 内核 ipython 笔记本之外,还有其他等价物吗?

感谢您的帮助!

【问题讨论】:

    标签: html r ipython width display


    【解决方案1】:

    最后,当我将笔记本导出为 html 时,我设法做到了,它占用了总宽度。我修改了文件.../anaconda3/lib/python3.7/site-packages/nbconvert/resources/style.min.css 添加.container { width:100% !important;}

    【讨论】:

      猜你喜欢
      • 2021-12-29
      • 2016-04-27
      • 2015-11-27
      • 1970-01-01
      • 1970-01-01
      • 2015-05-04
      • 2016-03-06
      • 2020-11-07
      • 1970-01-01
      相关资源
      最近更新 更多