add R && repair julia(Avoid mixing privileged and unprivileged users)
This commit is contained in:
parent
e4e75fad85
commit
92f9cae525
@ -40,6 +40,7 @@ Specify the image in the profile of the singleuser
|
||||
* Julia: Supports Julia, a high-performance, dynamic programming language designed for scientific computing and data analysis, with readability similar to Python and execution speed similar to C.
|
||||
* Description:
|
||||
1. Environment variable `JULIA_NUM_THREADS` in Julia image, please configure according to desired concurrency threads at startup.
|
||||
* R: Supports R, a programming language for statistical analysis and data visualization, with rich data processing libraries and powerful statistical functions, widely used in data science and research fields.
|
||||
* Sagemath: An open-source mathematical computation system that combines multiple mathematical packages, providing extensive mathematical functions such as numerical computation, symbolic computation, discrete mathematics, and statistical analysis. It is also an interactive computing environment, convenient for mathematical modeling, algorithm design, and academic research.
|
||||
* Scilab (With Desktop-GUI): An open-source numerical computing software, suitable for numerical analysis, data visualization, simulation, and modeling in scientific and engineering fields. It provides a rich set of mathematical functions and toolboxes, supports matrix computation, symbolic computation, and plotting functions, is a powerful mathematical tool, especially suitable for education and research fields, provides Xfce desktop support, and includes all plugins available through APT.
|
||||
* Octave: An open-source numerical computing software similar to Matlab, used for scientific computing, data analysis, and numerical simulation. It provides powerful matrix operations, plotting functions, and rich numerical analysis functions, a free and convenient tool suitable for mathematical modeling, algorithm development, and teaching tasks, includes all plugins available through APT.
|
||||
@ -71,6 +72,7 @@ Specify the image in the profile of the singleuser
|
||||
```mermaid
|
||||
graph LR
|
||||
Python-->PROGRAM{PROGRAMLANG}
|
||||
PROGRAM-->PB(R)
|
||||
PROGRAM-->PC(Julia)
|
||||
PROGRAM-->PR(mojo)
|
||||
Python-->PRA(Scipy)
|
||||
@ -100,11 +102,11 @@ MATH-->MF(Scilab)
|
||||
* Maple 2023
|
||||
|
||||
**Mirror source**
|
||||
* conda bfsu:https://mirrors.bfsu.edu.cn/help/anaconda/
|
||||
* pip bfsu:https://mirrors.bfsu.edu.cn/help/pypi/
|
||||
* apt ustc:https://mirrors.ustc.edu.cn/help/debian.html
|
||||
* apache tuna: https://mirrors.ustc.edu.cn/apache/
|
||||
* apache ustc: https://mirrors.ustc.edu.cn/apache/
|
||||
* julia-pkg ustc: https://mirrors.ustc.edu.cn/julia/
|
||||
* CRAN ustc:https://mirrors.ustc.edu.cn/CRAN/
|
||||
|
||||
### Upstream of the project
|
||||
https://github.com/jupyter/docker-stacks
|
||||
@ -120,5 +122,4 @@ https://github.com/jupyter/docker-stacks
|
||||
* MMA: https://github.com/WolframResearch/WolframLanguageForJupyter
|
||||
|
||||
## Necessary copyright notice
|
||||
For code derived from other teams, we added the original copyright notice to the file header, and we retain and support the copyrights of other development teams
|
||||
|
||||
For code derived from other teams, we added the original copyright notice to the file header, and we retain and support the copyrights of other development teams
|
12
README_CN.md
12
README_CN.md
@ -49,6 +49,7 @@ plt.rcParams["font.family"] = zh_font.get_name()
|
||||
* Julia:支持Julia,高性能、动态的编程语言,设计用于科学计算和数据分析,具备类似Python的易读性和类似C的执行速度。
|
||||
* 说明:
|
||||
1. Julia镜像中的环境变量`JULIA_NUM_THREADS`,请在启动时根据理想的并发线程数进行配置
|
||||
* R:支持R,面向统计分析和数据可视化的编程语言,拥有丰富的数据处理库和强大的统计功能,广泛应用于数据科学和研究领域。
|
||||
* Sagemath:一个开源的数学计算系统,结合了多个数学软件包,提供了广泛的数学功能,如数值计算、符号计算、离散数学和统计分析。它也是一个交互式计算环境,方便进行数学建模、算法设计和学术研究。
|
||||
* Scilab(With Desktop-GUI): 开源的数值计算软件,适用于科学和工程领域中的数值分析、数据可视化、模拟和建模。它提供了丰富的数学函数和工具箱,支持矩阵计算、符号计算和绘图功能,是一个强大的数学工具,尤其适用于教育和研究领域,提供Xfce桌面支持,包含APT可获取的全部插件。
|
||||
* Octave: 开源的数值计算软件,类似于Matlab,用于科学计算、数据分析和数值模拟。它提供了强大的矩阵运算、绘图功能以及丰富的数值分析函数,是一个免费且便捷的工具,适合进行数学建模、算法开发和教学任务,包含APT可获取的全部插件。
|
||||
@ -79,13 +80,14 @@ plt.rcParams["font.family"] = zh_font.get_name()
|
||||
```mermaid
|
||||
graph LR
|
||||
Python-->PROGRAM{PROGRAMLANG}
|
||||
PROGRAM-->PB(R)
|
||||
PROGRAM-->PC(Julia)
|
||||
PROGRAM-->PR(mojo)
|
||||
Python-->PRA(Scipy)
|
||||
Python-->PRB(Scrpy)
|
||||
PRA-->PRAA(pyai)
|
||||
PRA-->PRAB(pyspark)
|
||||
PRA-->PRAC(pyflink)
|
||||
PRA-->PRAA(pyai)
|
||||
PRA-->PRAB(pyspark)
|
||||
PRA-->PRAC(pyflink)
|
||||
Python-->MATH{MATH-TOOL}-->MA(Octave)
|
||||
MATH-->MB(Maple)
|
||||
MATH-->MC(Sagemath)
|
||||
@ -108,11 +110,11 @@ MATH-->MF(Scilab)
|
||||
* Maple 2023
|
||||
|
||||
**镜像源**
|
||||
* conda bfsu:https://mirrors.bfsu.edu.cn/help/anaconda/
|
||||
* pip bfsu:https://mirrors.bfsu.edu.cn/help/pypi/
|
||||
* apt ustc:https://mirrors.ustc.edu.cn/help/debian.html
|
||||
* apache tuna: https://mirrors.ustc.edu.cn/apache/
|
||||
* apache ustc: https://mirrors.ustc.edu.cn/apache/
|
||||
* julia-pkg ustc: https://mirrors.ustc.edu.cn/julia/
|
||||
* CRAN ustc:https://mirrors.ustc.edu.cn/CRAN/
|
||||
|
||||
### 项目上游
|
||||
jupyter团队项目 https://github.com/jupyter/docker-stacks
|
||||
|
@ -13,9 +13,13 @@ COPY --chown="${NB_UID}:${NB_GID}" --from=builder /opt/julias/ /opt/julias/
|
||||
ENV JULIA_PKG_SERVER=https://mirrors.ustc.edu.cn/julia \
|
||||
JULIA_NUM_THREADS=12
|
||||
|
||||
USER root
|
||||
|
||||
RUN ln -s "`find /opt/julias -name 'bin'`/julia" /usr/local/bin/julia
|
||||
|
||||
USER ${NB_UID}
|
||||
# Install IJulia as jovyan and then move the kernelspec out to the system share location.
|
||||
RUN sudo ln -s "`find /opt/julias -name 'bin'`/julia" /usr/local/bin/julia && \
|
||||
julia -e 'import Pkg; Pkg.update()' && \
|
||||
RUN julia -e 'import Pkg; Pkg.update()' && \
|
||||
julia -e 'using Pkg; pkg"add IJulia"; pkg"precompile"' && \
|
||||
mv "${HOME}/.local/share/jupyter/kernels/"* "/opt/base/share/jupyter/kernels/" && \
|
||||
rm -rf "${HOME}/.local"
|
12
r/Dockerfile
Normal file
12
r/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM ben0i0d/jupyter:py-c
|
||||
|
||||
USER root
|
||||
|
||||
# INSTALL R+IRkernel
|
||||
RUN apt-get update && apt-get install --yes --no-install-recommends r-base r-cran-irkernel && apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
||||
# set cran mirror
|
||||
echo 'options(repos=c(USTC="https://mirrors.ustc.edu.cn/CRAN/"))' >> /usr/lib/R/library/base/R/Rprofile && \
|
||||
R -e 'IRkernel::installspec(sys_prefix = TRUE);q()' && \
|
||||
chown -hR "${NB_USER}:${NB_GID}" "${HOME}"
|
||||
|
||||
USER ${NB_UID}
|
Loading…
x
Reference in New Issue
Block a user