Setting up a Python Development Environment for Windows

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Setting up a Python Development Environment for Windows

Post by jussij »

Setting up a Python Development Environment for Windows
To setup a Python development environment for Windows is a simple as downloading and installing the Zeus IDE: https://www.zeusedit.com/download.html

That installer is for the Zeus IDE, but it also installs all the tools needed for Python development on a Windows machine.

Creating a Python Program
With the Zeus IDE installed, select the Python Template option as shown below:
python-template.png
python-template.png (66.84 KiB) Viewed 22999 times
Selecting that New File option will create the Python script shown below:

Code: Select all

#
# Python Template: zExample\appPython.tpl
#

""" Zeus IDE Python Code Snippet """
import sys


def main():
    """Simple Python Example."""
    if len(sys.argv) > 0:
        print('Argument Details Provided')
        print('-------------------------')
        print('Number of arguments:', len(sys.argv), 'arguments.')
        print('Argument List:', str(sys.argv))
        print('\n')

    print('Type in some data and hit the enter key to continue....\n')
    result = sys.stdin.readline()
    print('You entered this data: {}'.format(result))

main()
Save that code to the example.py file and then use the Macros, Execute menu to run the script as shown in the image below:
python-execute.png
python-execute.png (201.39 KiB) Viewed 22999 times
The running of that script will result in the following tool output window:
python-run.jpg
python-run.jpg (171.15 KiB) Viewed 22999 times
Using the Python Console
By using the Tools, Language Shells, Python REPL menu, it is also possible to run the Python console from inside the Zeus IDE.

Using that menu will bring up the Python console where code can be entered and run as shown below:
python-console.jpg
python-console.jpg (229 KiB) Viewed 22999 times
Using the PIP Utility
The installer also includes the pip utility, meaning additional Python modules can be easily installed. Find below a few examples on using that utility.

Using Zeus with Python Pandas
Using Zeus with Python Numpy, Matplotlib, Scipy and Seaborn
Post Reply