User Tools

Site Tools


other:python:starting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:python:starting [2019/04/26 12:18]
jypeter Removed sections that were moved to the quick-start
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 41: Line 42:
     - Choose which //flavor// of Python you want by typing:     - Choose which //flavor// of Python you want by typing:
       * Python 2.7.x: ''​conda activate cdatm_py2''​       * Python 2.7.x: ''​conda activate cdatm_py2''​
-      * Python ​2.7.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 ====
other/python/starting.txt · Last modified: 2023/05/17 08:10 by jypeter