{ "metadata": { "name": "", "signature": "sha256:2ee198570cab9f1784cf9171922e35c844f43331d9224e8979a52e7fbab030af" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "IPython and IPython Notebook" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "IPython is \"**an enhanced Interactive Python shell**\". IPython is elegant and has extensively useful features. Some of the thoughtfully crafted ones include tab completion, object introspection, a powerful history mechanism, inline editing of source code, integration with the Python debugger, the %run mechanism, macros, the ability to create multiple profiles, and system shell access.\n", "\n", "We will try to address some of them in this Notebook (kind of meta if you think about it) and the later part of the Notebook is going to be focussed on the cool stuff that you can do with the IPython Notebook in specific." ] }, { "cell_type": "code", "collapsed": false, "input": [ "from __future__ import division\n", "\n", "import numpy as np\n", "import scipy as sp\n", "import matplotlib as mpl\n", "import matplotlib.pyplot as plt\n", "\n", "#IPython magic command for inline plotting\n", "%matplotlib inline\n", "#a better plot shape for IPython\n", "mpl.rcParams['figure.figsize']=[15,3]" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "**Terribly useful commands**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "The four most helpful commands, as well as their brief description, is shown to you in a banner, every time you start IPython:\n", "\n", "
Command | \n", "Description | \n", "
---|---|
? | \n", "Introduction and overview of IPython\u2019s features. | \n", "
%quickref | \n", "Quick reference. | \n", "
help | \n", "Python\u2019s own help system. | \n", "
object?\t | \n", "Details about \u2018object\u2019, use \u2018object??\u2019 for extra details. | \n", "