gpt4 book ai didi

python - 导出单个 iPython Jupyter Notebook 单元格输出

转载 作者:太空狗 更新时间:2023-10-29 18:13:00 24 4
gpt4 key购买 nike

我正在尝试格式化我的 iPython 笔记本,以便将它们更多地放入日志中。

display(HTML()) 结构的使用使一切都变得很好并且相对容易组织。

我想在其他媒体中使用某些单元格的输出,例如演示文稿。我现在的做法是截取该区域的屏幕截图,但随后一切都变成了像素,无法进行细化。

有没有办法以某种有用的格式呈现单个单元格的输出?

最佳答案

您可以尝试使用 %%capture Jupyter notebook 命令。

检查这个答案:how to save the output of a cell in iPython notebook?

关于python - 导出单个 iPython Jupyter Notebook 单元格输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37592778/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com