Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.1 KB

File metadata and controls

34 lines (25 loc) · 1.1 KB

Python Data Science devcontainer

A minimal working setup providing a devcontainer for vscode + python + jupyter notebooks.

Sources / Prerequisites

Usage

  1. Install vscode and the Remote - Containers extension
  2. Click on the small green button >< on the bottom left of vscode OR (ctrl+p)
  3. Type and choose >Remote-Containers: Reopen in Container

Notes

Changing the current working directory (cwd) enables you to utilize relative imports in your jupyter notebook.

Example (included in repo):

  • Local Module (src/util.py)
  • Notebook (src/example.ipynb)
# This needs to be ran to make relative imports work
import os
os.chdir("/workspaces")
os.getcwd()

License

MIT