Difference between revisions of "Python"
From LPTMS Wiki
(→documentation) |
|||
Line 1: | Line 1: | ||
− | == | + | == Documentation == |
* [http://www.python.org Official website] | * [http://www.python.org Official website] | ||
* [http://www.euroscipy.org euroscipy] (scientific python community) | * [http://www.euroscipy.org euroscipy] (scientific python community) | ||
* [http://scipy-lectures.github.com Getting started with scipy] | * [http://scipy-lectures.github.com Getting started with scipy] | ||
− | * [http://www.unixgarden.com/index.php/programmation/python-comme-langage-scientifique Python comme langage scientifique] | + | * [http://www.unixgarden.com/index.php/programmation/python-comme-langage-scientifique Python comme langage scientifique] - Voir aussi Cython. |
* [http://www.unixgarden.com/index.php/programmation/python-et-le-c Python et le C] | * [http://www.unixgarden.com/index.php/programmation/python-et-le-c Python et le C] | ||
Revision as of 14:43, 14 November 2013
Documentation
- Official website
- euroscipy (scientific python community)
- Getting started with scipy
- Python comme langage scientifique - Voir aussi Cython.
- Python et le C
Libraries and softwares
- iPython
- the iPython notebook (interface similar to Mathematica) use HTML to handle worksheets.
- Standard Library
- SciPy - NumPy
- Matplotlib
- SymPy
- Cython
- PyTables
- Modular toolkit for Data Processing
Miscellaneous
- Fernando Perez page on Python
- Interfacing C++ and Python
- Fitting data with python
- 3D Scientific Data Visualization and Plotting
- Quick integration of a known function
Tips
- equivalent of the C ternary operator ?: (bool ? restrue : 'resfalse), use a tuple
(resfalse,restrue)[bool]
- adding a path to a directory containing your module files
import sys sys.path += [ "/home/username/bin/Python" ]
- test whether a string has only digits or letters
str = '1321' str.isdigit() # returns True/False str.isalpha() # returns True/False
- Nested for loops in a single line:
for n,m in [ (n,m) for n in range(10) for m in range(2) ]: print n,m