Verified Commit 8ade2e71 authored by Olivier Benz's avatar Olivier Benz
Browse files

base: Modify option jupyter.plot_mimetypes

- Enable 'image/svg+xml' instead of 'image/png' for plot display
- Enable 'application/pdf' for PDF conversion
parent 3c6f53fa
Pipeline #11675 passed with stages
in 28 minutes and 47 seconds
......@@ -239,10 +239,14 @@ RUN apt-get update \
languageserver \
httpgd \
&& Rscript -e "IRkernel::installspec(user = FALSE)" \
## Disable help panel and revert to old behaviour
&& echo 'options(vsc.helpPanel = FALSE)' >> /usr/local/lib/R/etc/Rprofile.site \
## IRkernel: Enable 'image/svg+xml' instead of 'image/png' for plot display
## IRkernel: Enable 'application/pdf' for PDF conversion
&& echo "options(jupyter.plot_mimetypes = c('text/plain', 'image/svg+xml', 'application/pdf'))" \
>> /usr/local/lib/R/etc/Rprofile.site \
## Install code-server extension
&& code-server --extensions-dir ${CODE_BUILTIN_EXTENSIONS_DIR} --install-extension Ikuyadeu.r@2.4.0 \
## Ikuyadeu.r: Disable help panel and revert to old behaviour
&& echo "options(vsc.helpPanel = FALSE)" >> /usr/local/lib/R/etc/Rprofile.site \
## Clean up
&& rm -rf /tmp/* \
/var/lib/apt/lists/* \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment