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).
CTRL - M L toggles line numbers in the CodeMirror area. See the QuickHelp for other keyboard shortcuts. In more details CTRL - M (or ESC ) bring you to command mode, then pressing the L keys should toggle the visibility of current cell line numbers. In more recent notebook versions Shift-L should toggle for all cells.
Working with Google Sheets Colab also supports rich outputs such as charts. Type in the following code in the Code cell. Note that the graphical output is shown in the output section of the Code cell. Likewise, you will be able to create and display several types of charts throughout your program code.
Function Documentation Colab gives you the documentation on any function or class as a context-sensitive help. Now, hit TAB and you will see the documentation on cos in the popup window as shown in the screenshot here. Note that you need to type in open parenthesis before hitting TAB.
To simply have all the cells run automatically, click Runtime > Run all in the colab toolbar.
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
Holding Ctrl and pressing ML (one by one) switches on/off line numbers in the cells containing code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With