bundles / IPython 9.17.0 / IPython / core / tbtools / count_lines_in_py_file
_lru_cache_wrapper
IPython.core.tbtools:count_lines_in_py_file
Signature
def count_lines_in_py_file(filename: str) → intSummary
Given a filename, returns the number of lines in the file if it ends with the extension ".py". Otherwise, returns 0.
Aliases
IPython.core.tbtools.count_lines_in_py_file