{"id":22039437,"url":"https://github.com/mpolinowski/pytorch-jupyter","last_synced_at":"2026-05-09T14:44:19.355Z","repository":{"id":189911141,"uuid":"681098755","full_name":"mpolinowski/pytorch-jupyter","owner":"mpolinowski","description":"Develop your PyTorch models inside the official PyTorch image container with Jupyter Notebooks.","archived":false,"fork":false,"pushed_at":"2024-05-28T05:19:59.000Z","size":46148,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T19:17:34.915Z","etag":null,"topics":["docker-image","jupyter-notebook","pytorch"],"latest_commit_sha":null,"homepage":"https://mpolinowski.github.io/docs/IoT-and-Machine-Learning/ML/2023-08-21--pytorch-development-in-docker/2023-08-21","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpolinowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-21T09:03:16.000Z","updated_at":"2024-03-12T15:48:28.000Z","dependencies_parsed_at":"2024-01-20T18:22:41.773Z","dependency_job_id":"59390c24-e179-4ef4-875b-0645fd93329b","html_url":"https://github.com/mpolinowski/pytorch-jupyter","commit_stats":null,"previous_names":["mpolinowski/pytorch-jupyter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fpytorch-jupyter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fpytorch-jupyter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fpytorch-jupyter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fpytorch-jupyter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpolinowski","download_url":"https://codeload.github.com/mpolinowski/pytorch-jupyter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104529,"owners_count":20561380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","jupyter-notebook","pytorch"],"created_at":"2024-11-30T11:10:51.728Z","updated_at":"2026-05-09T14:44:14.332Z","avatar_url":"https://github.com/mpolinowski.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Containerized PyTorch Dev Workflow \n\nDevelop your PyTorch models inside the official PyTorch container image __with__ Jupyter Notebooks.\n\n__Variations__:\n* Vanilla\n* [pytorch-jupyter with mlflow](https://github.com/mpolinowski/pytorch-jupyter/tree/mlflow)\n\n\n\n## Running the Container\n\nLet's build this custom image with:\n\n\n```bash\ndocker build -t pytorch-jupyter . -f Dockerfile\n```\n\nI can now create the container and mount my working directory into the container WORKDIR to get started:\n\n\n```bash\ndocker run --gpus all -ti --rm \\\n    -v $(pwd):/opt/app -p 8888:8888 \\\n    --name pytorch-jupyter \\\n    pytorch-jupyter:latest\n```\n\n\n```bash\n[C 2023-08-21 08:47:56.598 ServerApp] \n    \n    To access the server, open this file in a browser:\n        file:///root/.local/share/jupyter/runtime/jpserver-7-open.html\n    Or copy and paste one of these URLs:\n        http://e7f849cdd75e:8888/tree?token=8d72a759100e2c2971c4266bbcb8c6da5f743015eecd5255\n        http://127.0.0.1:8888/tree?token=8d72a759100e2c2971c4266bbcb8c6da5f743015eecd5255\n```\n\n\n### Verify PyTorch\n\n![Containerized PyTorch Dev Workflow](./notebooks/assets/PyTorch_Jupyter_Notebook_in_Docker_01.png)\n\n\n\n### Troubleshooting\n\n\u003e `ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memory (shm).`\n\nPlease note that PyTorch uses shared memory to share data between processes, so if torch multiprocessing is used (e.g. for multithreaded data loaders) the default shared memory segment size that container runs with is not enough, and you should [increase shared memory size](https://github.com/pytorch/pytorch#using-pre-built-images) either with --ipc=host or --shm-size command line options to nvidia-docker run.\n\n\n```bash\ndocker run --ipc=host --gpus all -ti --rm \\\n    -v $(pwd):/opt/app -p 8888:8888 \\\n    --name pytorch-jupyter \\\n    pytorch-jupyter:latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpolinowski%2Fpytorch-jupyter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpolinowski%2Fpytorch-jupyter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpolinowski%2Fpytorch-jupyter/lists"}