Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Pre-built Dev Container Image for R. More info: https://github.com/rocker-org/devcontainer-images/pkgs/container/devcontainer%2Ftidyverse
# Available R version: 4, 4.1, 4.0
ARG VARIANT="4.2"
FROM ghcr.io/rocker-org/devcontainer/tidyverse:${VARIANT}

RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
libudunits2-dev \
libgdal-dev \
libgeos-dev \
libproj-dev

RUN add-apt-repository ppa:ubuntugis/ppa -y \
&& apt-get install -y --no-install-recommends gdal-bin

RUN pip uninstall Jinja2

# Install Python packages
COPY requirements.txt /tmp/pip-tmp/
RUN python3 -m pip --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt
44 changes: 44 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "R Data Science Environment",
"build": {
"dockerfile": "Dockerfile",
// Update VARIANT to pick a specific R version: 4, 4.1, 4.0
// More info: https://github.com/rocker-org/devcontainer-images/pkgs/container/devcontainer%2Ftidyverse
"args": { "VARIANT": "4" }
},

"customizations": {
"vscode": {
"extensions": [
// Add Jupyter and Python vscode extensions
"ms-toolsai.jupyter",
"ms-toolsai.jupyter-renderers",
"ms-python.python",
"ms-python.vscode-pylance"
//"vsls-contrib.codetour",
//"GitHub.copilot"
]
}
},

// Forward Jupyter and RStudio ports
"forwardPorts": [8888],
"portsAttributes": {
//"8787": {
// "label": "Rstudio",
// "requireLocalPort": true,
// "onAutoForward": "ignore"
//},
"8888": {
"label": "Jupyter",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},

// Use 'postAttachCommand' to run commands after the container is started.
//"postAttachCommand": "sudo rstudio-server start"

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root
// "remoteUser": "root"
}
22 changes: 22 additions & 0 deletions .devcontainer/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
pybryt
pylint
datascience
otter-grader
numpy
pandas
scipy
folium>=0.9.1
matplotlib
ipywidgets>=7.0.0
bqplot
nbinteract>=0.0.12
okpy
scikit-learn
Rtree
GDAL
Fiona
pyproj
Shapely
geopandas
mapclassify
jupyter