Skip to content

Commit 59fab9e

Browse files
committed
update
1 parent ade30ef commit 59fab9e

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

r-jupyter/Dockerfile

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:eoan
1+
FROM ubuntu:latest
22
LABEL org="One-Off Coder"
33
LABEL author="Jee Vang, Ph.D."
44
LABEL email="[email protected]"
@@ -17,23 +17,35 @@ ENV NOTEBOOK_PASSWORD=""
1717
# setup ubuntu
1818
RUN apt-get update -y \
1919
&& apt-get upgrade -y \
20-
&& apt-get -y install wget nano supervisor unzip gnupg2 software-properties-common
20+
&& apt-get -y install wget nano supervisor unzip gnupg2 software-properties-common dirmngr apt-transport-https ca-certificates build-essential
2121

2222
# setup r
23+
# https://linuxize.com/post/how-to-install-r-on-ubuntu-20-04/
2324
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 \
24-
&& add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu eoan-cran35/' \
25+
&& add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/' \
2526
&& apt-get update -y \
2627
&& apt-get -y install r-base
2728

29+
# setup nodejs
30+
RUN wget -q https://nodejs.org/dist/v14.15.1/node-v14.15.1-linux-x64.tar.xz -O /tmp/node.tar.xz \
31+
&& tar xf /tmp/node.tar.xz -C /usr/local \
32+
&& node --version \
33+
&& npm --version
34+
2835
# setup conda
29-
RUN wget -q https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh -O /tmp/anaconda.sh \
36+
RUN wget -q https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh -O /tmp/anaconda.sh \
3037
&& /bin/bash /tmp/anaconda.sh -b -p $CONDA_HOME \
31-
&& $CONDA_HOME/bin/conda update -n root conda -y
38+
&& conda update --all \
39+
&& conda update -c conda-forge jupyterlab \
40+
&& conda install -c conda-forge nodejs \
41+
&& pip install jupyterlab-commenting-service \
42+
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager @jupyterlab/commenting-extension @jupyterlab/toc @krassowski/jupyterlab-lsp \
43+
&& conda install -c conda-forge python-language-server r-languageserver
3244
COPY ubuntu/root/.jupyter /root/.jupyter/
3345

3446
# install r kernel
3547
RUN Rscript -e "install.packages('IRkernel', repos='https://mirrors.nics.utk.edu/cran/')" \
36-
-e "IRkernel::installspec(name = 'ir36', displayname = 'R 3.6')"
48+
-e "IRkernel::installspec()"
3749

3850
# setup volumes
3951
RUN mkdir /root/ipynb \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// Jupyter Widgets
3+
// @jupyter-widgets/jupyterlab-manager:plugin
4+
// Jupyter widgets settings.
5+
// ******************************************
6+
7+
// Save Jupyter widget state in notebooks
8+
// Automatically save Jupyter widget state when a notebook is saved.
9+
"saveState": true
10+
}

r-jupyter/ubuntu/root/.jupyter/lab/user-settings/@jupyterlab/extensionmanager-extension/plugin.jupyterlab-settings

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// Extension manager settings.
55
// *********************************************
66

7+
// Disclaimed Status
8+
// Whether the user understand that extensions managed through this interface run arbitrary code that may be dangerous
9+
"disclaimed": true,
10+
711
// Enabled Status
812
// Enables extension manager (requires Node.js/npm).
913
// WARNING: installing untrusted extensions may be unsafe.

0 commit comments

Comments
 (0)