Nov 05-06, 2015
8:30 am - 4:00 pm
Instructors: Michael Sarahan, Jiarong Guo
Helpers: TBD
Software Carpentry's mission is to help scientists and engineers get more research done in less time and with less pain by teaching them basic lab skills for scientific computing. This hands-on workshop will cover basic concepts and tools, including program design, version control, data management, and task automation. Participants will be encouraged to help one another and to apply what they have learned to their own research problems.
For more information on what we teach and why, please see our paper "Best Practices for Scientific Computing".
Who: The course is aimed at graduate students and other researchers. You don't need to have any previous knowledge of the tools that will be presented at the workshop.
Where: Room 202, LaFortune Student Center, Notre Dame University. Get directions with OpenStreetMap or Google Maps.
Requirements: Participants must bring a laptop with a few specific software packages installed (listed below). They are also required to abide by Software Carpentry's Code of Conduct.
Contact: Please mail connell.69@nd.edu for more information.
09:00 | Automating tasks with the Unix shell |
10:30 | Coffee |
12:00 | Lunch break |
13:00 | Introduction to Python |
14:30 | Coffee |
16:00 | Wrap-up |
09:00 | Version control with Git |
10:30 | Coffee |
12:00 | Lunch break |
13:00 | More Python |
14:30 | Coffee |
15:00 | Wrap-up |
Etherpad: http://pad.software-carpentry.org/2015-11-05-ND.
We will use this Etherpad for chatting, taking notes, and sharing URLs and bits of code.
add
, commit
, ...status
, diff
, ...clone
, pull
, push
, ...To participate in a Software Carpentry workshop, you will need access to the software described below. In addition, you will need an up-to-date web browser.
We maintain a list of common issues that occur during installation as a reference for instructors that may be useful on the Configuration Problems and Solutions wiki page.
Miniconda is a barebones Python-based package manager. Installing this will allow us to rapidly create an environment that is standardized across Windows, Linux, and OS X.
bash Miniconda-and then press tab. The name of the file you just downloaded should appear.
yes
and press enter to approve the
license. Press enter to approve the default location for the
files. Type yes
and press enter to prepend Anaconda to
your PATH
(this makes the Miniconda distribution the
default Python).
bash Miniconda-and then press tab. The name of the file you just downloaded should appear.
yes
and press enter to approve the
license. Press enter to approve the default location for the
files. Type yes
and press enter to prepend Anaconda to
your PATH
(this makes the Anaconda distribution the
default Python).
Now that you have Miniconda installed, update its components with the following command:
conda update --all
We will employ conda environments to help start everyone off on the same page. Part of what Miniconda came with is a program called conda-env (http://conda.pydata.org/docs/commands/env/conda-env.html). This program takes an environment specification file, and downloads software to create the specified environment. For each platform, we'll need to first download the environment specification file: https://raw.githubusercontent.com/swcarpentry/swc-conda-recipes/master/env_shell_python_git/environment.yml
If your browser shows you the file instead of offering to download it, please save the file from your browser. Ensure that you do not keep the .txt extension that your browser may try to add.
Next, open up a terminal to create the environment:
From your start menu, find the Anaconda3 menu folder, and the Git for Windows shortcut therein. This shortcut drops you into an activated environment, where the programs that get run are the programs from our environment. Alternatively, open your command prompt, and type: activate swc-shell-python-git
Open your terminal, and type: source activate swc-shell-python-git
Open your terminal, and type: source activate swc-shell-python-git
Once you are happily in your environment, please go to this page, which has instructions on how to test that everything was installed correctly.
Python is a popular language for scientific computing, and great for general-purpose programming as well. The conda environment we created has already installed Python and a few prerequisites for us. One important note, though: We will teach Python using the IPython notebook, a programming environment that runs in a web browser. For this to work you will need a reasonably up-to-date browser. The current versions of the Chrome, Safari and Firefox browsers are all supported (some older browsers, including Internet Explorer version 9 and below, are not).