Open mrakitin opened 3 years ago
...@xf17id1-ca1:~$ cat /usr/share/jupyter/kernels/collection-2021-1.0/kernel.json
{
"argv": [
"/opt/conda_envs/collection-2021-1.0/bin/python",
"-m",
"ipykernel",
"-f",
"{connection_file}",
"--profile=collection",
"--log-level=DEBUG"
],
"display_name": "Data Collection (2021-1.0)"
}
@mfuchsbnl, @danielballan, I do not know what was going on at the beamline, but I was able to run the scan with the latest kernel with the collection-2021-1.0
conda environment:
Please note, I created a separate kernel so that it does not interfere with the production kernels, and used a PR branch named deploy-2021-1.0
from #12 for my tests.
Is it something to do with the browser on the beamline? Can you try Google Chrome or a newer version of Firefox?
(/opt/conda_envs/collection-2021-1.0) mrakitin@xf17id1-ca1:~$ jupyter kernelspec list
Available kernels:
python3 /opt/conda_envs/collection-2021-1.0/share/jupyter/kernels/python3
collection-17q2.0 /usr/share/jupyter/kernels/collection-17Q2.0
collection-17q3.0 /usr/share/jupyter/kernels/collection-17Q3.0
collection-2019-2.0 /usr/share/jupyter/kernels/collection-2019-2.0
collection-2019-3.0 /usr/share/jupyter/kernels/collection-2019-3.0
collection-2020-2.0rc8 /usr/share/jupyter/kernels/collection-2020-2.0rc8
collection-2021-1.0 /usr/share/jupyter/kernels/collection-2021-1.0
collection-2021-1.0-mrakitin /usr/share/jupyter/kernels/collection-2021-1.0-mrakitin
That was successful with collection-2020-2.0rc8
too:
Current collection workstations
Previsit
profile_collection
bsui
remotely (does it touch any hardware?) - usegit grep .put
orgit grep caput
current_env_tag
in theproduction
file (https://github.com/NSLS-II/playbooks/pull/430)Housekeeping
/opt/conda/.condarc
andconda
with ansibleprofile_collection
repository as-found as2020C2.1
and push to GitHubNote: tagged https://github.com/NSLS-II-FMX/profile_collection/releases/tag/2020C2.1 with the changes from #8 (that code in the PR branch was used during the previous cycle and was in fact their 'master'). The follow-up updates will be in a separate PR.
Add this group name to the collection vars in the inventory file (see this example).
~/.bashrc
, if necessary, update the logging environment variables to use directory/var/log/bluesky/...
and addumask 0002
.and (if needed) create that directory with the following permissions and ownership:
Remember to
source ~/.bashrc
.PersistentDict
to bug-fixed version (see the updated gist snippet: https://gist.github.com/jklynch/a4366b8900ec0c03883403455ae711b2).Test deployment
It may be necessary to disable
jedi
inipython
. Add this to theipython
command line arguments inbsui
:xf17id1-ca1:/usr/share/jupyter/kernels
:/epics/iocs/notebook/notebooks/services/st.cmd
as needed (update theconda activate ...
command with the new conda environment)st.cmd
file):st.cmd
andkernel.json
to:Finish
2021C1.0
current_env_tag="2021-1.0"
for the FMX beamlinebsui
via ansible to use the new environment (http://nsls-ii.github.io/deployment/upgrading-beamlines.html#change-bsui-s-default-environment)