MaxCompute Studio lets you write user-defined functions (UDFs) and PyODPS scripts directly in IntelliJ IDEA. To enable Python support, complete three setup steps: install PyODPS, add the Python plug-in, and configure the Python SDK dependency for your project.
Prerequisites
Before you begin, make sure you have:
IntelliJ IDEA installed on your machine
MaxCompute Studio plug-in installed in IntelliJ IDEA
Step 1: Install PyODPS
PyODPS (MaxCompute SDK for Python) provides the Python runtime that MaxCompute Studio uses to resolve UDF parameters in the IDE.
Install PyODPS on your machine. For details, see Install PyODPS.
In IntelliJ IDEA, go to File > Settings.
In the left-side navigation pane, click MaxCompute Studio.
Set Python path to resolve UDF parameter to the local path of your
Python.exefile.

Step 2: Install the Python plug-in
Install the Python Community Edition plug-in to add Python language support to IntelliJ IDEA.
In IntelliJ IDEA, go to File > Settings.
In the left-side navigation pane, click Plugins.
In the search box, enter
Python Community Editionand install the plug-in.

Step 3: Configure the Python dependency
Linking the Python SDK to the MaxCompute script module tells IntelliJ IDEA which Python interpreter to use when you develop UDFs and PyODPS scripts.
Go to File > Project Structure.
Add the Python SDK:
In the left-side navigation pane, click SDKs under Platform Settings.
Click the
icon, select Python SDK, select System Interpreter, and then select an interpreter. 
Click Apply.
Add the Python SDK as a dependency for the MaxCompute script module:
In the left-side navigation pane, click Modules under Project Settings.
Click the plus sign (+) and add the Python SDK dependency for the MaxCompute script module.

Click Apply.
Your Python development environment is now set up. You can start writing UDFs and PyODPS scripts in MaxCompute Studio.