Error reports from most language kernels running in IPython/Jupyter Notebooks indicate the line on which the error occurred; but (at least by default) no line numbers are in
In Jupyter Lab 2.1.5, it is View -> Show Line Numbers.