sage


sage

FROM sagemath/sagemath:9.1-py3

RUN sage -pip install pip -i https://pypi.mirrors.ustc.edu.cn/simple/ --upgrade \
    && sage -pip install pandas -i https://pypi.mirrors.ustc.edu.cn/simple/ \
    && sage -pip install pydes -i https://pypi.mirrors.ustc.edu.cn/simple/ \
    && sage -pip install pyaes -i https://pypi.mirrors.ustc.edu.cn/simple/ \
    && sage -pip install pycryptodomex -i https://pypi.mirrors.ustc.edu.cn/simple/ \
    && sage -pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple/ \
    && sage -pip install jupyter_nbextensions_configurator -i https://pypi.mirrors.ustc.edu.cn/simple/ \
    && sage -jupyter contrib nbextension install --user \
    && sage -jupyter nbextensions_configurator enable --user \
    && sage -jupyter nbextension enable highlight_selected_word/main \
    && sage -jupyter nbextension enable hinterland/hinterland \
    && sage -jupyter nbextension enable toc2/main


sage

wsl --import fedora D:\WSL\UFULL fedora-34.20211001-x86_64.tar

sudo sed -e 's|^metalink=|#metalink=|g' \
         -e 's|^#baseurl=http://download.example/pub/fedora/linux|baseurl=https://mirrors.ustc.edu.cn/fedora|g' \
         -i.bak \
         /etc/yum.repos.d/fedora.repo \
         /etc/yum.repos.d/fedora-modular.repo \
         /etc/yum.repos.d/fedora-updates.repo \
         /etc/yum.repos.d/fedora-updates-modular.repo

dnf update -y
dnf install zsh git perl gcc g++ make vim nano util-linux-user wget curl proxychains -y
sh -c "$(proxychains curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s $(which zsh)
sed -i '/^ZSH_THEME=/c\ZSH_THEME="ys"' ~/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions $ZSH_CUSTOM/plugins/zsh-completions
[ -z "`grep "autoload -U compinit && compinit" ~/.zshrc`" ] && echo "autoload -U compinit && compinit" >> ~/.zshrc
sed -i '/^plugins=/c\plugins=(git sudo z zsh-syntax-highlighting zsh-autosuggestions zsh-completions)' ~/.zshrc
echo -e "\nexport LANG=\"zh_CN.UTF8\"" >>~/.zshrc
source ~/.zshrc
#install Miniforge 
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install mamba
mamba create -n sage sage python=X
mamba activate sage
mamba install jupyter_contrib_nbextensions jupyter_nbextensions_configurator

#nbextensions>>
#ExecuteTime
#Hinterland
#Toggle all line numbers


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM