The ITM platform includes a Python installation, with
The following Python versions are available: 2.5.1, 2.6.7.
The current default Python version is 2.5.1.
The "select_python" command is provided to allow users to quickly switch between different Python versions. It takes care of correctly setting up the Python environment, including all UAL data version specific Python components (modules, scripts, ...).
Usage:
source $ITMSCRIPTDIR/select_python [PYTHONVERSION]or, using an alias provided in the default ITM environment
set_python [PYTHONVERSION]When running the command from a login script (e.g. your ~/.cshrc file), the following is recommended:
source $ITMSCRIPTDIR/select_python [PYTHONVERSION] > /dev/null
Example: to automatically switch to Python 2.6 when logging in, add the following line in your ~/.cshrc file:
source $ITMSCRIPTDIR/select_python 2.6 > /dev/nullKnown issues when switching between Python versions
ipython keeps a local database to store settings in your home directory at ~/.ipython, the format of which might be incompatible between versions. If you get error messages when starting ipython, move your ipython directory (mv ~/.ipython ~/.ipython_old) or delete it.
select_python modifies the environment variables PATH, PYTHONPATH, LD_LIBRARY_PATH and PYTHONVERSION. PYTHONVERSION is set to the currently selected version.
A fully integrated IDE, including a source debugger. It's available on the gateway ('eclipse' command).
Documentation: PyDev Website, PyDev Manual
Documentation (pick the right version)
Python 2.5: version 0.7.0
Python 2.6: version 0.10.0
Documentation (pick the right version)
Python 2.5: version 1.2.1
Python 2.6: version 1.6.1
Documentation (for the latest version)
If you need the documentation for 0.99.3, please contact ISIP.
Python 2.5: version 0.99.3
Python 2.6: version 1.2.x
ipython
Documentation (pick the right version)
Python 2.5: version 0.8.4
Python 2.6: version 0.12
Directory layout
$ITMSCRIPTDIR/select_python
$SWITMDIR/python/python2.5.1
$SWITMDIR/python/python2.6.7
/afs/.efda-itm.eu/project/switm/python/python_pk.2.5.1
$SWITMDIR/python/python_pk.2.6/lib/python2.6/site-packages
$SWITMDIR/ual/$DATAVERSION/python_pk.$PYTHONVERSION
$SWITMDIR/itmvis/$DATAVERSION/python_pk.$PYTHONVERSION