-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(add rlang #9): install conda
- Loading branch information
1 parent
4923ad6
commit e4ca423
Showing
3 changed files
with
70 additions
and
1 deletion.
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
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
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,36 @@ | ||
#!/bin/bash | ||
|
||
# ------- | ||
# >>> https://docs.posit.co/ide/server-pro/user/2023.03.1/jupyter-lab/guide/jupyter-kernel-management.html#user-created-kernels | ||
# --- this would be to add a kernel to jupyter lab, baed on a python venv | ||
# instead of running [pip install ipykernel], we install it with a requirements.txt | ||
# python -m pip install ipykernel | ||
# cat <<EOF >./requirements.kernels.mgmt.txt | ||
# ipykernel | ||
# EOF | ||
# python -m pip install -r requirements.kernels.mgmt.txt | ||
|
||
|
||
# ------- | ||
# >>> https://datatofish.com/r-jupyter-notebook/ | ||
# --- | ||
|
||
# ---- | ||
# Install CONDA | ||
# > https://conda.io/projects/conda/en/latest/user-guide/install/linux.html#install-linux-silent | ||
|
||
export CONDA_INSTALLER_DWNLD_LINK="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" | ||
export CONDA_INSTALLER_FILENAME=$(echo "${CONDA_INSTALLER_DWNLD_LINK}" | awk -F '/' '{ print $NF }') | ||
echo " CONDA_INSTALLER_DWNLD_LINK=[${CONDA_INSTALLER_DWNLD_LINK}]" | ||
echo " CONDA_INSTALLER_FILENAME=[${CONDA_INSTALLER_FILENAME}]" | ||
|
||
curl -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | ||
export CONDA_INSTALLER_CHECKSUM_SHA256="b978856ec3c826eb495b60e3fffe621f670c101150ebcbdeede4f961f22dc438" | ||
|
||
echo "${CONDA_INSTALLER_CHECKSUM_SHA256} ${CONDA_INSTALLER_FILENAME}" | ./conda.sha256.checksum | ||
sha256sum -c ./conda.sha256.checksum | ||
bash ${CONDA_INSTALLER_FILENAME} | ||
|
||
|
||
|
||
echo 'y\n' | conda install -c r r-irkernel |