This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:python:starting [2019/06/04 16:08] jypeter Re-ordered and improved |
other:python:starting [2019/06/17 07:15] jypeter Improved the intro |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Working with Python ====== | ====== Working with Python ====== | ||
- | <note tip>This page will tell you how to select a python distribution and start (and exit!) the python interpreter | + | <note tip>This page will tell you how to select a //python distribution// and start (and exit!) the python interpreter |
- | You can then read the [[jyp_steps|JYP's recommended steps for learning python]] for really working with python | + | After reading this page, you can read the [[jyp_steps|JYP's recommended steps for learning python]] for really working with python |
</note> | </note> | ||
Line 184: | Line 184: | ||
=== CDAT at TGCC === | === CDAT at TGCC === | ||
+ | |||
+ | Note: TGCC also supports its own [[#tgcc_distribution|TGCC distribution]], that may be more up-to-date, if you don't need specific CDAT modules | ||
CDAT **8.0** is installed at TGCC and can be initialized with: | CDAT **8.0** is installed at TGCC and can be initialized with: | ||
Line 189: | Line 191: | ||
* Python 3: ''module load flavor/cdat/python3 cdat'' | * Python 3: ''module load flavor/cdat/python3 cdat'' | ||
- | === A common error === | + | === A common CDAT-related error === |
Note: if you get an error when importing //cdms2// or //vcs// it means that either you have forgotten to initialize CDAT, or that something went wrong during the initialization. In both cases, you are either still using the default python installed on your system, or another (non-CDAT) python distribution! | Note: if you get an error when importing //cdms2// or //vcs// it means that either you have forgotten to initialize CDAT, or that something went wrong during the initialization. In both cases, you are either still using the default python installed on your system, or another (non-CDAT) python distribution! |