Difference between revisions of "NSLS-II Control Environments"
(Created page with "==Activate== * To go into the standard collection environment: *: bsui * This is activate a conda environment, and then running ipython therein: <source> #! /bin/bash V=17Q1.0...") |
KevinYager (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
==Install package== | ==Install package== | ||
+ | ===Using conda (preferred)=== | ||
: source activate collection # Or bsui | : source activate collection # Or bsui | ||
: conda search lxml | : conda search lxml | ||
Line 17: | Line 18: | ||
: conda list >> ~conda_list_collection.txt # Save the package list, for future reference | : conda list >> ~conda_list_collection.txt # Save the package list, for future reference | ||
: source deactivate | : source deactivate | ||
+ | |||
+ | ===From source=== | ||
+ | : source activate collection | ||
+ | : python setup install | ||
+ | If you are developing code, and want to be continuously using the most up-to-date version of the code, you can use: | ||
+ | : python setup develop | ||
+ | |||
+ | ==Proxy== | ||
+ | <source>$ env | grep proxy | ||
+ | http_proxy=http://proxy:8888 | ||
+ | ftp_proxy=http://proxy:8888 | ||
+ | https_proxy=http://proxy:8888 | ||
+ | no_proxy=cs.nsls2.local,localhost,127.0.0.1 | ||
+ | </source> |
Latest revision as of 09:00, 11 January 2017
Activate
- To go into the standard collection environment:
- bsui
- This is activate a conda environment, and then running ipython therein:
#! /bin/bash V=17Q1.0 source /opt/conda/bin/activate collection-$V && ipython --profile=collection
Install package
Using conda (preferred)
- source activate collection # Or bsui
- conda search lxml
- conda search lxml -c conda-forge # Search within a specific repo
- conda install lxml -c conda-forge
- conda list >> ~conda_list_collection.txt # Save the package list, for future reference
- source deactivate
From source
- source activate collection
- python setup install
If you are developing code, and want to be continuously using the most up-to-date version of the code, you can use:
- python setup develop
Proxy
$ env | grep proxy http_proxy=http://proxy:8888 ftp_proxy=http://proxy:8888 https_proxy=http://proxy:8888 no_proxy=cs.nsls2.local,localhost,127.0.0.1