Skip to content

Commit

Permalink
Fix RKernel (#23)
Browse files Browse the repository at this point in the history
* Update script-devbox-jupyter.sh

* fix IRkernel

* fix rkernel

* debug julia kernel
  • Loading branch information
haobibo authored Nov 8, 2024
1 parent a0c77b9 commit 442a42b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker_devbox/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN set -eux && source /opt/utils/script-utils.sh \
# ----------------------------- Install caddy
&& source /opt/utils/script-setup-net.sh && setup_caddy \
# Clean up and display components version information...
&& install__clean && list_installed_packages
&& list_installed_packages && install__clean

ENTRYPOINT ["tini", "-g", "--"]

Expand Down
13 changes: 7 additions & 6 deletions docker_devbox/work/script-devbox-jupyter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ setup_jupyter_kernels() {
# && mv /usr/local/share/jupyter/kernels/javascript /opt/conda/share/jupyter/kernels/

## alternative: https://github.com/jupyter-xeus/xeus-r
## alternative: https://github.com/melff/RKernel
## checked @ 2024-0307 # TODO: help func requries proxy
which R \
&& echo "@ Install Jupyter Kernel for R: https://github.com/melff/RKernel" \
&& R -e "devtools::install_github('melff/RKernel/pkg')" \
&& R -e "RKernel::installspec(user=FALSE)" \
&& mv /usr/local/share/jupyter/kernels/rkernel /opt/conda/share/jupyter/kernels/
&& echo "@ Install Jupyter Kernel for R:" \
&& R -e "install.packages('IRkernel')" \
&& R -e "IRkernel::installspec(user=FALSE)" \
&& mv /usr/local/share/jupyter/kernels/*r* /opt/conda/share/jupyter/kernels/

## checked @ 2024-0307
which go \
Expand All @@ -66,8 +67,8 @@ setup_jupyter_kernels() {
## checked @ 2024-0307
which julia \
&& echo "@ Install Jupyter Kernel for Julia: https://github.com/JuliaLang/IJulia.jl" \
&& julia -e "using Pkg; Pkg.add(\"IJulia\"); Pkg.precompile();" \
&& mv ~/.local/share/jupyter/kernels/julia* /opt/conda/share/jupyter/kernels/
&& julia -e "using Pkg; Pkg.add(\"IJulia\"); Pkg.precompile();"
( mv ~/.local/share/jupyter/kernels/julia* /opt/conda/share/jupyter/kernels/ || true );

## Checked @ 2024-0614
which java \
Expand Down

0 comments on commit 442a42b

Please sign in to comment.