首页 > 解决方案 > 运行 jupyter notebook 文件夹中的脚本 (.ipynb)

问题描述

我试图在 jupyter notebook 中运行脚本(.ipynb),但这个脚本与原始 jupyter notebook 位于不同的文件夹中。我想执行:
%run Scripts/python/script.ipynb
文件夹Scripts不在 jupyter notebook 的文件夹中。

标签: pythonjupyter-notebook

解决方案


在我的情况下,只需将粘贴文件复制到 jupyter 根目录,它是 Users/{user-name}/,


推荐阅读