-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
3,117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
*.jl.*.cov | ||
*.jl.mem | ||
deps/deps.jl | ||
.ipynb_checkpoints/ | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM jupyter/minimal-notebook | ||
|
||
LABEL maintainer="Pierre Navaro <navaro@math.cnrs.fr>" | ||
|
||
USER root | ||
|
||
# Julia dependencies | ||
# install Julia packages in /opt/julia instead of $HOME | ||
ENV JULIA_PKGDIR=/opt/julia | ||
ENV JULIA_VERSION=1.0.2 | ||
|
||
RUN mkdir /opt/julia-${JULIA_VERSION} && \ | ||
cd /tmp && \ | ||
wget -q https://julialang-s3.julialang.org/bin/linux/x64/`echo ${JULIA_VERSION} | cut -d. -f 1,2`/julia-${JULIA_VERSION}-linux-x86_64.tar.gz && \ | ||
tar xzf julia-${JULIA_VERSION}-linux-x86_64.tar.gz -C /opt/julia-${JULIA_VERSION} --strip-components=1 && \ | ||
rm /tmp/julia-${JULIA_VERSION}-linux-x86_64.tar.gz | ||
RUN ln -fs /opt/julia-*/bin/julia /usr/local/bin/julia | ||
|
||
# Show Julia where conda libraries are \ | ||
RUN mkdir /etc/julia && \ | ||
echo "push!(Libdl.DL_LOAD_PATH, \"$CONDA_DIR/lib\")" >> /etc/julia/juliarc.jl && \ | ||
# Create JULIA_PKGDIR \ | ||
mkdir $JULIA_PKGDIR && \ | ||
chown $NB_USER $JULIA_PKGDIR && \ | ||
fix-permissions $JULIA_PKGDIR | ||
|
||
COPY . ${HOME} | ||
RUN chown -R ${NB_UID} ${HOME} | ||
USER $NB_UID | ||
|
||
RUN julia -e 'import Pkg; Pkg.update()' && \ | ||
julia -e 'import Pkg; Pkg.add("IJulia")' && \ | ||
# Precompile Julia packages \ | ||
julia -e 'using IJulia' && \ | ||
# move kernelspec out of home \ | ||
mv $HOME/.local/share/jupyter/kernels/julia* $CONDA_DIR/share/jupyter/kernels/ && \ | ||
chmod -R go+rx $CONDA_DIR/share/jupyter && \ | ||
rm -rf $HOME/.local && \ | ||
fix-permissions $JULIA_PKGDIR $CONDA_DIR/share/jupyter | ||
|
||
RUN cd ${HOME} && julia -q ${HOME}/deps_install.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# VlasovNotebooks | ||
|
||
Notebooks with some examples | ||
|
||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/juliavlasov/VlasovNotebooks/master) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BenchmarkTools | ||
FFTW | ||
Plots | ||
ProgressMeter | ||
QuadGK | ||
FINUFFT |
Oops, something went wrong.