bundles / IPython latest / IPython / core / tbtools / count_lines_in_py_file
_lru_cache_wrapper
IPython.core.tbtools:count_lines_in_py_file
source: /IPython/core/tbtools.py:23
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