Version 3.8 or newer:
To show line numbers in the current window, go to Options
and click Show Line Numbers
.
To show them automatically, go to Options
> Configure IDLE
> General
and check the Show line numbers in new windows
box.
Version 3.7 or older:
Unfortunately there is not an option to display line numbers in IDLE although there is an enhancement request open for this.
However, there are a couple of ways to work around this:
- Under the edit menu there is a go to line option (there is a default shortcut of Alt+G for this).
- There is a display at the bottom right which tells you your current line number / position on the line:
Related Posts:
- Any way to clear python’s IDLE window?
- IDLE’s subprocess didn’t make a connection. Either IDLE can’t start or personal firewall software is blocking the connection
- How can I reverse a list in Python?
- Searching the student-t distribution table for values using python
- How to declare an array in Python?
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- How do I merge two dictionaries in a single expression (taking union of dictionaries)?
- How do I create an empty array/matrix in NumPy?
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- Python foreach equivalent
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- Limiting floats to two decimal points
- Updating a dictionary in python
- anaconda update all possible packages?
- How to replace NaN values by Zeroes in a column of a Pandas Dataframe?
- TypeError: cannot perform reduce with flexible type
- syntaxerror: “unexpected character after line continuation character in python” math
- ValueError : I/O operation on closed file
- How to set environment variables in Python?
- Cannot install Beautiful Soup in Anaconda Python 3.6.4 Windows 10
- ImportError: cannot import name
- How can you profile a Python script?
- How to set the current working directory?
- heroku: no default language could be detected for this app
- ‘DataFrame’ object has no attribute ‘sort’
- “VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path”
- What is __pycache__?
- What does “\r” do in the following script?
- How can I remove a key from a Python dictionary?
- Matplotlib automatic legend outside plot
- Syntax behind sorted(key=lambda: …)
- Determine Whether Integer Is Between Two Other Integers?
- If vs. else if vs. else statements?
- Quoting backslashes in Python string literals
- AttributeError: Can only use .dt accessor with datetimelike values
- Python string class like StringBuilder in C#?
- How do I clear all variables in the middle of a Python script?
- How to tell if tensorflow is using gpu acceleration from inside python shell?
- What is the easiest way to get current GMT time in Unix timestamp format?
- xlrd.biffh.XLRDError: Excel xlsx file; not supported
- Python/Json:Expecting property name enclosed in double quotes
- Python try-else
- How to compare two dates?
- Create own colormap using matplotlib and plot color scale
- The difference between ‘+=’ and ‘=+’?
- How to fix “Attempted relative import in non-package” even with __init__.py
- Normalize columns of pandas data frame
- Python Error: “ValueError: need more than 1 value to unpack”
- Python: can’t assign to literal
- “Initializing” variables in python?
- Difference between except: and except Exception as e:
- Flask raises TemplateNotFound error even though template file exists
- Python: Declare as integer and character
- How to install pytorch in windows?
- Python TypeError must be str not int
- “Unicode Error “unicodeescape” codec can’t decode bytes… Cannot open text files in Python 3
- Pandas join issue: columns overlap but no suffix specified
- How to downgrade python from 3.7 to 3.6
- TypeError: ‘float’ object has no attribute ‘__getitem__’,python
- What is the common header format of Python files?
- Is it possible to decompile a compiled .pyc file into a .py file?
- Writing string to a file on a new line every time
- Creating lowpass filter in SciPy – understanding methods and units
- Python 2: AttributeError: ‘list’ object has no attribute ‘strip’
- Get Confusion Matrix From a Keras Multiclass Model
- AttributeError: ‘list’ object has no attribute ‘lower’ gensim
- Insert a row to pandas dataframe
- Anaconda Installed but Cannot Launch Navigator
- How to save a Seaborn plot into a file
- How to get the unit vector from a numpy array
- Subtract two columns in dataframe
- Sending string via socket (python)
- pandas DataFrame: replace nan values with average of columns
- How do I print the key-value pairs of a dictionary in python
- How do I disable “missing docstring” warnings at a file-level in Pylint?
- How to convert column with dtype as object to string in Pandas Dataframe
- When I use matplotlib in jupyter notebook,it always raise ” matplotlib is currently using a non-GUI backend” error?
- How to fix ‘RuntimeWarning: divide by zero encountered in double_scalars’
- IndexError: index 2 is out of bounds for axis 0 with size 2
- ‘if’ statement in jinja2 template
- Python name ‘os’ is not defined
- Python CSV Error: sequence expected
- How to set environment variables in PyCharm?
- How to pad zeroes to a string?
- ImportError: No module named ‘MySQL’
- Using unicode character u201c
- ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
- How to set NotebookApp.iopub_data_rate_limit and others NotebookApp settings in JupyterHub?
- TypeError: can only concatenate tuple (not “str”) to tuple Error
- Python Remove last char from string and return it
- Base language of Python
- How do operator.itemgetter() and sort() work?
- python ValueError: invalid literal for float()
- How to convert .sav file into csv file
- Anaconda “failed to create process”
- OpenMP and Python
- How to add a background image into pygame?
- Python-3.2 coroutine: AttributeError: ‘generator’ object has no attribute ‘next’
- OCaml mod function returns different result compared with %
- How do I list the files associated with a Python package installed using pip or easy_install?