我知道您可以使用%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.
这样,我不必重复自己,也不必在一个地方即可编辑这些共享的文本(或代码)。