Skip to content

Commit

Permalink
Adjust R and Python paths in .devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
BerriJ committed Oct 10, 2024
1 parent f41df94 commit 7300a7c
Showing 1 changed file with 93 additions and 93 deletions.
186 changes: 93 additions & 93 deletions .devcontainer/devcontainer.json
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
}
}
}
}

0 comments on commit 7300a7c

Please sign in to comment.