Skip to content

Commit

Permalink
Add .devcontainer for Visual Studio Code and Github Codespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
iemejia committed Sep 5, 2023
1 parent a858c72 commit 2fb89a4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# We create this Dockerfile to reuse existing published image as a container
FROM ageron/handson-ml3
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "handson-ml3",

"build": {
"context": "../docker",
"dockerfile": "Dockerfile"
},

"forwardPorts": [6006, 8888],

"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"ms-python.python",
"ms-toolsai.jupyter"
]
}
},

"postCreateCommand": "/opt/conda/envs/homl3/bin/jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser"
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ python. It contains the example code and solutions to the exercises in the third

_Colab provides a temporary environment: anything you do will be deleted after a while, so make sure you download any data you care about._

You can also run these notebooks inside dev containers:

* [![Open in Visual Studio Code](https://img.shields.io/static/v1?label=&message=Open%20in%20Visual%20Studio%20Code&color=blue&logo=visualstudiocode&style=flat)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/ageron/handson-ml3)
* [![Open in Github Codespaces](https://img.shields.io/static/v1?label=&message=Open%20in%20Github%20Codespaces&color=2f362d&logo=github)](https://codespaces.new/ageron/handson-ml3?quickstart=1&hide_repo_select=true)

<details>

Other services may work as well, but I have not fully tested them:
Expand Down

0 comments on commit 2fb89a4

Please sign in to comment.