CTRL - M L toggles line numbers in the CodeMirror area. See QuickHelp for other keyboard shortcuts.
In more detail, CTRL - M (or ESC ) will bring you to command mode, then pressing the L keys should switch the visibility of the current cell numbers. In later versions of laptops, Shift-L should switch for all cells.
If you cannot remember the shortcut, pick up the command bar Ctrl-Shift + P ( Cmd + Shift + P on Mac) and find the โline numbersโ), it should allow you to switch and show you the shortcut.
minrk Jun 11 2018-12-12T00: 00Z
source share