PyCharm 2016.1 Help

Configuring Remote Interpreters via Docker Compose

To configure a remote Python interpreter

  1. In the Project Interpreters page of the Settings/Preferences dialog box, click cogwheel_framed.
  2. From the drop-down list, choose Add Remote .

    The dialog box Configure Remote Python Interpreter opens.

  3. In this dialog box that opens, do the following:
    • Click the radio button Docker Compose.
    • Choose the desired server from the drop-down list, or click New.
    • Click the browse button browseButton next to the field Configuration, and point to docker-compose.yml file.
    • Specify the service that represent your project.
    • The Python interpreter path field displays the path to the desired Python executable. You can accept default, or specify a different one.
  4. Click OK in the Configure Remote Python Interpreter dialog box. The configured remote interpreter is added to the list.

From this point, autocompletion, code inspections, as well as other features, will be driven by the interpreter from the Docker container derived from the service description in docker-compose.yml file.

See Also

Reference:

Language and Framework-Specific Guidelines:

Last modified: 20 April 2016