Skip to content

Instantly share code, notes, and snippets.

@Nico769
Created June 30, 2020 09:12
Show Gist options
  • Save Nico769/3709948d5093724b9f57293088d9b053 to your computer and use it in GitHub Desktop.
Save Nico769/3709948d5093724b9f57293088d9b053 to your computer and use it in GitHub Desktop.
Running Jupyter notebooks with Docker-compose in PyCharm 2020.1 Professional Edition.
  • Create a Python project with default Venv in the same folder where Dockerfile and docker-compose.yml are located
  • Go to Settings -> Build, Execution, Deployment -> Docker and create a new Docker server. Use unix socket. "Successfully connected" should appear.
  • Configure Docker Compose as a remote Pycharm interpreter as per documentation.
  • Configure the Jupyter Server as per documentation, DO NOT use Managed Server option.
  • In the Project panel, right click on docker-compose.yml and run it.
  • Manually connect to Docker in the Services panel.
  • Run the Jupyter Notebook cells.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment