Today we'll discuss how to:
The Slack group is now working and ready to go!
The Slack website is: https://https://vandyastroseminar.slack.com
Fill out the following Google Form with your info: https://goo.gl/y2ammQ
Anaconda is a great way to handle your modules and their dependencies.
You have the option to use install Python 2.7 or Python 3.5. In astronomy, the version Python 2.7 is mostly used, although new modules are adoption version 3.5
After the installation is complete, you should see that your "PATH" was modified in your "~/.bashrc" (Linux) or "~/bash_profile" file.
# added by Anaconda 1.6.1 installer
export PATH="~/anaconda2/bin:$PATH"
Once the Anaconda path is appended to your "PATH", you should be able to see something like this:
IPython 5.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]:
Whenever you want to update your Python modules to the latest versions, you can just run these commands from the terminal:
conda update condaconda update conda
conda update condaconda update anaconda
If you want to install a new module that is hosted by Anaconda, you can type:
conda install <name of package>
And the package should be installed with all the necessary dependencies.
Nowadays it is really important to keep track of every change that make to a code, especially if you're part of a large organizations.
Git is a tool for version control of your code, i.e. you can keep track of
In a nutshell, you should be using Git.
Git comes already pre-installed with Anaconda. You can test whether it is installed on your machine by typing:
which git
And you shoud see the path to the git executable.
If it's not installed, you can install it from here
"Github" is a website for you to manage your repositories and collaborate with other people.
Github offers a Student Pack for free (https://education.github.com/). You have to use your @vanderbilt email address to get it. Or you can sign up for you regular Github account.
This lets you create public and private repositories.
$ git config --global user.name "John Doe"
$ git config --global user.email "johndoe@example.com"
To clone the local repository
$ git clone https://github.com/VandyAstroML/Vanderbilt_Computational_Bootcamp.git
SSH are a great way to not type your passworkd every time that you want to make any changes to your repositories.
The instructions to do so are listed in here