-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust R and Python paths in .devcontainer.json
- Loading branch information
Showing
1 changed file
with
93 additions
and
93 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,96 +1,96 @@ | ||
{ | ||
"name": "DevEnv", | ||
"image": "ghcr.io/berrij/devenv:latest", | ||
// Grant xhost access to root user in order to start x11 devices (r plots) | ||
"initializeCommand": "docker pull ghcr.io/berrij/devenv:latest", | ||
// Those don't seem to be necessary any longer | ||
// "runArgs": [ | ||
// "--rm", | ||
// "--net", | ||
// "host", | ||
// "-e", | ||
// "DISPLAY=${env:DISPLAY}" | ||
// ], | ||
// | ||
"mounts": [ | ||
// Mount local volume to store extensions between container runs | ||
// "source=extensions_cache,target=/home/vscode/.vscode-server/extensions,type=volume", | ||
// And/or for VS Code Insiders | ||
// "source=extensions_cache_insiders,target=/home/vscode/.vscode-server-insiders/extensions,type=volume" | ||
// Mount git folder into /workspaces - vscode will also mount the current workspace there | ||
// "source=${localEnv:HOME}/git,target=/workspaces,type=bind,consistency=cached", | ||
"source=${localEnv:HOME}${localEnv:USERPROFILE}/sciebo,target=/home/vscode/sciebo,type=bind,consistency=cached", | ||
], | ||
"customizations": { | ||
"vscode": { | ||
// Extensions will get installed automatically | ||
"extensions": [ | ||
// C++ | ||
"ms-vscode.cpptools-extension-pack", | ||
// Python | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"ms-python.black-formatter", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"ms-toolsai.jupyter", | ||
// R | ||
"REditorSupport.r", | ||
"rdebugger.r-debugger", | ||
// Latex | ||
"james-yu.latex-workshop", | ||
"znck.grammarly", | ||
// Git | ||
"mhutchie.git-graph", | ||
"github.vscode-pull-request-github", | ||
// Markdown | ||
"yzhang.markdown-all-in-one", | ||
// Preview HTML | ||
"daiyy.quick-html-previewer", | ||
// Make fancy screenshots | ||
"jeffersonlicet.snipped", | ||
// Live Share | ||
"ms-vsliveshare.vsliveshare", | ||
// Copilot | ||
"GitHub.copilot", | ||
// Quarto | ||
"quarto.quarto" | ||
], | ||
// Set *default* container specific settings | ||
// Important for radian and latex | ||
"settings": { | ||
// C++ | ||
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", | ||
"cmake.configureSettings": { | ||
"CMAKE_TOOLCHAIN_FILE": "/usr/vcpkg/scripts/buildsystems/vcpkg.cmake" | ||
}, | ||
// Python | ||
"jupyter.notebookFileRoot": "${workspaceFolder}", | ||
"python.pythonPath": "/opt/venv/python", | ||
"python.defaultInterpreterPath": "/opt/venv/python", | ||
"python.dataScience.interactiveWindowMode": "perFile", | ||
"python.dataScience.sendSelectionToInteractiveWindow": true, | ||
// R | ||
"r.rterm.linux": "/opt/venv/radian", | ||
"r.bracketedPaste": true, | ||
"r.sessionWatcher": true, | ||
"r.plot.useHttpgd": true, | ||
"r.plot.defaults.fullWindowMode": true, | ||
// Latex | ||
"latex-workshop.latex.recipe.default": "latexmk (lualatex)", | ||
"latex-workshop.latex.autoBuild.run": "onFileChange", | ||
"latex-workshop.view.pdf.viewer": "tab", | ||
"latex-workshop.linting.chktex.enabled": true, | ||
"latex-workshop.linting.run": "onType", | ||
"latex-workshop.synctex.afterBuild.enabled": true, | ||
"latex-workshop.view.pdf.internal.synctex.keybinding": "double-click", | ||
"latex-workshop.intellisense.unimathsymbols.enabled": true, | ||
// Format code as you type | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnType": true, | ||
"editor.formatOnSave": true, | ||
// Hide .gitignore files | ||
"explorer.excludeGitIgnore": true | ||
} | ||
} | ||
"name": "DevEnv", | ||
"image": "ghcr.io/berrij/devenv:latest", | ||
// Grant xhost access to root user in order to start x11 devices (r plots) | ||
"initializeCommand": "docker pull ghcr.io/berrij/devenv:latest", | ||
// Those don't seem to be necessary any longer | ||
// "runArgs": [ | ||
// "--rm", | ||
// "--net", | ||
// "host", | ||
// "-e", | ||
// "DISPLAY=${env:DISPLAY}" | ||
// ], | ||
// | ||
"mounts": [ | ||
// Mount local volume to store extensions between container runs | ||
// "source=extensions_cache,target=/home/vscode/.vscode-server/extensions,type=volume", | ||
// And/or for VS Code Insiders | ||
// "source=extensions_cache_insiders,target=/home/vscode/.vscode-server-insiders/extensions,type=volume" | ||
// Mount git folder into /workspaces - vscode will also mount the current workspace there | ||
// "source=${localEnv:HOME}/git,target=/workspaces,type=bind,consistency=cached", | ||
"source=${localEnv:HOME}${localEnv:USERPROFILE}/sciebo,target=/home/vscode/sciebo,type=bind,consistency=cached", | ||
], | ||
"customizations": { | ||
"vscode": { | ||
// Extensions will get installed automatically | ||
"extensions": [ | ||
// C++ | ||
"ms-vscode.cpptools-extension-pack", | ||
// Python | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"ms-python.black-formatter", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"ms-toolsai.jupyter", | ||
// R | ||
"REditorSupport.r", | ||
"rdebugger.r-debugger", | ||
// Latex | ||
"james-yu.latex-workshop", | ||
"znck.grammarly", | ||
// Git | ||
"mhutchie.git-graph", | ||
"github.vscode-pull-request-github", | ||
// Markdown | ||
"yzhang.markdown-all-in-one", | ||
// Preview HTML | ||
"daiyy.quick-html-previewer", | ||
// Make fancy screenshots | ||
"jeffersonlicet.snipped", | ||
// Live Share | ||
"ms-vsliveshare.vsliveshare", | ||
// Copilot | ||
"GitHub.copilot", | ||
// Quarto | ||
"quarto.quarto" | ||
], | ||
// Set *default* container specific settings | ||
// Important for radian and latex | ||
"settings": { | ||
// C++ | ||
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", | ||
"cmake.configureSettings": { | ||
"CMAKE_TOOLCHAIN_FILE": "/usr/vcpkg/scripts/buildsystems/vcpkg.cmake" | ||
}, | ||
// Python | ||
"jupyter.notebookFileRoot": "${workspaceFolder}", | ||
"python.pythonPath": "/home/ubuntu/python/venv/bin/python", | ||
"python.defaultInterpreterPath": "/home/ubuntu/python/venv/bin/python", | ||
"python.dataScience.interactiveWindowMode": "perFile", | ||
"python.dataScience.sendSelectionToInteractiveWindow": true, | ||
// R | ||
"r.rterm.linux": "/home/ubuntu/python/venv/bin/radian", | ||
"r.bracketedPaste": true, | ||
"r.sessionWatcher": true, | ||
"r.plot.useHttpgd": true, | ||
"r.plot.defaults.fullWindowMode": true, | ||
// Latex | ||
"latex-workshop.latex.recipe.default": "latexmk (lualatex)", | ||
"latex-workshop.latex.autoBuild.run": "onFileChange", | ||
"latex-workshop.view.pdf.viewer": "tab", | ||
"latex-workshop.linting.chktex.enabled": true, | ||
"latex-workshop.linting.run": "onType", | ||
"latex-workshop.synctex.afterBuild.enabled": true, | ||
"latex-workshop.view.pdf.internal.synctex.keybinding": "double-click", | ||
"latex-workshop.intellisense.unimathsymbols.enabled": true, | ||
// Format code as you type | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnType": true, | ||
"editor.formatOnSave": true, | ||
// Hide .gitignore files | ||
"explorer.excludeGitIgnore": true | ||
} | ||
} | ||
} | ||
} |