【发布时间】:2020-12-08 05:34:21
【问题描述】:
在 org-mode 中,我可以命名代码块的输出并将其包含在文档的其他位置。
是否可以在 colab .ipynb 文件或一般的 Jupyter 笔记本中执行此操作(或类似内容)?
例如,我可以使用一些 Python 代码来制作一个单元格以生成绘图:
import matplotlib.pyplot as plt
plt.plot([0,2,1,4,9])
执行后,绘图出现在代码单元格下方。到目前为止一切顺利。
但是我如何捕捉这个情节并在笔记本的其他地方使用它?
我希望有一些语法,以便我可以将绘图包含在降价单元格中,例如:
# this is my title
As you can see, the numbers go up and down in the plot:
![][some_magic_link_here]
Here is some more text to explain the plot.
colab 有这样的功能吗?
【问题讨论】:
标签: jupyter-notebook google-colaboratory