How to show line numbers in Google Colaboratory?

Guillaume Chevalier picture Guillaume Chevalier · Mar 8, 2018 · Viewed 11.7k times · Source

Normally it is possible in jupyter or iPython notebooks to show lines number for a cell, however I don't see where in Google Colaboratory (Colab).

Answer

Jason Angel picture Jason Angel · Mar 8, 2018

Yep, the shortcut (Ctrl + M + L) works, other option is use the bar menu, at tool -> preference -> show line numbers

Update: new path: Tools -> Settings -> Editor -> show line numbers