python - 运行 jupyter notebook 文件夹中的脚本 (.ipynb)
问题描述
我试图在 jupyter notebook 中运行脚本(.ipynb),但这个脚本与原始 jupyter notebook 位于不同的文件夹中。我想执行:
%run Scripts/python/script.ipynb
文件夹Scripts不在 jupyter notebook 的文件夹中。
解决方案
在我的情况下,只需将粘贴文件复制到 jupyter 根目录,它是 Users/{user-name}/,
推荐阅读
- java - 如何在 java 中使用 ProcessBuilder 调用 .bat 文件并发送字符串
- isabelle - 如何定义 exchange(X) 以使这个定理没有错误?
- r - 如何计算 R 中的个体受限平均生存时间(RMST)?
- solr - Solr查询比较同一文档中的两个日期
- objective-c - 处理顺序和异步事件的状态机
- php - 保存来自 Laravel 控制器的草稿电子邮件
- css - 我怎样才能在底部和顶部产生这种波浪效果
- python - 从 python 执行时,存储过程在几个步骤后停止执行
- applescript - 如何点击红色“X”并最小化应用程序而不是关闭它?
- reactjs - React Js 只加载第一个 SVG