-
Notifications
You must be signed in to change notification settings - Fork 116
Add codespace config for scipy 2023 #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
9012ac2
Initial setup for codespaces
lsetiawan 45714b1
Change build context
lsetiawan bfb6c67
Add apt.txt
lsetiawan f6c04c5
Add jupyter and python extensions for vscode
lsetiawan 290caee
Modify cpu requirement to 2
lsetiawan 6d0ad47
Remove apt.txt, don't need it
lsetiawan 7bd28fa
Open README.md by default on vscode
lsetiawan 6be8ecb
Move codespaces to scipy 2023 and add apt txt for git and vim
lsetiawan ea3e21c
Move all to .binder and add jupyterlab config
lsetiawan 7cda838
Fix context
lsetiawan 179fe1f
Remove jupyter lab config default url settings
lsetiawan 13bf341
Remove jb config.. doesn't quite work
lsetiawan eb57552
Move configs to conda/binder
lsetiawan c24b4d3
Moving out of binder folder in conda
lsetiawan d486c79
Move config and try postCreateCommand
lsetiawan 02e53b8
Add create .jupyter folder
lsetiawan abee139
Change to post create and copy lab config only
lsetiawan 44d6656
Add small readme
lsetiawan 98e59b7
Remove unecessary jupyter lab config
lsetiawan 389973f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f36571f
Fix misspelling of jupyterlab
lsetiawan bfdf30e
Try to use tasks and predefined vars
lsetiawan a1ca440
Modify the paths to directories
lsetiawan e549551
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b292498
Remove comments in tasks.json
lsetiawan 4b7ebae
Update readme to reflect recent changes
lsetiawan f0f58ac
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 57f7596
Update README
lsetiawan 477b403
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9252985
Remove leading /
lsetiawan 3da6dff
Add dependabot to auto update dockerfile image version
lsetiawan 5b49dd8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1ec923e
Point to specific jupyter in conda
lsetiawan 3247b34
Allow all origins to avoid CORS
lsetiawan c9599f0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3f987f6
Update .devcontainer/scipy2023/tasks.json
lsetiawan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM pangeo/base-image:2023.06.20 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"build": { | ||
"dockerfile": "../Dockerfile", | ||
"context": "../../conda" | ||
}, | ||
"postCreateCommand": { | ||
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py", | ||
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json" | ||
}, | ||
"hostRequirements": { | ||
"cpus": 2 | ||
}, | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["workshops/scipy2023/README.md"] | ||
}, | ||
"vscode": { | ||
"extensions": ["ms-toolsai.jupyter", "ms-python.python"] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Configuration file for lab. | ||
|
||
c = get_config() # noqa | ||
|
||
## The default URL to redirect to from `/` | ||
# Default: '/lab' | ||
c.LabApp.default_url = '/lab/tree/workshops/scipy2023/index.ipynb' | ||
lsetiawan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Set the Access-Control-Allow-Origin header | ||
# | ||
# Use '*' to allow any origin to access your server. | ||
# | ||
# Takes precedence over allow_origin_pat. | ||
# Default: '' | ||
c.ServerApp.allow_origin = '*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "jupyterlab", | ||
"type": "shell", | ||
"command": "/srv/conda/envs/notebook/bin/jupyter lab --no-browser", | ||
"presentation": { | ||
"reveal": "always" | ||
}, | ||
"runOptions": { | ||
"runOn": "folderOpen" | ||
} | ||
} | ||
] | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will now open up another terminal and run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'docker' | ||
directory: '/.devcontainer' | ||
schedule: | ||
interval: 'daily' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
git | ||
vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.