add rust env

This commit is contained in:
2024-01-28 19:21:39 +08:00
parent 8ab4900e81
commit eb2f7652ba

View File

@@ -125,6 +125,8 @@ USER ${NB_UID}
ENV MAMBA_ROOT_PREFIX=/home/${CREATE_USER}/micromamba
RUN <<EOT
#!/bin/bash
sudo apt update
sudo apt install -y texlive-full
micromamba create -n plot -c conda-forge scienceplots autopep8 python=3 ipykernel pandas numpy matplotlib scipy seaborn orange3 -y
micromamba run -n plot python -m pip install bamboolib
micromamba run -n plot python -m ipykernel install --user --name="sciplot" --display-name="SCIPlot Environment"
@@ -137,6 +139,14 @@ mamba run -n mixtral_env python -m pip install
mamba run -n mixtral_env python -m ipykernel install --user --name="mixtral" --display-name="mixtral Environment"
EOT
# Install Rust
RUN <<EOT
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
cargo install evcxr_jupyter
evcxr_jupyter --install
EOT
# # new env
# RUN <<EOT
# #!/bin/bash