Skip to content

Setting up Code for i and python #1964

Closed Answered by Wright4i
a4ginatl asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Darryl,

Code for IBM i and Python on the IBM i are unrelated and no Python doesn't use Visual Studio Code to connect to the IBM i.

To execute Python on the IBM i you need to place your .py file onto the IFS and open a terminal (BASH/PuTTY/QP2TERM) and execute it using python3 example.py

Here are some resources:
https://ibm.github.io/ibmi-oss-resources/
https://www.omniuser.org/downloads/omni202104MikePavlak_1-IntrotoPython-6.3.pdf

For the most part other than connecting to DB2 (using a package like pyodbc or ibm_db_dbi) using Python on the IBM i is the same as developing Python on Windows or Linux. You can run Python on your local machine, develop, then promote to the IBM i after testi…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Wright4i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
offtopic Doesn't belong here
2 participants