Line numbers when writing code or if presenting to a classroom becomes really important to have a better focus and context. If you make use of Google Colab as a Python Notebook and want to show the line numbers for the code in each cell then you can follow the below easy steps.
Step 1: Open a Notebook in Google Colab
Step 2: Now click on the Gear Icon (Settings) at the top right side
Step 3: Now go to Editor tap and select "Show line number" checkbox

Step 4: Click Save to apply changes.

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Google,
- How to get nest aware on iPhone
- Fetch as Google Crawl Error or Redirected Status
- How to upload and read csv file in Google Colab
- Google Celebrates Rosa Bonheur 200th birthday with a Google Doodle
- Fix: Cannot contact reCAPTCHA. Check your connection and try again.
- Google Webmaster : An error has occurred. Please try again later
- [Fix] reCAPTCHA not working in Web Browser
- Fetch More then 10 Links Per Page in Google Search Result
- How to do a Reverse Image Search Using Google Tools
- Turning Off Chat in Gmail
- How to Mount Google Drive in Colab Notebook
- How to Hum a Song to Google to find it out! [Android and iPhone]
- Google Colab: How to read file from Google Drive
- How to Undo-Revert Sent Email in Google Gmail
- Google Local Guide Program and Perks of Contributing to Google Maps
- How to install Google Chrome using Mac Terminal
- How to Toggle Light/Dark Mode in Google Colab
- How to Upload a File to Google Colab (txt, csv, json, xml, xlsx)
- How to insert image into Google Sheets cell
- Installing Google Cloud macOS SDK
- 86 Gmail keyboard shortcuts that you may find Advantageous
- Google Search Console: HTTPS is invalid and might prevent it from being indexed
- Resolving DNS_PROBE_FINISHED_NXDOMAIN Google Chrome Error
- Enable Dark Mode in Google Search
- Page actions are temporarily disabled [Google Search Console Page Crawling]
More Posts:
- XmlRpcException ConnectException connection refused error - Java
- How to connect to SSH port other than default 22 - Linux
- Android Emulator 5.1.1 not loading on Mac OS X Android Studio - Android-Studio
- Send Extra Data with Ajax Get or Post Request - JavaScript
- Toast not getting displayed Android App - Android
- How to Open Trash on Mac - MacOS
- #HappyBirthdayJimin trending Happy Birthday Jimin BTS Army - BTS
- Enable spell check in Sublime Text (macOS) - MacOS