Python Forum
How to set Tab size to 4 in Python interpreter? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to set Tab size to 4 in Python interpreter? (/thread-36117.html)



How to set Tab size to 4 in Python interpreter? - zzzhhh - Jan-18-2022

How to set Tab size to 4 in Python interpreter? I am using Python 3.9.5 interpreter in miniconda3 on Windows 10. Thanks.


RE: How to set Tab size to 4 in Python interpreter? - snippsat - Jan-18-2022

I would advice to use better REPL like ptpython(what i use) or IPython.
Also if use cmder get nicer colors🎨,and a lot better Terminal than cmd/Powershell.
Here a quick test and i can run with Miniconda(Python 3.10) as you use.
So the default shell will give IndentationError if not manually indent,but as i never use it 's not a problem.
[Image: gPnnTo.png]