Python

Ipython

http://ipython.scipy.org/moin/

Can be downloaded from:   http://ipython.scipy.org/moin/Download Then one can use python setup.py install…

Search Path for modules

Path via .bashrc

PYTHONPATH=$PYTHONPATH:/home/theo/myname/lib64/python2.6/site-packages/
export PYTHONPATH

http://diveintopython.org/getting_to_know_python/everything_is_an_object.html

http://docs.python.org/install/index.html#inst-custom-install

Accessing environment variables from python

os.environ['HOME'] http://docs.python.org/library/os.html

Installing new modules

http://docs.python.org/install/index.html

Commandline arguments

http://www.penzilla.net/tutorials/python/cmdlineargs/

Parallel Computing

http://wiki.python.org/moin/ParallelProcessing

Scientific work

http://wiki.python.org/moin/NumericAndScientific

http://www.kfunigraz.ac.at/~haasegu/Lectures/GPU_CUDA/WS10/Talks/talk_hpc_reiterer.pdf

How to call parent contructor

http://stackoverflow.com/questions/753640/inheritance-and-overriding-init-in-python

Versioning of modules

http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package

Relative import / Import from directory

http://stackoverflow.com/questions/72852/how-to-do-relative-imports-in-python

http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder

Python Packages: http://docs.python.org/tutorial/modules.html

Pickle

http://python.about.com/od/pythonstandardlibrary/a/pickle_intro.htm

Return multiple arguments

http://stackoverflow.com/questions/354883/how-do-you-return-multiple-values-in-python

Formated Output

print ‘%.4e’ % 10.32453  http://docs.python.org/release/2.5.2/lib/typesseq-strings.html

String Prefix – Escape sequences

http://docs.python.org/release/2.5.2/ref/strings.html

C/C++ interfacing

http://docs.scipy.org/doc/numpy/user/misc.html

Matlab interfacing

http://mlabwrap.sourceforge.net/

Packages

PDE-Solver, FiPy:   http://www.matforge.org/fipy/

Generate a list with n times the same element:

http://stackoverflow.com/questions/3459098/create-list-of-single-item-repeated-n-times-in-python

[“”]*n

Subversion and Python

http://stackoverflow.com/questions/1449935/getting-svn-revision-number-into-a-program-automatically

Date and Time in Python

http://www.saltycrane.com/blog/2008/06/how-to-get-current-date-and-time-in/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: