Ivan Lee
Ivan Lee

Reputation: 4261

How to recall function in .py file from notebook of Jupyter

I have a .py file defining some functions(or methods). How to recall those functions from notebook of Jupyter.

Upvotes: 0

Views: 424

Answers (1)

JMSH
JMSH

Reputation: 1408

I think it may be like that:

 from name_file.py import name_function

(now I can use name_fuction function)

or for all functions:

import name_file.py

(now I can use name_file.name_fuction function)

Upvotes: 1

Related Questions