Showing line numbers in Jupyter Notebooks Help > Keyboard Shortcuts > toggle line numbers On OSX running ipython3 it was ESC L