IntelliJ IDEA Setup Instructions¶
Table of Contents
Prerequisites¶
These instructions assume you have already installed:
- Python 2.7:
- Trusted Analytics Platform Python REST Client and required dependencies.
- IntelliJ IDEA.
Verify the Python plugin is enabled in IntelliJ by choosing
, searching for Python, and choosing Plugins from the pane on the left-hand side.Trusted Analytics Platform should work with any version of IntelliJ IDEA but these instructions were tested with IntelliJ IDEA 13.1.3 Ultimate.
Setup¶
- Select New Project on IntelliJ IDEA’s initial screen.
- Select Python as the project type and choose Next.
- Choose Next leaving Create project form template unchecked.
- Choose Python 2.7 as the Python Interpreter and choose the Next
button.
- If Python 2.7 does not appear in the list you will need to
configure a Python 2.7 Interpreter.
- Choose the Configure button.
- Choose the plus sign +.
- Choose Python SDK.
- Choose Add Local.
- Browse for your local Python 2.7 installation. On RedHat and CentOS this is probably /usr/bin/python.
- Choose the OK button.
- If Python 2.7 does not appear in the list you will need to
configure a Python 2.7 Interpreter.
- Give your project a name, for example, myproject.
- Choose the Finish button.
- Choose
- Make sure Python 2.7 is selected as the Project SDK and choose Apply.
- Choose Libraries in the left hand pane.
- Choose the plus sign +.
- Choose Java and browse to the Trusted Analytics Platform Python REST Client libraries. On RedHat and CentOS these are found under ‘/usr/lib/trustedanalytics/rest-client/python’.
- Choose classes.
- Choose myproject and click OK button.
- Name the library “ta-python-client”.
- Choose OK button.
- In order to connect to the analytics instance in TAP follow instructions here
. - Next take a look at the included examples.