IntelliJ#

IntelliJ IDEA Community Edition is the open-source version of IntelliJ IDEA, an IDE (Integrated Development Environment) for Java, Groovy, and other programming languages such as Scala or Clojure. It is made by JetBrains, maker of PyCharm Python IDE.

Before you start#

You should have Anaconda (or Miniconda) and IntelliJ installed and working.

Note

These instructions refer to Miniconda exclusively, but will also work with Anaconda Distribution.

Set up IntelliJ using Miniconda#

Find the location of your Miniconda Python executable:

which python

The system responds with your path to Python. You need this in the next step.

Within IntelliJ#

  1. Go to File > Project Structure > Platform Settings > SDKs

  2. Click the Add (+) icon

  3. Choose Python SDK

  4. Enter the location of your Miniconda Python executable /Users/UserName/miniconda3/bin/python

    Note

    Substitute your actual path to Miniconda that you found in the previous step.

  5. Go to File > Project Settings > Project > Project SDK

  6. Select from the drop-down: Python 3.6.0 (~/miniconda3/bin/python…)

  7. Go to Run > Debug

  8. Click the Add (+) icon

  9. Select Python and then enter the following:

    Name: MyProject

    Script: /Users/UserName/MyProject/my_file.py

    Use Specified Interpreter: Python 3.6.0 (~/miniconda3/bin/python…)

For more information, see the IntelliJ IDEA documentation.