This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
other:python:starting [2019/04/26 12:20] jypeter [Initialization] |
other:python:starting [2019/05/17 08:56] jypeter [Initialization] Improved |
||
---|---|---|---|
Line 35: | Line 35: | ||
- Start a terminal on an //obelix// server | - Start a terminal on an //obelix// server | ||
- | - Type ''python'' to access the //default Python 2// interpreter\\ or follow the steps below to use the more complete //CDAT// distribution.\\ Remember that **you can exit the interpreter by typing CTRL-D** (or ''quit()'' or ''exit()'') | + | - Type ''python'' to access the //default Python 2// interpreter available on the servers... |
+ | - ...or follow the steps below to use the more complete //CDAT// distribution.\\ Remember that **you can exit the interpreter by typing CTRL-D** (or ''quit()'' or ''exit()'') | ||
- Determine if you are using a [[other:newppl:starting#which_shell_are_you_using|bash or tcsh shell]], then type the following command to initialize //conda// | - Determine if you are using a [[other:newppl:starting#which_shell_are_you_using|bash or tcsh shell]], then type the following command to initialize //conda// | ||
* In a //bash// shell: ''source ~jypeter/.conda3_jyp.sh'' | * In a //bash// shell: ''source ~jypeter/.conda3_jyp.sh'' | ||
Line 43: | Line 44: | ||
* Python 3.x: ''conda activate cdatm_py3'' | * Python 3.x: ''conda activate cdatm_py3'' | ||
- Type ''python'' to start the interpreter | - Type ''python'' to start the interpreter | ||
+ | - Note: if you will have to use python regularly, you should add the ''source'' line above to your ''.cshrc'' /''.login'' file (//tcsh// users) or ''.bashrc''/''.profile'' (//bash// users) | ||
+ | * **Do not** add the ''conda activate cdatm_pyN'' line to the shell config files, because this will create potential side-effects!\\ Only type this activation line in the terminals where you will need to use this specific version of Python | ||
==== Useful keyboard shortcuts ==== | ==== Useful keyboard shortcuts ==== |