I am using Google Colaboratory to write Python code in their notebook. Whenever I hit an enter after a for
loop definition or in a try-except
block, the new line is automatically indented, which is good, but it uses only 2 whitespaces by default. This is contrary to PEP-8 standard.
Why is this the case and how can I change this setting?