For more on efficiency, reproducibility, and correctness, see this talk Titus gave in Colorado yesterday,, as well as the paper Best Practices in Scientific Computing.
You might also be interested in this blog post and the associated paper on version control.
Reload to get the latest links!
Commenting
Here's a Google Doc that we'll paste stuff into:.
(Titus Brown)
Git quick guide:
to retrieve the materials for the class, do:
git clone https://github.com/swcarpentry/2013-04-az.git cd 2013-04-az/notebooksat the shell prompt. On Windows, you may need to use Git Bash to create the directory, and then cmd.exe to run ipython notebook (see below).
to update the materials, do:
git pull origin master
IPython Notebook quick guide:
run
ipython notebook --pylab=inlinein the directory containing your notebook files. A Web view of the notebook should pop up.
If you're using Anaconda, you can type:
c:\anaconda\scripts\ipython notebook --pylab=inlineThe trick will be running this in the correct directory, but you have a little bit of time to figure this out because we won't start with a preexisting notebook.
executing code
shift-ENTER -- to execute current "code cell" and move to next ctrl-ENTER -- to execute current "code cell" and stay
Python installing guide:
run, variously, one of
pip install <packagename>or
~/anaconda/bin/pip install <packagename>or
sudo pip install <packagename>
(Rich Enbody)