Hi Ernest.
In principle, to amend the errors arising during runtime of a python script, I do follow, step by step, the prompt appearing on the screen, like I've done in your code of opening post (named ernest.py):
About your question to find software to indent python codes under linux, please be minded that Python is a multi-platform language. What does this mean? That any script (.py) running under Windows can be processed inside Linux O.S., like I've done with yours, as per att'd screenshot http://imgbox.com/lL1OnzOE
In other words, you adjust your well indented code under Windows, and then run it in Ubuntu.
Cheers
In principle, to amend the errors arising during runtime of a python script, I do follow, step by step, the prompt appearing on the screen, like I've done in your code of opening post (named ernest.py):
C:\Training>python ernest.py File "ernest.py", line 11 return 1/(1 + np.exp(-x)) ^ IndentationError: expected an indented blockSo, line 11 should be indented; same story for next ones.
About your question to find software to indent python codes under linux, please be minded that Python is a multi-platform language. What does this mean? That any script (.py) running under Windows can be processed inside Linux O.S., like I've done with yours, as per att'd screenshot http://imgbox.com/lL1OnzOE
In other words, you adjust your well indented code under Windows, and then run it in Ubuntu.
Cheers