How to show the line numbers on Python IDLE

Idle with python version 3.8

If you are using python version 3.7 and below. Tough luck, you can’t show the line numbers on the left sidebar. You can only rely the line numbers on the status bar at the bottom of the editor. Which is not helpful for some people.

For people like me, who already familiar with the line numbers with other IDE’s, this simple small feature is a must. You need to upgrade your python to the latest version, as of now is version 3.8.

The new IDLE comes with python 3.8 has this new feature that can show line numbers on the left side of the editor.

Anyone still using IDLE? For me, yes IDLE comes in handy when I’d like to test some small script quickly. When in full development I’ll be using VS Code.

Steps to enable the line numbers.

Go to Options tab, click configure IDLE and click General tab.

Author: Izzat Zainol

Hello there, my name is Izzat Zainol. I'm a software engineer based in Penang. I specialized in web development, automation scripting, web scraping and desktop application development. Contact me if you'd like to hire me for your next project.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.