Skip to content

Commit

Permalink
Adds Dev Container configuration (google-gemini#280)
Browse files Browse the repository at this point in the history
* Adds Dev Container configuration

* Minor README tweaks

---------

Co-authored-by: Mark McDonald <[email protected]>
  • Loading branch information
cr2007 and markmcd authored Sep 12, 2024
1 parent eaca83c commit 86d8724
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Gemini Cookbook Dev Container",
"image": "mcr.microsoft.com/devcontainers/universal:2",
"waitFor": "onCreateCommand",
"updateContentCommand": "python3 -m pip install ipywidgets",
"customizations": {
"vscode": {
"extensions": [
"ms-toolsai.jupyter",
"ms-python.python",
"eamodio.gitlens"
]
}
},

"postCreateCommand": "sudo cp .devcontainer/welcome.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt"
}
6 changes: 6 additions & 0 deletions .devcontainer/welcome.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
👋 Welcome to the Gemini API Cookbook! This repo is a collection of all the guides and examples for the Gemini API.
- To get started, make sure you have an API Key from [Google AI
studio](https://aistudio.google.com/app/apikey)
- Note that the notebooks were written to run in Google Colab, so they may
not always work in Codespaces
- Check out the 'README.md' file to know more

0 comments on commit 86d8724

Please sign in to comment.