bundles / IPython 9.10.0 / IPython / core / oinspect / find_file
function
IPython.core.oinspect:find_file
source: /IPython/core/oinspect.py :317
Signature
def find_file ( obj ) → Optional[str] Summary
Find the absolute path to the file where an object was defined.
Extended Summary
This is essentially a robust wrapper around inspect.getabsfile.
Returns None if no file can be found.
Parameters
obj: any Python object
Returns
fname: strThe absolute path to the file where the object was defined.
Aliases
-
IPython.core.oinspect.find_file