Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
terasakisatoshi committed Jan 15, 2022
1 parent 8a43d24 commit 9945571
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions templates/with_jupyter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ RUN curl -kL https://bootstrap.pypa.io/get-pip.py | python3 && \
git+https://github.com/IllumiDesk/jupyter-pluto-proxy.git \
jupyterlab_code_formatter autopep8 black \
webio_jupyter_extension \
webio-jupyterlab-provider \
&& \
echo Done

Expand Down Expand Up @@ -86,6 +87,7 @@ RUN jupyter labextension install jupyterlab-topbar-extension && \
jupyter serverextension enable --py jupyterlab_code_formatter && \
jupyter labextension install @hokyjack/jupyterlab-monokai-plus --no-build && \
jupyter labextension install @jupyterlab/server-proxy --no-build && \
jupyter labextension install jupyterlab-plotly --no-build && \
jupyter lab build -y && \
jupyter lab clean -y && \
npm cache clean --force && \
Expand Down Expand Up @@ -120,12 +122,14 @@ RUN mkdir -p ${HOME}/.julia/config && \
ENV["JUPYTER"]=Sys.which("jupyter")\n\
' >> ${HOME}/.julia/config/startup.jl && cat ${HOME}/.julia/config/startup.jl

RUN julia -e 'using Pkg; Pkg.add(["Revise", "LiveServer", "Pluto", "PlutoUI"])'
RUN julia -e '\
RUN julia -e 'using Pkg; Pkg.add(["Revise", "LiveServer", "Pluto", "PlutoUI", "WebIO"])'
RUN julia --threads auto -e '\
using Pkg; \
using Base.Threads; \
Pkg.add("IJulia"); \
using IJulia; \
installkernel("Julia");\
installkernel("julia");\
installkernel("julia-$(nthreads())-threads", env=Dict("JULIA_NUM_THREADS"=>"$(nthreads())")); \
' && \
echo "Done"

Expand Down

0 comments on commit 9945571

Please sign in to comment.