a tutorial for teaching the basics of python written using an example of phylogenetics web services.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
skeletons
testdata
2017-README.md
README.md
Step2-README.md
Step3-README.md
control-script-README.md
fetch-query-data-README.md
http-and-requests-README.md
query-open-tree-README.md
query-script-skeleton-README.md
query-wikipedia-README.md

README.md

Python tutorial

Prepared for a workshop on Python held on April 7th, 2018 and organized by KU's Sacnas chapter. Unless otherwise stated, the content was written by Mark T. Holder (MTH); the content written by MTH can be used under FreeBSD or GPL licenses.

See the 2017 README for the full context in which this tutorial was written.

Prerequisites

Python

Things will go most smoothly if participants have the tools needed edit and run Python 3 code on their laptop when they show up.

Using terminal + text editor

For most people, editing and running Python this will mean being able to:

  1. launch a terminal session. See the discussion for your platform on https://swcarpentry.github.io/shell-novice/setup.html

  2. launch a text editor (not a word processor). See Atom or SublimeText for multiple platforms or Notepad++ for Windows.

  3. run the Python 3 interpreter. See Python downloads

Integrated development environment

Alternatively, you may choose to use a tool that edits text and lets you run python from within the same application. Options here include:

  • the free (but not terribly sophisticated) IDLE IDE that comes with many Python distributions.

  • PyCharm which has a free option for students and teachers.

  • the eclipse IDE with the python development support installed.

Additional tools

Regardless of how you run python, it will also be useful to have

Some URLs used in the tutorial

MTH will mainly be working from the https://github.com/mtholder/intro-python-phylogenetics/tree/mth-solution branch of this repo.