changed setup_apps_miniforge to use work-environment.yml

This commit is contained in:
Nicolas 2022-09-19 11:31:29 +00:00
parent 0b9bef7810
commit 522b41ae1b
2 changed files with 58 additions and 16 deletions

View File

@ -82,16 +82,15 @@ ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh
mkdir -p /opt/conda/envs/ mkdir -p /opt/conda/envs/
/opt/conda/bin/conda create --prefix /opt/conda/envs/default_python python=3.7 ipykernel --yes #remove existing environment and ipykernel:
/opt/conda/envs/default_python/bin/python -m ipykernel install --prefix /usr/local/ --name 'python3' --display-name "Python (default)"
#install ofen used python packages for default environment
/opt/conda/bin/conda install h5py tqdm pandas pillow matplotlib ipympl matplotlib pandas numpy --yes -n default_python
/opt/conda/bin/conda install cantera --channel cantera --yes -n default_python
#remove ipykernel for base enviroment:
#jupyter kernelspec remove python3 #jupyter kernelspec remove python3
#/opt/conda/bin/conda env remove -p /opt/conda/envs/default_python
#setup default conda environment
/opt/conda/bin/conda env create --prefix /opt/conda/envs/default_python -f work-environment.yml
#setup kernel for using the enviroment in jupyter lab
/opt/conda/envs/default_python/bin/python -m ipykernel install --prefix /usr/local/ --name 'python3' --display-name "Python (default)"
#users have to setup their kernel like this: #users have to setup their kernel like this:
@ -99,15 +98,9 @@ mkdir -p /opt/conda/envs/
#conda create ipykernel --name mypersonal_enviroment #conda create ipykernel --name mypersonal_enviroment
#python -m ipykernel install --user --name mypersonal_enviroment --display-name "Python My Env" #python -m ipykernel install --user --name mypersonal_enviroment --display-name "Python My Env"
#conda install --yes jupyterhub jupyterlab notebook configurable-http-proxy jupyterlab-git jupyter-server-proxy
#jupyter labextension install jupyter-matplotlib
#echo "Install Tensorflow..." #echo "Install Tensorflow..."
#conda install --yes tensorflow-gpu -c conda-forge #conda install --yes tensorflow-gpu -c conda-forge
#echo "Install common Python libs..."
#conda install --yes h5py tqdm pandas ipywidgets pillow matplotlib ipympl opencv-python
#Other tools: #Other tools:
@ -130,7 +123,6 @@ mkdir -p /opt/conda/envs/
echo "Start JupyterHub..." echo "Start JupyterHub..."
systemctl start jupyterhub.service systemctl start jupyterhub.service
#sudo systemctl restart jupyterhub
echo "" echo ""
echo "Setup successfully finished" echo "Setup successfully finished"

50
work-environment.yml Normal file
View File

@ -0,0 +1,50 @@
name: work
channels:
- cantera
- conda-forge
- nodefaults
- bioconda #required for nmrglue (on anaconda.org)
dependencies:
- python
- matplotlib
- numpy
- pandas
- pytables
- nptdms # for Labview TDMS files
- openpyxl # read/write excel files
- snappy # for now, fixes dependency error of pytables
- scipy
- scikit-learn
- spyder
- pillow
- notebook
- jupyterthemes
- jupyter_contrib_nbextensions
- jupyter_nbextensions_configurator
- nbconvert
- nbdime
- ipypublish
- jupyter-book>=0.12.1
- sqlalchemy~=1.3.12 # for jupyter-cache - try to update later...
# - pyppeteer
- cantera
- h5py
- cvxpy
- jupyterlab
- jupyterlab-git
- pip
- pip:
- impedance
- emd
- pyschedule
- pulp==2.0
- ProcessScheduler
- rise
- plotly
- tqdm #easy to use progress bar: tqdm(iterable)
- odfpy #open OpenDocument spread sheed files with pandas
- psycopg2 #PostgreSQL adapter
- nmrglue #working with NMR data in Python
- jupyter_pivottablejs
# - blaze #blaze -> python[version='2.7.*|3.5.*|3.6.*'] (Your python: python=3.7)
- ipykernel