How run a .py (python?)-script in Xcode

pythonscriptxcode

Hi I got the complete code, but I don't know how to run the script. The script is some plot of a function, can one run the script so that the plot is shown in xcode?

Best Answer

You don't need to use Xcode. Just open Terminal and run:

python /path/to/file.py

For making an Xcode project for a python script: https://stackoverflow.com/questions/5276967/