/jupyter-docker

A full-fledged pre-configured jupyter notebook environment for machine-learning

Primary LanguageShellApache License 2.0Apache-2.0

Pre-Configured Docker Image for Jupyter

Derives from NVIDIA's pytorch-ubuntu NGC Image

Build

docker buildx build -t jupyter-docker:latest -f Dockerfile .

RUN

docker run -itd jupyter-docker:latest --env "PORT=$PORT"

/workspace/tensorrt is moved to opt/trt-workspace

Development

poetry install .

Updating 💀

☠️

1. Add a new dependency to project and update lockfile

poetry add dep_name --lock

2.1. Optional (Confirm package is available in conda)

poetry2conda pyproject.toml environment_jupyter.yaml --dev
mamba env update -f environment_jupyter.yaml --dry-run

Move packages not found / un-resolvable to pip like so

# environment_jupyter.yml
dependencies:
  - pip:
      - not_found

or Just resort to pip installs through mamba

# environment_jupyter.yml
dependencies:
  - pip:
      - -r requirements.txt
      - -e ./jupyter_codeserver_proxy