Python IDEs
This section provides instructions for connecting your favorite Python-focused IDE, such as Visual Studio Code, PyCharm, Spyder, IDLE/IdleX, or Vim to InterSystems IRIS.
-
In your web browser, download or clone https://github.com/intersystems/Samples-python-helloworldOpens in a new tab.
-
In your IDE, open the folder you recently downloaded or cloned from GitHub, then open hello_world.py.
-
Configure the username, password, IP address, and port for your instance (see InterSystems IRIS Connection Information) using the variable declarations.
-
In the Terminal of your IDE, do the following:
-
Install the InterSystems Native SDK for Python using one of the following commands:
-
Microsoft Windows:
pip install wheel\irisnative-1.0.0-cp34.cp35.cp36.cp37-none-win_amd64.whl
-
UNIX®/Linux:
pip install wheel/irisnative-1.0.0-cp34-abi3-linux_x86_64.whl
-
Apple macOS:
pip install wheel/irisnative-1.0.0-cp34-abi3-macosx_10_13_x86_64.macosx_10_14_x86_64.whl
-
Run the code with the command python hello_world.py.
-
The Output pane displays the message Hello World! You have successfully connected to InterSystems IRIS.
Note:
The Python code sample and supporting wheel files are designed for Python 3 because Python 2 will retire in 2020; Python 2 versions are available from InterSystems Learning Services.