Jupter导入ipynb文件

方法一
%run MyOtherNotebook.ipynb
方法二
import import_ipynb
import A
 
 
其他方法:
Run
pip install ipynb

and then import the other notebook as

from ipynb.fs.full.<notebook_name> import *

or

from ipynb.fs.full.<notebook_name> import <function_name>

 

From:https://stackoverflow.com/questions/20186344/importing-an-ipynb-file-from-another-ipynb-file

posted @ 2022-11-28 13:51  C羽言  阅读(71)  评论(0编辑  收藏  举报