Python devcontainer <No Interpreter>

When starting my devcontainer in PyCharm, the remote editor opens and I have to manually set the python interpreter every time (and wait for indexing before I can start using it). How do I set the interpreter so it's remembered between devcontainer restarts?

Sample devcontainer json:

{
  "name": "Development",
  "service": "app",
  "workspaceFolder": "/app",
  "dockerComposeFile": [
    "../docker-compose.yml"
  ],
  "customizations": {
    "jetbrains": {
      "interpreter": {
        # Doesn't work
        "name": "Python",
        "path": "/usr/local/bin/python"
      },
    }
  },
  "remoteUser": "python",
  "containerEnv": {
    "SHELL": "/bin/zsh"
  },
}
1
1 comment

Hi Matt Gill, unfortunately, this is not implemented yet. Here is a related issue: IJPL-174150.  Please feel free to vote and comment if you're not familiar with YouTrack, please see this article.

0

Please sign in to leave a comment.