有没有办法在 Jupyter Notebook 上创建一个脚本,我可以 运行 一个又一个笔记本?

Is there a way to create a script on Jupyter Notebook where I can run one notebook after another?

我有大约 10 个笔记本,我想一个接一个地 运行,现在我手动做,我想知道 Jupyter 上是否有一种方法可以 运行 每个通过一个笔记本的笔记本?

您实际上可以使用以下命令实现此目的:

%run /path-of-the-notebook-that-has-to-be-run/notebook.ipynb

您可以在 documentation about running a Jupyter Notebook from another Jupyter Notebook 中找到更多详细信息。