This is a development version (latest) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

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 :24

Signature

def   count_lines_in_py_file ( filename : str )  →  int

Summary

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