"[Anaconda](https://store.continuum.io/cshop/anaconda/) is a scientific python distribution containing Python, NumPy, SciPy, Pandas, IPython, Matplotlib, Numba, Blaze, Bokeh, and other great Python data analysis tools."
"[IPython Notebook](http://ipython.org/notebook.html) is a \"web-based interactive computational environment where you can combine code execution, text, mathematics, plots and rich media into a single document.\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# Start IPython Notebook\n",
"ipython notebook\n",
"\n",
"# Start IPython Notebook with built-in mode to work cleanly \n",
"# with matplotlib figures\n",
"ipython notebook --pylab inline\n",
"\n",
"# Start IPython Notebook with a profile\n",
"ipython notebook --profile=dark-bg\n",
"\n",
"# Load the contents of a file\n",
"%load dir/file.py\n",
"\n",
"# Time execution of a Python statement or expression\n",
"[Ruby](https://www.ruby-lang.org/en/) is used to interact with the AWS command line and for Jekyll, a blog framework that can be hosted on GitHub Pages."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# Update Ruby\n",
"!rvm get stable\n",
"\n",
"# Reload Ruby (or open a new terminal)\n",
"!rvm reload\n",
"\n",
"# List all known RVM installable rubies\n",
"!rvm list known\n",
"\n",
"# List all installed Ruby versions\n",
"!rvm rubies\n",
"\n",
"# Install a specific Ruby version\n",
"!rvm install 2.1.5\n",
"\n",
"# Set Ruby version\n",
"!rvm --default ruby-2.1.5\n",
"\n",
"# Check Ruby version\n",
"!ruby -v"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<h2 id=\"jekyll\">Jekyll</h2>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[Jekyll](http://jekyllrb.com/) is a blog framework that can be hosted on GitHub Pages.\n",
"\n",
"In addition to donnemartin.com, I’ve started to build up its mirror site donnemartin.github.io to try out Jekyll. So far I love that I can use my existing developer tools to generate content (SublimeText, Terminal, and GitHub).\n",
"\n",
"Here are other features I like about Jekyll:\n",
"\n",
"* Converts Markdown to produce fast, static pages\n",
"* Simple to get started, no backend or manual updates\n",
"* Hosted on GitHub Pages\n",
"* Open source on GitHub"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Many Jekyll themes require a Ruby version of 2 and above. However, the AWS CLI requires Ruby 1.8.7. Run the proper version of Ruby for Jekyll:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"!rvm --default ruby-2.1.5"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Build and run the localy Jekyll server:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# => The current folder will be generated into ./_site\n",
"!bundle exec jekyll build\n",
"\n",
"# => A development server will run at http://localhost:4000/\n",
"# Auto-regeneration: enabled. Use `--no-watch` to disable.\n",