So in latest versions of Jupyter you can just Use Shift+L for Mac and Shift+L for windows to toggle on the Line numbers in native Jupyter Lab.
Shift+L
Or you can turn on in the GUI by navigating to View>Show Line Numbers