在Jupyter中的Markdown中内联加载纯文本

时间:2020-04-24 09:21:00

标签: python jupyter jupyter-lab

我知道您可以使用%load file_name.ext在Jupyter笔记本单元格中“导入”文本或代码,但这会将整个内容粘贴到单元格中。有没有办法在Markdown单元中的所需位置加载文本博客?

我要的是这个东西

This is some custom text from my current notebook and because I share the same example across multiple notebooks, I'd like to re-use it and not copy-paste it everywhere:

<<<insert contents of some_file.md>>>

And then I can continue with a text that's only visible in this notebook.

这样,我不必重复自己,也不必在一个地方即可编辑这些共享的文本(或代码)。

0 个答案:

没有答案
相关问题