aps-8id-dys / ipython-8idiuser

8-ID-I ipython configuration for bluesky (and other)
1 stars 1 forks source link

install new bluesky conda environment: 2021_1 #246

Closed prjemian closed 3 years ago

prjemian commented 3 years ago

In preparation for operations in APS run cycle 2021-1, a new conda environment will be installed, providing updated support code affecting critical problems at this beam line (#233, #243, #244, #245). The instrument package will be updated to match the new support and then pushed back to github. We'll need to verify that the changes resolve each of those issues, as expected.

The existing conda environment (2020_9) will be left as a fall-back.

prjemian commented 3 years ago

Follow steps described in https://github.com/APS-USAXS/ipython-usaxs/issues/469#issuecomment-749117483

Here's how to install the new environment (environment name is provided in the yml file):

  1. log into instrument account from a workstation with outside internet access
  2. activate any conda environment: source /APSshare/miniconda/x86_64/bin/activate base
  3. cd /tmp
  4. wget https://raw.githubusercontent.com/BCDA-APS/use_bluesky/main/python_installation/environment_2021_1.yml
  5. conda env create -f environment_2021_1.yml
  6. Edit ~/.bashrc and change BLUESKY_CONDA_ENV
  7. Test the bluesky console session starter script: ~/.bin/bluesky8IDI

In ~/.bashrc (or ~/.bash_aliases), define this environment variable and use it:

export BLUESKY_CONDA_ENV=bluesky_2021_1
alias become_bluesky='source /APSshare/miniconda/x86_64/bin/activate ${BLUESKY_CONDA_ENV}'

In ~/.bin/bluesky8IDI, use the alias or the environment variable:

export CONDA_ACTIVATE=/APSshare/miniconda/x86_64/bin/activate
source ${CONDA_ACTIVATE} ${BLUESKY_CONDA_ENV}
prjemian commented 3 years ago

ALSO, need to define env var in ~/.cshrc since the instrument account uses tcsh by default.

setenv BLUESKY_CONDA_ENV bluesky_2021_1