========
IntelliJ
========

IntelliJ IDEA Community Edition is the open source version of
`IntelliJ IDEA <http://www.jetbrains.org/pages/viewpage.action?pageId=983211>`_,
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 both Miniconda and IntelliJ installed and working.

Set up IntelliJ using Miniconda
===============================

Find location of Miniconda Python executable::

  which python

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

Within IntelliJ
===============

Go to ``File > Project Structure > Platform Settings > SDKs``

Click the Add (+) icon

Choose ``Python SDK``

Enter location of Miniconda Python executable ``/Users/Me/miniconda3/bin/python``

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

Go to ``File > Project Settings > Project > Project SDK``

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

Go to ``Run > Debug``

Click the Add (+) icon

Select ``Python`` and then enter the following:

Name: MyProject
Script: /Users/Me/MyProject/my_file.py
Use Specified Interpreter: Python 3.6.0 (~/miniconda3/bin/python...)

For more information, see the `IntelliJ IDEA documentation
<https://www.jetbrains.com/help/idea/meet-intellij-idea.html>`_.
