如何从 Jupyter notebook 调用 .py 文件中的函数
How to recall function in .py file from notebook of Jupyter
我有一个 .py 文件定义了一些函数(或方法)。如何从Jupyter的notebook中调用这些函数
我觉得可能是这样的:
from name_file.py import name_function
(现在我可以使用name_fuction函数)
或所有函数:
import name_file.py
(现在我可以使用name_file.name_fuction函数)
我有一个 .py 文件定义了一些函数(或方法)。如何从Jupyter的notebook中调用这些函数
我觉得可能是这样的:
from name_file.py import name_function
(现在我可以使用name_fuction函数)
或所有函数:
import name_file.py
(现在我可以使用name_file.name_fuction函数)