Changes between Version 12 and Version 13 of Talks/Spring2012/PythonBeverage


Ignore:
Timestamp:
04/18/12 17:57:37 (14 years ago)
Author:
adrn@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Talks/Spring2012/PythonBeverage

    v12 v13  
    1515----
    1616
    17 I've created a [https://github.com/adrn/PythonBeer/ GitHub project] for our weekly meetings. I can explain how Git works, but it's basically just a version control system with nice web hosting. The idea is to create a new folder for each session, and I'll put example code, tutorials, and any other files that might be useful into this repository so anyone can check it out. I'll keep our schedule on this page, as well as some information and help for installing Python and useful packages, but everything else will be done through GitHub.
     17I've created a [https://github.com/adrn/PythonBeer/ GitHub project] for our weekly meetings. I can explain how Git works, but it's basically just a version control system with nice web hosting. The idea is to create a new folder for each session, and I'll put example code, tutorials, and any other files that might be useful into this repository so anyone can check it out. I'll keep our schedule on this page, as well as some information and help for installing Python and useful packages, but everything else will be done through github.
    1818
    1919----
     
    2121== Installing Python ==
    2222 * The Enthought way:
    23     * One of the easiest ways I've encountered for installing Python + a whole bunch of useful packages is through the Enthought distribution. This is cross-platform (Mac, Linux, Windows), and is kept pretty well up to date. I recommend downloading the *64-bit* version of the distribution, but to get a link to this download you have to register with them and prove that you're a student. You can do that through [http://www.enthought.com/products/edudownload.php this link].
    24 
     23    * One of the easiest ways I've encountered for installing Python + a whole bunch of useful packages is through the Enthought distribution. This is cross-platform (Mac, Linux, Windows), and is kept pretty well up to date. I recommend downloading the '''64-bit''' version of the distribution, but to get a link to this download you have to register with them and prove that you're a student. You can do that through [http://www.enthought.com/products/edudownload.php this link].
     24 * The yt way
     25    * Cameron? Matt? Bueller?
    2526
    2627== ''Schedule:'' ==
    27 '''April 13'''
    28  * Where to get help with Python
    29     * For tutorials and guides, see:
    30         * [http://docs.python.org/tutorial/ Official Python Tutorial]
    31         * [http://www.diveintopython3.net/ Dive Into Python] <--- This is a really awesome website
    32         * [http://scipy.org/Getting_Started Using SciPy]
    33         * [http://docs.python.org/faq/index.html Python FAQ]
    34     * For debugging errors and finding solutions to problems, see:
    35         * [http://stackoverflow.com/questions/tagged/python Stack Overflow]
    36     * Other good resources:
    37         * [http://scicoder.org Scicoder]
    38         * [http://www.astrobetter.com/ astrobetter]
    39         * [http://www.astro.washington.edu/users/rowen/AstroPy.html List of Astronomical Packages]
    40         * [http://www.astro.columbia.edu/~gbryan/W4260_2010/index.html W4260: Modeling the Universe]
    41  * Text editor
    42     * Python's IDLE suuuccckkksss
    43     * There are a bunch of free options with way better features. Full list is [http://wiki.python.org/moin/PythonEditors here], but I recommend:
    44         * [http://www.barebones.com/products/textwrangler/ TextWrangler] (mac)
    45         * emacs (has a Python styler, see [http://www.emacswiki.org/emacs/?action=browse;oldid=PythonMode;id=PythonProgrammingInEmacs here]) (mac, linux, windows)
    46         * [http://www.activestate.com/komodo-edit komodo edit] (mac, linux, windows)
    47         * [http://www.kate-editor.org/ Kate] (*nix only)
    48     * There are also some really nice paid editors:
    49         * [http://www.barebones.com/products/bbedit/ BBEdit] (mac) -- this is basically the full-featured version of TextWrangler
    50         * [http://www.panic.com/coda/ Coda] (mac)
    51         * [http://macromates.com/ TextMate] (mac)
    52         * XCode (Free-ish)
    53  * Python package manager
    54     * [http://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#md5=62a9f08dd5dc69d76734568a6c040508 PIP]
    55     * This replaces the default "easy_install".
    56     * A list of packages in PIP's repository are listed at [http://pypi.python.org/pypi the Cheese Shop]
    57     * Installing new packages is as easy as {{{pip install <packagename>}}}
    58  * Debugging code
    59     * Rather than fill your scripts with a ton of print statements to comment and uncomment, I'll show you how to use the packages [http://docs.python.org/library/argparse.html argparse] and [http://docs.python.org/library/logging.html logging] for more efficient verbosity control.
     28|| April 13 || Meeting 0 ||
     29|| April 20 || Meeting 1: Intro to Python ||
     30|| April 27 || Meeting 2: Debugging ||