Skip to content

Commit

Permalink
fix dark theme jupyter and rstudio
Browse files Browse the repository at this point in the history
  • Loading branch information
ihiverlet authored Oct 23, 2023
1 parent 46ff3af commit 3c96a41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/onyxia-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ fi
if [[ "$DARK_MODE" == "true" ]]; then
if command -v jupyter-lab; then
mkdir ${MAMBA_DIR}/share/jupyter/lab/settings
echo "{\"@jupyterlab/apputils-extension:themes\": {\"theme\": \"JupyterLab Dark\"}}" > ${MAMBA_DIR}/share/jupyter/lab/settings/overrides.json;
fi
if command -v code-server; then
Expand All @@ -161,7 +162,7 @@ if [[ "$DARK_MODE" == "true" ]]; then
touch ${R_HOME}/etc/Rprofile.site
echo "if (Sys.getenv('DARK_MODE')=='TRUE'){
setHook('rstudio.sessionInit', function(newSession) {
rstudioapi::applyTheme("Vibrant Ink")
rstudioapi::applyTheme(\"Vibrant Ink\")
}, action = 'append')
}" >> ${R_HOME}/etc/Rprofile.site
fi
Expand Down

0 comments on commit 3c96a41

Please sign in to comment.