Difference between revisions of "Python Resources"

From Simson Garfinkel
Jump to navigationJump to search
m
Line 1: Line 1:
==Python Source Code and Modules==
* jupyter notebook
==Numerical Analysis==
==Numerical Analysis==
* numpy - numeric analysis in python (needed for matplotlib)
* numpy - numeric analysis in python (needed for matplotlib)
* tabulate - create tables easily
* tabulate - create tables easily
* jupyter notebook


==Graphing==
==Graphing, Graphics and Games==
===Graphing===
* [http://matplotlib.org/ matplotlib] - a handy system for plotting in python.
* [http://matplotlib.org/ matplotlib] - a handy system for plotting in python.
** [[Short example of using matplotlib within jupyter]]
** [[Short example of using matplotlib within jupyter]]
Line 16: Line 15:
* [http://peak.telecommunity.com/DevCenter/EasyInstall PEAK Easy Install]
* [http://peak.telecommunity.com/DevCenter/EasyInstall PEAK Easy Install]


==Games==
===Python Graphics (mostly with graphics.py)===
* http://mcsp.wartburg.edu/zelle/python/graphics.py
* http://mcsp.wartburg.edu/zelle/python/
* http://mcsp.wartburg.edu/zelle/python/graphics/graphics.pdf
* http://cpsc110.umwblogs.org/installing-python-graphics-library/
* http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/graphics.html#
Alternative:
* http://plotdevice.io/
* http://www.cc.gatech.edu/classes/AY2013/cs1301_summer/presentations/calico_graphics.pdf
[[Category:Resources]]
 
===Image Manipulation===
Use Pillow, the Python2/3 fork of Python Image Library (PIL)
 
On Mac, install with:
 
    % sudo port install py27-Pillow py33-Pillow
 
Links:
* http://jeremykun.com/2012/01/01/random-psychedelic-art/
* http://pythonvision.org/basic-tutorial
* http://stackoverflow.com/questions/138250/read-the-rgb-value-of-a-given-pixel-in-python-programatically
 
===Games===
* [http://www.crystalspace3d.org/ Crystal Space 3D]
* [http://www.crystalspace3d.org/ Crystal Space 3D]
* [http://www.vpython.org/ VPython] - 3D Programming in Python
* [http://www.vpython.org/ VPython] - 3D Programming in Python
Line 24: Line 46:


* tkinter - built in
* tkinter - built in
 
* pyqt
* wxwidgets
* [http://en.wikibooks.org/wiki/Python_Programming/GUI_Programming wikibooks] has a page on Python Program/GUI Programming options
* [http://en.wikibooks.org/wiki/Python_Programming/GUI_Programming wikibooks] has a page on Python Program/GUI Programming options
* Uses [http://www.fltk.org/ FLTK], the Fast Light Toolkit


Books on Tkinter:
===Resources for  Tkinter===
* [http://my.safaribooksonline.com/book/programming/python/0130260363/advanced-topics/ch18#X2ludGVybmFsX0ZsYXNoUmVhZGVyP3htbGlkPTAtMTMtMDI2MDM2LTMvNDA5 Chapter 18 of Core Python Programming] discusses GUI Programming with Tkinter
* [http://my.safaribooksonline.com/book/programming/python/0130260363/advanced-topics/ch18#X2ludGVybmFsX0ZsYXNoUmVhZGVyP3htbGlkPTAtMTMtMDI2MDM2LTMvNDA5 Chapter 18 of Core Python Programming] discusses GUI Programming with Tkinter
* [http://docstore.mik.ua/orelly/other/python2/ Programming Python, 2nd Edition, Chapter 7 and 8]
* [http://docstore.mik.ua/orelly/other/python2/ Programming Python, 2nd Edition, Chapter 7 and 8]
Line 37: Line 61:
* [http://docs.python.org/library/tkinter.html Python 2.7 Tkinter Doc]
* [http://docs.python.org/library/tkinter.html Python 2.7 Tkinter Doc]
* [http://www.pythonware.com/library/tkinter/introduction/ Original 'An introduced to Tkinter'] by Fredrik Lundh
* [http://www.pythonware.com/library/tkinter/introduction/ Original 'An introduced to Tkinter'] by Fredrik Lundh
Other options:
* Uses [http://www.fltk.org/ FLTK], the Fast Light Toolkit


==Python Training==
==Python Training==
Line 56: Line 77:
On the Mac, you can install matplotlib with this command using MacPorts::
On the Mac, you can install matplotlib with this command using MacPorts::
   % sudo port install py-matplotlib py-ipython
   % sudo port install py-matplotlib py-ipython
==Image Manipulation==
Use Pillow, the Python2/3 fork of Python Image Library (PIL)
On Mac, install with:
    % sudo port install py27-Pillow py33-Pillow
Links:
* http://jeremykun.com/2012/01/01/random-psychedelic-art/
* http://pythonvision.org/basic-tutorial
* http://stackoverflow.com/questions/138250/read-the-rgb-value-of-a-given-pixel-in-python-programatically
==Python Graphics (mostly with graphics.py)==
* http://mcsp.wartburg.edu/zelle/python/graphics.py
* http://mcsp.wartburg.edu/zelle/python/
* http://mcsp.wartburg.edu/zelle/python/graphics/graphics.pdf
* http://cpsc110.umwblogs.org/installing-python-graphics-library/
* http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/graphics.html#
Alternative:
* http://plotdevice.io/
* http://www.cc.gatech.edu/classes/AY2013/cs1301_summer/presentations/calico_graphics.pdf
[[Category:Resources]]

Revision as of 14:41, 24 September 2017

Numerical Analysis

  • numpy - numeric analysis in python (needed for matplotlib)
  • tabulate - create tables easily
  • jupyter notebook

Graphing, Graphics and Games

Graphing

Python Graphics (mostly with graphics.py)

Alternative:

Image Manipulation

Use Pillow, the Python2/3 fork of Python Image Library (PIL)

On Mac, install with:

   % sudo port install py27-Pillow py33-Pillow

Links:

Games

Python GUI Options

I need to write some programs that use GUI.

  • tkinter - built in
  • pyqt
  • wxwidgets
  • wikibooks has a page on Python Program/GUI Programming options
  • Uses FLTK, the Fast Light Toolkit

Resources for Tkinter

Python Training

I've seen these and highly recommend them:

Printed Materials

Python Installation

If you are using a Mac, you almost certainly want to ditch Apple's python implementation and instead install your own from:

If you want everybody to be able to use your GUI, you probably want to write it in Tkinter (Python's Tcl/Tk bindings). If you want to actually enjoy what you are writing, you want to use wxpython.

On the Mac, you can install matplotlib with this command using MacPorts::

 % sudo port install py-matplotlib py-ipython