Created
February 5, 2013 23:06
-
-
Save rahuldave/4718558 to your computer and use it in GitHub Desktop.
test python notebook gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "name": "Explain Ipython" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "ls" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "Explain Ipython.ipynb slatesub.pyc\r\n", | |
| "a.py test1.py\r\n" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 1 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "pwd" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 2, | |
| "text": [ | |
| "u'/Users/rahul/Learning/Python/Course1'" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 2 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "apple=5\n", | |
| "orange=6" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 3 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "dir()" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 4, | |
| "text": [ | |
| "['ALLOW_THREADS',\n", | |
| " 'Annotation',\n", | |
| " 'Arrow',\n", | |
| " 'Artist',\n", | |
| " 'AutoLocator',\n", | |
| " 'Axes',\n", | |
| " 'BUFSIZE',\n", | |
| " 'Button',\n", | |
| " 'CLIP',\n", | |
| " 'Circle',\n", | |
| " 'ComplexWarning',\n", | |
| " 'DAILY',\n", | |
| " 'DataSource',\n", | |
| " 'DateFormatter',\n", | |
| " 'DateLocator',\n", | |
| " 'DayLocator',\n", | |
| " 'ERR_CALL',\n", | |
| " 'ERR_DEFAULT',\n", | |
| " 'ERR_DEFAULT2',\n", | |
| " 'ERR_IGNORE',\n", | |
| " 'ERR_LOG',\n", | |
| " 'ERR_PRINT',\n", | |
| " 'ERR_RAISE',\n", | |
| " 'ERR_WARN',\n", | |
| " 'FLOATING_POINT_SUPPORT',\n", | |
| " 'FPE_DIVIDEBYZERO',\n", | |
| " 'FPE_INVALID',\n", | |
| " 'FPE_OVERFLOW',\n", | |
| " 'FPE_UNDERFLOW',\n", | |
| " 'FR',\n", | |
| " 'False_',\n", | |
| " 'Figure',\n", | |
| " 'FigureCanvasBase',\n", | |
| " 'FixedFormatter',\n", | |
| " 'FixedLocator',\n", | |
| " 'FormatStrFormatter',\n", | |
| " 'Formatter',\n", | |
| " 'FuncFormatter',\n", | |
| " 'GridSpec',\n", | |
| " 'HOURLY',\n", | |
| " 'HourLocator',\n", | |
| " 'In',\n", | |
| " 'IndexDateFormatter',\n", | |
| " 'IndexLocator',\n", | |
| " 'Inf',\n", | |
| " 'Infinity',\n", | |
| " 'LinAlgError',\n", | |
| " 'Line2D',\n", | |
| " 'LinearLocator',\n", | |
| " 'Locator',\n", | |
| " 'LogFormatter',\n", | |
| " 'LogFormatterExponent',\n", | |
| " 'LogFormatterMathtext',\n", | |
| " 'LogLocator',\n", | |
| " 'MAXDIMS',\n", | |
| " 'MINUTELY',\n", | |
| " 'MO',\n", | |
| " 'MONTHLY',\n", | |
| " 'MachAr',\n", | |
| " 'MaxNLocator',\n", | |
| " 'MinuteLocator',\n", | |
| " 'MonthLocator',\n", | |
| " 'MultipleLocator',\n", | |
| " 'NAN',\n", | |
| " 'NINF',\n", | |
| " 'NZERO',\n", | |
| " 'NaN',\n", | |
| " 'Normalize',\n", | |
| " 'NullFormatter',\n", | |
| " 'NullLocator',\n", | |
| " 'Out',\n", | |
| " 'PINF',\n", | |
| " 'PZERO',\n", | |
| " 'PackageLoader',\n", | |
| " 'PolarAxes',\n", | |
| " 'Polygon',\n", | |
| " 'RAISE',\n", | |
| " 'RRuleLocator',\n", | |
| " 'RankWarning',\n", | |
| " 'Rectangle',\n", | |
| " 'SA',\n", | |
| " 'SECONDLY',\n", | |
| " 'SHIFT_DIVIDEBYZERO',\n", | |
| " 'SHIFT_INVALID',\n", | |
| " 'SHIFT_OVERFLOW',\n", | |
| " 'SHIFT_UNDERFLOW',\n", | |
| " 'SU',\n", | |
| " 'ScalarFormatter',\n", | |
| " 'ScalarType',\n", | |
| " 'SecondLocator',\n", | |
| " 'Slider',\n", | |
| " 'Subplot',\n", | |
| " 'SubplotTool',\n", | |
| " 'TH',\n", | |
| " 'TU',\n", | |
| " 'Tester',\n", | |
| " 'Text',\n", | |
| " 'TickHelper',\n", | |
| " 'True_',\n", | |
| " 'UFUNC_BUFSIZE_DEFAULT',\n", | |
| " 'UFUNC_PYVALS_NAME',\n", | |
| " 'WE',\n", | |
| " 'WEEKLY',\n", | |
| " 'WRAP',\n", | |
| " 'WeekdayLocator',\n", | |
| " 'Widget',\n", | |
| " 'YEARLY',\n", | |
| " 'YearLocator',\n", | |
| " '_',\n", | |
| " '_2',\n", | |
| " '__',\n", | |
| " '___',\n", | |
| " '__builtin__',\n", | |
| " '__builtins__',\n", | |
| " '__name__',\n", | |
| " '__version__',\n", | |
| " '_dh',\n", | |
| " '_exit_code',\n", | |
| " '_i',\n", | |
| " '_i1',\n", | |
| " '_i2',\n", | |
| " '_i3',\n", | |
| " '_i4',\n", | |
| " '_ih',\n", | |
| " '_ii',\n", | |
| " '_iii',\n", | |
| " '_oh',\n", | |
| " '_sh',\n", | |
| " 'absolute',\n", | |
| " 'acorr',\n", | |
| " 'add',\n", | |
| " 'add_docstring',\n", | |
| " 'add_newdoc',\n", | |
| " 'add_newdocs',\n", | |
| " 'alen',\n", | |
| " 'all',\n", | |
| " 'allclose',\n", | |
| " 'alltrue',\n", | |
| " 'alterdot',\n", | |
| " 'amap',\n", | |
| " 'amax',\n", | |
| " 'amin',\n", | |
| " 'angle',\n", | |
| " 'annotate',\n", | |
| " 'any',\n", | |
| " 'append',\n", | |
| " 'apple',\n", | |
| " 'apply_along_axis',\n", | |
| " 'apply_over_axes',\n", | |
| " 'arange',\n", | |
| " 'arccos',\n", | |
| " 'arccosh',\n", | |
| " 'arcsin',\n", | |
| " 'arcsinh',\n", | |
| " 'arctan',\n", | |
| " 'arctan2',\n", | |
| " 'arctanh',\n", | |
| " 'argmax',\n", | |
| " 'argmin',\n", | |
| " 'argsort',\n", | |
| " 'argwhere',\n", | |
| " 'around',\n", | |
| " 'array',\n", | |
| " 'array2string',\n", | |
| " 'array_equal',\n", | |
| " 'array_equiv',\n", | |
| " 'array_repr',\n", | |
| " 'array_split',\n", | |
| " 'array_str',\n", | |
| " 'arrow',\n", | |
| " 'asanyarray',\n", | |
| " 'asarray',\n", | |
| " 'asarray_chkfinite',\n", | |
| " 'ascontiguousarray',\n", | |
| " 'asfarray',\n", | |
| " 'asfortranarray',\n", | |
| " 'asmatrix',\n", | |
| " 'asscalar',\n", | |
| " 'atleast_1d',\n", | |
| " 'atleast_2d',\n", | |
| " 'atleast_3d',\n", | |
| " 'autogen_docstring',\n", | |
| " 'autoscale',\n", | |
| " 'autumn',\n", | |
| " 'average',\n", | |
| " 'axes',\n", | |
| " 'axhline',\n", | |
| " 'axhspan',\n", | |
| " 'axis',\n", | |
| " 'axvline',\n", | |
| " 'axvspan',\n", | |
| " 'bar',\n", | |
| " 'barbs',\n", | |
| " 'barh',\n", | |
| " 'bartlett',\n", | |
| " 'base_repr',\n", | |
| " 'bench',\n", | |
| " 'beta',\n", | |
| " 'binary_repr',\n", | |
| " 'bincount',\n", | |
| " 'binomial',\n", | |
| " 'bitwise_and',\n", | |
| " 'bitwise_not',\n", | |
| " 'bitwise_or',\n", | |
| " 'bitwise_xor',\n", | |
| " 'bivariate_normal',\n", | |
| " 'blackman',\n", | |
| " 'bmat',\n", | |
| " 'bone',\n", | |
| " 'bool8',\n", | |
| " 'bool_',\n", | |
| " 'box',\n", | |
| " 'boxplot',\n", | |
| " 'broadcast',\n", | |
| " 'broadcast_arrays',\n", | |
| " 'broken_barh',\n", | |
| " 'byte',\n", | |
| " 'byte_bounds',\n", | |
| " 'bytes',\n", | |
| " 'bytes_',\n", | |
| " 'c_',\n", | |
| " 'can_cast',\n", | |
| " 'cast',\n", | |
| " 'cbook',\n", | |
| " 'cdouble',\n", | |
| " 'ceil',\n", | |
| " 'center_matrix',\n", | |
| " 'cfloat',\n", | |
| " 'char',\n", | |
| " 'character',\n", | |
| " 'chararray',\n", | |
| " 'chisquare',\n", | |
| " 'cholesky',\n", | |
| " 'choose',\n", | |
| " 'cla',\n", | |
| " 'clabel',\n", | |
| " 'clf',\n", | |
| " 'clim',\n", | |
| " 'clip',\n", | |
| " 'clongdouble',\n", | |
| " 'clongfloat',\n", | |
| " 'close',\n", | |
| " 'cm',\n", | |
| " 'cohere',\n", | |
| " 'colorbar',\n", | |
| " 'colormaps',\n", | |
| " 'colors',\n", | |
| " 'column_stack',\n", | |
| " 'common_type',\n", | |
| " 'compare_chararrays',\n", | |
| " 'complex128',\n", | |
| " 'complex256',\n", | |
| " 'complex64',\n", | |
| " 'complex_',\n", | |
| " 'complexfloating',\n", | |
| " 'compress',\n", | |
| " 'concatenate',\n", | |
| " 'cond',\n", | |
| " 'conj',\n", | |
| " 'conjugate',\n", | |
| " 'connect',\n", | |
| " 'contour',\n", | |
| " 'contourf',\n", | |
| " 'convolve',\n", | |
| " 'cool',\n", | |
| " 'copper',\n", | |
| " 'copy',\n", | |
| " 'copysign',\n", | |
| " 'corrcoef',\n", | |
| " 'correlate',\n", | |
| " 'cos',\n", | |
| " 'cosh',\n", | |
| " 'count_nonzero',\n", | |
| " 'cov',\n", | |
| " 'cross',\n", | |
| " 'csd',\n", | |
| " 'csingle',\n", | |
| " 'csv2rec',\n", | |
| " 'ctypeslib',\n", | |
| " 'cumprod',\n", | |
| " 'cumproduct',\n", | |
| " 'cumsum',\n", | |
| " 'date2num',\n", | |
| " 'datestr2num',\n", | |
| " 'datetime',\n", | |
| " 'datetime64',\n", | |
| " 'datetime_',\n", | |
| " 'datetime_data',\n", | |
| " 'dedent',\n", | |
| " 'deg2rad',\n", | |
| " 'degrees',\n", | |
| " 'delaxes',\n", | |
| " 'delete',\n", | |
| " 'demean',\n", | |
| " 'deprecate',\n", | |
| " 'deprecate_with_doc',\n", | |
| " 'det',\n", | |
| " 'detrend',\n", | |
| " 'detrend_linear',\n", | |
| " 'detrend_mean',\n", | |
| " 'detrend_none',\n", | |
| " 'diag',\n", | |
| " 'diag_indices',\n", | |
| " 'diag_indices_from',\n", | |
| " 'diagflat',\n", | |
| " 'diagonal',\n", | |
| " 'diff',\n", | |
| " 'digitize',\n", | |
| " 'disconnect',\n", | |
| " 'disp',\n", | |
| " 'display',\n", | |
| " 'dist',\n", | |
| " 'dist_point_to_segment',\n", | |
| " 'distances_along_curve',\n", | |
| " 'divide',\n", | |
| " 'docstring',\n", | |
| " 'dot',\n", | |
| " 'double',\n", | |
| " 'drange',\n", | |
| " 'draw',\n", | |
| " 'draw_if_interactive',\n", | |
| " 'dsplit',\n", | |
| " 'dstack',\n", | |
| " 'dtype',\n", | |
| " 'e',\n", | |
| " 'ediff1d',\n", | |
| " 'eig',\n", | |
| " 'eigh',\n", | |
| " 'eigvals',\n", | |
| " 'eigvalsh',\n", | |
| " 'einsum',\n", | |
| " 'emath',\n", | |
| " 'empty',\n", | |
| " 'empty_like',\n", | |
| " 'entropy',\n", | |
| " 'epoch2num',\n", | |
| " 'equal',\n", | |
| " 'errorbar',\n", | |
| " 'errstate',\n", | |
| " 'exception_to_str',\n", | |
| " 'exit',\n", | |
| " 'exp',\n", | |
| " 'exp2',\n", | |
| " 'exp_safe',\n", | |
| " 'expand_dims',\n", | |
| " 'expm1',\n", | |
| " 'exponential',\n", | |
| " 'extract',\n", | |
| " 'eye',\n", | |
| " 'f',\n", | |
| " 'fabs',\n", | |
| " 'fastCopyAndTranspose',\n", | |
| " 'fft',\n", | |
| " 'fft2',\n", | |
| " 'fftfreq',\n", | |
| " 'fftn',\n", | |
| " 'fftpack',\n", | |
| " 'fftpack_lite',\n", | |
| " 'fftshift',\n", | |
| " 'fftsurr',\n", | |
| " 'figaspect',\n", | |
| " 'figimage',\n", | |
| " 'figlegend',\n", | |
| " 'fignum_exists',\n", | |
| " 'figsize',\n", | |
| " 'figtext',\n", | |
| " 'figure',\n", | |
| " 'fill',\n", | |
| " 'fill_between',\n", | |
| " 'fill_betweenx',\n", | |
| " 'fill_diagonal',\n", | |
| " 'find',\n", | |
| " 'find_common_type',\n", | |
| " 'findobj',\n", | |
| " 'finfo',\n", | |
| " 'fix',\n", | |
| " 'flag',\n", | |
| " 'flatiter',\n", | |
| " 'flatnonzero',\n", | |
| " 'flatten',\n", | |
| " 'flexible',\n", | |
| " 'fliplr',\n", | |
| " 'flipud',\n", | |
| " 'float128',\n", | |
| " 'float16',\n", | |
| " 'float32',\n", | |
| " 'float64',\n", | |
| " 'float_',\n", | |
| " 'floating',\n", | |
| " 'floor',\n", | |
| " 'floor_divide',\n", | |
| " 'fmax',\n", | |
| " 'fmin',\n", | |
| " 'fmod',\n", | |
| " 'format_parser',\n", | |
| " 'frange',\n", | |
| " 'frexp',\n", | |
| " 'frombuffer',\n", | |
| " 'fromfile',\n", | |
| " 'fromfunction',\n", | |
| " 'fromiter',\n", | |
| " 'frompyfunc',\n", | |
| " 'fromregex',\n", | |
| " 'fromstring',\n", | |
| " 'fv',\n", | |
| " 'gamma',\n", | |
| " 'gca',\n", | |
| " 'gcf',\n", | |
| " 'gci',\n", | |
| " 'generic',\n", | |
| " 'genfromtxt',\n", | |
| " 'geometric',\n", | |
| " 'get',\n", | |
| " 'get_array_wrap',\n", | |
| " 'get_backend',\n", | |
| " 'get_cmap',\n", | |
| " 'get_current_fig_manager',\n", | |
| " 'get_figlabels',\n", | |
| " 'get_fignums',\n", | |
| " 'get_include',\n", | |
| " 'get_ipython',\n", | |
| " 'get_numarray_include',\n", | |
| " 'get_plot_commands',\n", | |
| " 'get_printoptions',\n", | |
| " 'get_scale_docs',\n", | |
| " 'get_scale_names',\n", | |
| " 'get_sparse_matrix',\n", | |
| " 'get_state',\n", | |
| " 'get_xyz_where',\n", | |
| " 'getbuffer',\n", | |
| " 'getbufsize',\n", | |
| " 'geterr',\n", | |
| " 'geterrcall',\n", | |
| " 'geterrobj',\n", | |
| " 'getfigs',\n", | |
| " 'getp',\n", | |
| " 'ginput',\n", | |
| " 'gradient',\n", | |
| " 'gray',\n", | |
| " 'greater',\n", | |
| " 'greater_equal',\n", | |
| " 'grid',\n", | |
| " 'griddata',\n", | |
| " 'gumbel',\n", | |
| " 'half',\n", | |
| " 'hamming',\n", | |
| " 'hanning',\n", | |
| " 'help',\n", | |
| " 'helper',\n", | |
| " 'hexbin',\n", | |
| " 'hfft',\n", | |
| " 'hist',\n", | |
| " 'histogram',\n", | |
| " 'histogram2d',\n", | |
| " 'histogramdd',\n", | |
| " 'hlines',\n", | |
| " 'hold',\n", | |
| " 'hot',\n", | |
| " 'hsplit',\n", | |
| " 'hstack',\n", | |
| " 'hsv',\n", | |
| " 'hypergeometric',\n", | |
| " 'hypot',\n", | |
| " 'i0',\n", | |
| " 'identity',\n", | |
| " 'ifft',\n", | |
| " 'ifft2',\n", | |
| " 'ifftn',\n", | |
| " 'ifftshift',\n", | |
| " 'ihfft',\n", | |
| " 'iinfo',\n", | |
| " 'imag',\n", | |
| " 'imread',\n", | |
| " 'imsave',\n", | |
| " 'imshow',\n", | |
| " 'in1d',\n", | |
| " 'index_exp',\n", | |
| " 'indices',\n", | |
| " 'inexact',\n", | |
| " 'inf',\n", | |
| " 'info',\n", | |
| " 'infty',\n", | |
| " 'inner',\n", | |
| " 'insert',\n", | |
| " 'inside_poly',\n", | |
| " 'int0',\n", | |
| " 'int16',\n", | |
| " 'int32',\n", | |
| " 'int64',\n", | |
| " 'int8',\n", | |
| " 'int_',\n", | |
| " 'int_asbuffer',\n", | |
| " 'intc',\n", | |
| " 'integer',\n", | |
| " 'interactive',\n", | |
| " 'interp',\n", | |
| " 'intersect1d',\n", | |
| " 'intp',\n", | |
| " 'inv',\n", | |
| " 'invert',\n", | |
| " 'ioff',\n", | |
| " 'ion',\n", | |
| " 'ipmt',\n", | |
| " 'irfft',\n", | |
| " 'irfft2',\n", | |
| " 'irfftn',\n", | |
| " 'irr',\n", | |
| " 'is_closed_polygon',\n", | |
| " 'is_numlike',\n", | |
| " 'is_string_like',\n", | |
| " 'iscomplex',\n", | |
| " 'iscomplexobj',\n", | |
| " 'isfinite',\n", | |
| " 'isfortran',\n", | |
| " 'ishold',\n", | |
| " 'isinf',\n", | |
| " 'isinteractive',\n", | |
| " 'isnan',\n", | |
| " 'isneginf',\n", | |
| " 'isposinf',\n", | |
| " 'ispower2',\n", | |
| " 'isreal',\n", | |
| " 'isrealobj',\n", | |
| " 'isscalar',\n", | |
| " 'issctype',\n", | |
| " 'issubclass_',\n", | |
| " 'issubdtype',\n", | |
| " 'issubsctype',\n", | |
| " 'isvector',\n", | |
| " 'iterable',\n", | |
| " 'ix_',\n", | |
| " 'jet',\n", | |
| " 'kaiser',\n", | |
| " 'kron',\n", | |
| " 'l1norm',\n", | |
| " 'l2norm',\n", | |
| " 'lapack_lite',\n", | |
| " 'laplace',\n", | |
| " 'ldexp',\n", | |
| " 'left_shift',\n", | |
| " 'legend',\n", | |
| " 'less',\n", | |
| " 'less_equal',\n", | |
| " 'levypdf',\n", | |
| " 'lexsort',\n", | |
| " 'liaupunov',\n", | |
| " 'linalg',\n", | |
| " 'linspace',\n", | |
| " 'little_endian',\n", | |
| " 'load',\n", | |
| " 'loads',\n", | |
| " 'loadtxt',\n", | |
| " 'locator_params',\n", | |
| " 'log',\n", | |
| " 'log10',\n", | |
| " 'log1p',\n", | |
| " 'log2',\n", | |
| " 'logaddexp',\n", | |
| " 'logaddexp2',\n", | |
| " 'logical_and',\n", | |
| " 'logical_not',\n", | |
| " 'logical_or',\n", | |
| " 'logical_xor',\n", | |
| " 'logistic',\n", | |
| " 'loglog',\n", | |
| " 'lognormal',\n", | |
| " 'logseries',\n", | |
| " 'logspace',\n", | |
| " 'longcomplex',\n", | |
| " 'longdouble',\n", | |
| " 'longest_contiguous_ones',\n", | |
| " 'longest_ones',\n", | |
| " 'longfloat',\n", | |
| " 'longlong',\n", | |
| " 'lookfor',\n", | |
| " 'lstsq',\n", | |
| " 'ma',\n", | |
| " 'mafromtxt',\n", | |
| " 'margins',\n", | |
| " 'mask_indices',\n", | |
| " 'mat',\n", | |
| " 'math',\n", | |
| " 'matplotlib',\n", | |
| " 'matrix',\n", | |
| " 'matrix_power',\n", | |
| " 'matrix_rank',\n", | |
| " 'matshow',\n", | |
| " 'maximum',\n", | |
| " 'maximum_sctype',\n", | |
| " 'may_share_memory',\n", | |
| " 'mean',\n", | |
| " 'median',\n", | |
| " 'memmap',\n", | |
| " 'meshgrid',\n", | |
| " 'mgrid',\n", | |
| " 'min_scalar_type',\n", | |
| " 'minimum',\n", | |
| " 'minorticks_off',\n", | |
| " 'minorticks_on',\n", | |
| " 'mintypecode',\n", | |
| " 'mirr',\n", | |
| " 'mlab',\n", | |
| " 'mod',\n", | |
| " 'modf',\n", | |
| " 'movavg',\n", | |
| " 'mpl',\n", | |
| " 'msort',\n", | |
| " 'multinomial',\n", | |
| " 'multiply',\n", | |
| " 'multivariate_normal',\n", | |
| " 'mx2num',\n", | |
| " 'nan',\n", | |
| " 'nan_to_num',\n", | |
| " 'nanargmax',\n", | |
| " 'nanargmin',\n", | |
| " 'nanmax',\n", | |
| " 'nanmin',\n", | |
| " 'nansum',\n", | |
| " 'nbytes',\n", | |
| " 'ndarray',\n", | |
| " 'ndenumerate',\n", | |
| " 'ndfromtxt',\n", | |
| " 'ndim',\n", | |
| " 'ndindex',\n", | |
| " 'nditer',\n", | |
| " 'negative',\n", | |
| " 'negative_binomial',\n", | |
| " 'nested_iters',\n", | |
| " 'new_figure_manager',\n", | |
| " 'newaxis',\n", | |
| " 'newbuffer',\n", | |
| " 'nextafter',\n", | |
| " 'noncentral_chisquare',\n", | |
| " 'noncentral_f',\n", | |
| " 'nonzero',\n", | |
| " 'norm',\n", | |
| " 'norm_flat',\n", | |
| " 'normal',\n", | |
| " 'normalize',\n", | |
| " 'normpdf',\n", | |
| " 'not_equal',\n", | |
| " 'np',\n", | |
| " 'nper',\n", | |
| " 'npv',\n", | |
| " 'num2date',\n", | |
| " 'num2epoch',\n", | |
| " 'number',\n", | |
| " 'numpy',\n", | |
| " 'obj2sctype',\n", | |
| " 'object0',\n", | |
| " 'object_',\n", | |
| " 'ogrid',\n", | |
| " 'ones',\n", | |
| " 'ones_like',\n", | |
| " 'orange',\n", | |
| " 'outer',\n", | |
| " 'over',\n", | |
| " 'packbits',\n", | |
| " 'pareto',\n", | |
| " 'path_length',\n", | |
| " 'pause',\n", | |
| " 'pcolor',\n", | |
| " 'pcolormesh',\n", | |
| " 'percentile',\n", | |
| " 'permutation',\n", | |
| " 'pi',\n", | |
| " 'pie',\n", | |
| " 'piecewise',\n", | |
| " 'pink',\n", | |
| " 'pinv',\n", | |
| " 'pkgload',\n", | |
| " 'place',\n", | |
| " 'plot',\n", | |
| " 'plot_date',\n", | |
| " 'plotfile',\n", | |
| " 'plotting',\n", | |
| " 'plt',\n", | |
| " 'pmt',\n", | |
| " 'poisson',\n", | |
| " 'polar',\n", | |
| " 'poly',\n", | |
| " 'poly1d',\n", | |
| " 'poly_below',\n", | |
| " 'poly_between',\n", | |
| " 'polyadd',\n", | |
| " 'polyder',\n", | |
| " 'polydiv',\n", | |
| " 'polyfit',\n", | |
| " 'polyint',\n", | |
| " 'polymul',\n", | |
| " 'polysub',\n", | |
| " 'polyval',\n", | |
| " 'power',\n", | |
| " 'ppmt',\n", | |
| " 'prctile',\n", | |
| " 'prctile_rank',\n", | |
| " 'prepca',\n", | |
| " 'prism',\n", | |
| " 'prod',\n", | |
| " 'product',\n", | |
| " 'promote_types',\n", | |
| " 'psd',\n", | |
| " 'ptp',\n", | |
| " 'put',\n", | |
| " 'putmask',\n", | |
| " 'pv',\n", | |
| " 'pylab',\n", | |
| " 'pylab_setup',\n", | |
| " 'pyplot',\n", | |
| " 'qr',\n", | |
| " 'quit',\n", | |
| " 'quiver',\n", | |
| " 'quiverkey',\n", | |
| " 'r_',\n", | |
| " 'rad2deg',\n", | |
| " 'radians',\n", | |
| " 'rand',\n", | |
| " 'randint',\n", | |
| " 'randn',\n", | |
| " 'random',\n", | |
| " 'random_integers',\n", | |
| " 'random_sample',\n", | |
| " 'ranf',\n", | |
| " 'rank',\n", | |
| " 'rate',\n", | |
| " 'ravel',\n", | |
| " 'ravel_multi_index',\n", | |
| " 'rayleigh',\n", | |
| " 'rc',\n", | |
| " 'rcParams',\n", | |
| " 'rcParamsDefault',\n", | |
| " 'rcdefaults',\n", | |
| " 'real',\n", | |
| " 'real_if_close',\n", | |
| " 'rec',\n", | |
| " 'rec2csv',\n", | |
| " 'rec_append_fields',\n", | |
| " 'rec_drop_fields',\n", | |
| " 'rec_join',\n", | |
| " 'recarray',\n", | |
| " 'recfromcsv',\n", | |
| " 'recfromtxt',\n", | |
| " 'reciprocal',\n", | |
| " 'record',\n", | |
| " 'register_cmap',\n", | |
| " 'relativedelta',\n", | |
| " 'remainder',\n", | |
| " 'repeat',\n", | |
| " 'require',\n", | |
| " 'reshape',\n", | |
| " 'resize',\n", | |
| " 'restoredot',\n", | |
| " 'result_type',\n", | |
| " 'rfft',\n", | |
| " 'rfft2',\n", | |
| " 'rfftn',\n", | |
| " 'rgrids',\n", | |
| " 'right_shift',\n", | |
| " 'rint',\n", | |
| " 'rk4',\n", | |
| " 'rms_flat',\n", | |
| " 'roll',\n", | |
| " 'rollaxis',\n", | |
| " 'roots',\n", | |
| " 'rot90',\n", | |
| " 'round_',\n", | |
| " 'row_stack',\n", | |
| " 'rrule',\n", | |
| " 's_',\n", | |
| " 'safe_eval',\n", | |
| " 'sample',\n", | |
| " 'save',\n", | |
| " 'savefig',\n", | |
| " 'savetxt',\n", | |
| " 'savez',\n", | |
| " 'savez_compressed',\n", | |
| " 'sca',\n", | |
| " 'scatter',\n", | |
| " 'sci',\n", | |
| " 'sctype2char',\n", | |
| " 'sctypeDict',\n", | |
| " 'sctypeNA',\n", | |
| " 'sctypes',\n", | |
| " 'searchsorted',\n", | |
| " 'seed',\n", | |
| " 'segments_intersect',\n", | |
| " 'select',\n", | |
| " 'semilogx',\n", | |
| " 'semilogy',\n", | |
| " 'set_cmap',\n", | |
| " 'set_numeric_ops',\n", | |
| " 'set_printoptions',\n", | |
| " 'set_state',\n", | |
| " 'set_string_function',\n", | |
| " 'setbufsize',\n", | |
| " 'setdiff1d',\n", | |
| " 'seterr',\n", | |
| " 'seterrcall',\n", | |
| " 'seterrobj',\n", | |
| " 'setp',\n", | |
| " 'setxor1d',\n", | |
| " 'shape',\n", | |
| " 'short',\n", | |
| " 'show',\n", | |
| " 'show_config',\n", | |
| " 'shuffle',\n", | |
| " 'sign',\n", | |
| " 'signbit',\n", | |
| " 'signedinteger',\n", | |
| " 'silent_list',\n", | |
| " 'sin',\n", | |
| " 'sinc',\n", | |
| " 'single',\n", | |
| " 'singlecomplex',\n", | |
| " 'sinh',\n", | |
| " 'size',\n", | |
| " 'slogdet',\n", | |
| " 'slopes',\n", | |
| " 'solve',\n", | |
| " 'sometrue',\n", | |
| " 'sort',\n", | |
| " 'sort_complex',\n", | |
| " 'source',\n", | |
| " 'spacing',\n", | |
| " 'specgram',\n", | |
| " 'spectral',\n", | |
| " 'split',\n", | |
| " 'spring',\n", | |
| " 'spy',\n", | |
| " 'sqrt',\n", | |
| " 'square',\n", | |
| " 'squeeze',\n", | |
| " 'standard_cauchy',\n", | |
| " 'standard_exponential',\n", | |
| " 'standard_gamma',\n", | |
| " 'standard_normal',\n", | |
| " 'standard_t',\n", | |
| " 'std',\n", | |
| " 'stem',\n", | |
| " 'step',\n", | |
| " 'stineman_interp',\n", | |
| " 'str_',\n", | |
| " 'string0',\n", | |
| " 'string_',\n", | |
| " 'strpdate2num',\n", | |
| " 'subplot',\n", | |
| " 'subplot2grid',\n", | |
| " 'subplot_tool',\n", | |
| " 'subplots',\n", | |
| " 'subplots_adjust',\n", | |
| " 'subtract',\n", | |
| " 'sum',\n", | |
| " 'summer',\n", | |
| " 'suptitle',\n", | |
| " 'svd',\n", | |
| " 'swapaxes',\n", | |
| " 'switch_backend',\n", | |
| " 'sys',\n", | |
| " 'table',\n", | |
| " 'take',\n", | |
| " 'tan',\n", | |
| " 'tanh',\n", | |
| " 'tensordot',\n", | |
| " 'tensorinv',\n", | |
| " 'tensorsolve',\n", | |
| " 'test',\n", | |
| " 'text',\n", | |
| " 'thetagrids',\n", | |
| " 'tick_params',\n", | |
| " 'ticklabel_format',\n", | |
| " 'tight_layout',\n", | |
| " 'tile',\n", | |
| " 'timedelta64',\n", | |
| " 'timedelta_',\n", | |
| " 'timeinteger',\n", | |
| " 'title',\n", | |
| " 'trace',\n", | |
| " 'transpose',\n", | |
| " 'trapz',\n", | |
| " 'tri',\n", | |
| " 'triangular',\n", | |
| " 'tricontour',\n", | |
| " 'tricontourf',\n", | |
| " 'tril',\n", | |
| " 'tril_indices',\n", | |
| " 'tril_indices_from',\n", | |
| " 'trim_zeros',\n", | |
| " 'tripcolor',\n", | |
| " 'triplot',\n", | |
| " 'triu',\n", | |
| " 'triu_indices',\n", | |
| " 'triu_indices_from',\n", | |
| " 'true_divide',\n", | |
| " 'trunc',\n", | |
| " 'twinx',\n", | |
| " 'twiny',\n", | |
| " 'typeDict',\n", | |
| " 'typeNA',\n", | |
| " 'typecodes',\n", | |
| " 'typename',\n", | |
| " 'ubyte',\n", | |
| " 'ufunc',\n", | |
| " 'uint',\n", | |
| " 'uint0',\n", | |
| " 'uint16',\n", | |
| " 'uint32',\n", | |
| " 'uint64',\n", | |
| " 'uint8',\n", | |
| " 'uintc',\n", | |
| " 'uintp',\n", | |
| " 'ulonglong',\n", | |
| " 'unicode0',\n", | |
| " 'unicode_',\n", | |
| " 'uniform',\n", | |
| " 'union1d',\n", | |
| " 'unique',\n", | |
| " 'unpackbits',\n", | |
| " 'unravel_index',\n", | |
| " 'unsignedinteger',\n", | |
| " 'unwrap',\n", | |
| " 'use_fastnumpy',\n", | |
| " 'ushort',\n", | |
| " 'vander',\n", | |
| " 'var',\n", | |
| " 'vdot',\n", | |
| " 'vector_lengths',\n", | |
| " 'vectorize',\n", | |
| " 'vlines',\n", | |
| " 'void',\n", | |
| " 'void0',\n", | |
| " 'vonmises',\n", | |
| " 'vsplit',\n", | |
| " 'vstack',\n", | |
| " 'waitforbuttonpress',\n", | |
| " 'wald',\n", | |
| " 'warnings',\n", | |
| " 'weibull',\n", | |
| " 'where',\n", | |
| " 'who',\n", | |
| " 'window_hanning',\n", | |
| " 'window_none',\n", | |
| " 'winter',\n", | |
| " 'xcorr',\n", | |
| " 'xlabel',\n", | |
| " 'xlim',\n", | |
| " 'xscale',\n", | |
| " 'xticks',\n", | |
| " 'ylabel',\n", | |
| " 'ylim',\n", | |
| " 'yscale',\n", | |
| " 'yticks',\n", | |
| " 'zeros',\n", | |
| " 'zeros_like',\n", | |
| " 'zipf']" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 4 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data = {i : randn() for i in range(7)}" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 5 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 6, | |
| "text": [ | |
| "{0: 0.8788553117812757,\n", | |
| " 1: -0.2615518930022985,\n", | |
| " 2: -0.4959709918581476,\n", | |
| " 3: -0.45778698414753005,\n", | |
| " 4: -1.0874167663531207,\n", | |
| " 5: 0.7747807846032565,\n", | |
| " 6: 0.022168985605358564}" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 6 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data2 = [randn() for i in range(7)]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 7 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data2" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 8, | |
| "text": [ | |
| "[-0.81374930959882,\n", | |
| " 0.26317293926290286,\n", | |
| " 0.02605062566235739,\n", | |
| " 0.8312299935388979,\n", | |
| " -1.0609401246737191,\n", | |
| " 0.7888793845932263,\n", | |
| " -1.199022480335675]" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 8 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "seed(0)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 9 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data = {i : randn() for i in range(7)}\n", | |
| "data2 = [randn() for i in range(7)]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 10 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 11, | |
| "text": [ | |
| "{0: 1.764052345967664,\n", | |
| " 1: 0.4001572083672233,\n", | |
| " 2: 0.9787379841057392,\n", | |
| " 3: 2.240893199201458,\n", | |
| " 4: 1.8675579901499675,\n", | |
| " 5: -0.977277879876411,\n", | |
| " 6: 0.9500884175255894}" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 11 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data2" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 12, | |
| "text": [ | |
| "[-0.1513572082976979,\n", | |
| " -0.10321885179355784,\n", | |
| " 0.41059850193837233,\n", | |
| " 0.144043571160878,\n", | |
| " 1.454273506962975,\n", | |
| " 0.7610377251469934,\n", | |
| " 0.12167501649282841]" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 12 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data2" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 13, | |
| "text": [ | |
| "[-0.1513572082976979,\n", | |
| " -0.10321885179355784,\n", | |
| " 0.41059850193837233,\n", | |
| " 0.144043571160878,\n", | |
| " 1.454273506962975,\n", | |
| " 0.7610377251469934,\n", | |
| " 0.12167501649282841]" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 13 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 14, | |
| "text": [ | |
| "{0: 1.764052345967664,\n", | |
| " 1: 0.4001572083672233,\n", | |
| " 2: 0.9787379841057392,\n", | |
| " 3: 2.240893199201458,\n", | |
| " 4: 1.8675579901499675,\n", | |
| " 5: -0.977277879876411,\n", | |
| " 6: 0.9500884175255894}" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 14 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data3 = (randn() for i in range(7))" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 15 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data3" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 16, | |
| "text": [ | |
| "<generator object <genexpr> at 0x5731850>" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 16 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data22pre = [(i, randn()) for i in range(7)]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 17 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "dict(data22pre)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 18, | |
| "text": [ | |
| "{0: 0.44386323274542566,\n", | |
| " 1: 0.33367432737426683,\n", | |
| " 2: 1.4940790731576061,\n", | |
| " 3: -0.20515826376580087,\n", | |
| " 4: 0.31306770165090136,\n", | |
| " 5: -0.8540957393017248,\n", | |
| " 6: -2.5529898158340787}" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 18 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "list(data3)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 19, | |
| "text": [ | |
| "[0.6536185954403606,\n", | |
| " 0.8644361988595057,\n", | |
| " -0.7421650204064419,\n", | |
| " 2.2697546239876076,\n", | |
| " -1.4543656745987648,\n", | |
| " 0.04575851730144607,\n", | |
| " -0.1871838500258336]" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 19 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data3" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 20, | |
| "text": [ | |
| "<generator object <genexpr> at 0x5731850>" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 20 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data3.next()" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "ename": "StopIteration", | |
| "evalue": "", | |
| "output_type": "pyerr", | |
| "traceback": [ | |
| "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mStopIteration\u001b[0m Traceback (most recent call last)", | |
| "\u001b[0;32m<ipython-input-21-4bfb0fc64f2c>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mdata3\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnext\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | |
| "\u001b[0;31mStopIteration\u001b[0m: " | |
| ] | |
| } | |
| ], | |
| "prompt_number": 21 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data3 = (randn() for i in range(7))" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "data3.next()" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "list(data3)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "range(7)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "xrange(7)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "type(xrange(7))" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "list(xrange(7))" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "%timeit range(1000)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "%timeit xrange(1000)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "range?" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "xrange?" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "dict(a=1, b=2, c=3)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "1+a" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "try:\n", | |
| " 1+a\n", | |
| "except:\n", | |
| " print sys.exc_info()[2]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "def set_trace():\n", | |
| " from IPython.core.debugger import Pdb \n", | |
| " Pdb(color_scheme='Linux').set_trace(sys._getframe().f_back)\n", | |
| "def debug(f, *args, **kwargs): \n", | |
| " from IPython.core.debugger import Pdb \n", | |
| " pdb = Pdb(color_scheme='Linux') \n", | |
| " return pdb.runcall(f, *args, **kwargs)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "try:\n", | |
| " set_trace()\n", | |
| " 1+a\n", | |
| "except:\n", | |
| " print sys.exc_info()[2]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "set_trace()" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "ls" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "Explain Ipython.ipynb a1.py slatesub.pyc\r\n", | |
| "a.py epd.txt test1.py\r\n" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 22 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "%run a1" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "> \u001b[1;32m/Users/rahul/Learning/Python/Course1/a1.py\u001b[0m(13)\u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n", | |
| "\u001b[1;32m 12 \u001b[1;33m \u001b[0mset_trace\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[0m\u001b[1;32m---> 13 \u001b[1;33m \u001b[0ma\u001b[0m\u001b[1;33m+\u001b[0m\u001b[1;36m1\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[0m\u001b[1;32m 14 \u001b[1;33m\u001b[1;32mexcept\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", | |
| "\u001b[0m\n", | |
| "(<class 'IPython.core.error.StdinNotImplementedError'>, StdinNotImplementedError('raw_input was called, but this frontend does not support stdin.',), <traceback object at 0x58a670>)\n" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 25 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "a=set([1,1,2,3])" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 27 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "a" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 28, | |
| "text": [ | |
| "set([1, 2, 3])" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 28 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "{e for e in a}" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 29, | |
| "text": [ | |
| "set([1, 2, 3])" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 29 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "'draw'[:-1]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 30, | |
| "text": [ | |
| "'dra'" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 30 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "'draw'[1::]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 33, | |
| "text": [ | |
| "'raw'" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 33 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "'draw'[::-1]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 34, | |
| "text": [ | |
| "'ward'" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 34 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "'draw'[::-2]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 35, | |
| "text": [ | |
| "'wr'" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 35 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "'draw'[::2]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 37, | |
| "text": [ | |
| "'da'" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 37 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "a=[1,2,3,4,5]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 38 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "a[::2]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 39, | |
| "text": [ | |
| "[1, 3, 5]" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 39 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "[float(e) for e in ['1',1,2.3,\"4.0\"]]" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 40, | |
| "text": [ | |
| "[1.0, 1.0, 2.3, 4.0]" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 40 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "'1'.float()" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "ename": "AttributeError", | |
| "evalue": "'str' object has no attribute 'float'", | |
| "output_type": "pyerr", | |
| "traceback": [ | |
| "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)", | |
| "\u001b[0;32m<ipython-input-41-e65703347488>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;34m'1'\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfloat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | |
| "\u001b[0;31mAttributeError\u001b[0m: 'str' object has no attribute 'float'" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 41 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "def f(x):\n", | |
| " x=x+1\n", | |
| " return x" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 42 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "import pdb" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 43 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "pdb.run(f)" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "ename": "StdinNotImplementedError", | |
| "evalue": "raw_input was called, but this frontend does not support stdin.", | |
| "output_type": "pyerr", | |
| "traceback": [ | |
| "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mStdinNotImplementedError\u001b[0m Traceback (most recent call last)", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/IPython/core/interactiveshell.py\u001b[0m in \u001b[0;36mrun_code\u001b[0;34m(self, code_obj)\u001b[0m\n\u001b[1;32m 2730\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mCustomTB\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0metype\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mvalue\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mtb\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2731\u001b[0m \u001b[0;32mexcept\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2732\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshowtraceback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2733\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2734\u001b[0m \u001b[0moutflag\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/IPython/core/interactiveshell.py\u001b[0m in \u001b[0;36mshowtraceback\u001b[0;34m(self, exc_tuple, filename, tb_offset, exception_only)\u001b[0m\n\u001b[1;32m 1689\u001b[0m simply call this method.\"\"\"\n\u001b[1;32m 1690\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1691\u001b[0;31m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1692\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1693\u001b[0m \u001b[0metype\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtb\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_exc_info\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mexc_tuple\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/IPython/core/interactiveshell.py\u001b[0m in \u001b[0;36mshowtraceback\u001b[0;34m(self, exc_tuple, filename, tb_offset, exception_only)\u001b[0m\n\u001b[1;32m 1689\u001b[0m simply call this method.\"\"\"\n\u001b[1;32m 1690\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1691\u001b[0;31m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1692\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1693\u001b[0m \u001b[0metype\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtb\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_get_exc_info\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mexc_tuple\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/bdb.pyc\u001b[0m in \u001b[0;36mtrace_dispatch\u001b[0;34m(self, frame, event, arg)\u001b[0m\n\u001b[1;32m 46\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0;31m# None\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 47\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mevent\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;34m'line'\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 48\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdispatch_line\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 49\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mevent\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;34m'call'\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 50\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdispatch_call\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/bdb.pyc\u001b[0m in \u001b[0;36mdispatch_line\u001b[0;34m(self, frame)\u001b[0m\n\u001b[1;32m 64\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mdispatch_line\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mframe\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 65\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstop_here\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbreak_here\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 66\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0muser_line\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 67\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mquitting\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mBdbQuit\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 68\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtrace_dispatch\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/pdb.pyc\u001b[0m in \u001b[0;36muser_line\u001b[0;34m(self, frame)\u001b[0m\n\u001b[1;32m 156\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_wait_for_mainpyfile\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 157\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbp_commands\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 158\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minteraction\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mNone\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 159\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 160\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mbp_commands\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/pdb.pyc\u001b[0m in \u001b[0;36minteraction\u001b[0;34m(self, frame, traceback)\u001b[0m\n\u001b[1;32m 208\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msetup\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mframe\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtraceback\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 209\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mprint_stack_entry\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstack\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcurindex\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 210\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcmdloop\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 211\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mforget\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 212\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/cmd.pyc\u001b[0m in \u001b[0;36mcmdloop\u001b[0;34m(self, intro)\u001b[0m\n\u001b[1;32m 128\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0muse_rawinput\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 129\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 130\u001b[0;31m \u001b[0mline\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mraw_input\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mprompt\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 131\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mEOFError\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 132\u001b[0m \u001b[0mline\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'EOF'\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/ipkernel.py\u001b[0m in \u001b[0;36m<lambda>\u001b[0;34m(prompt)\u001b[0m\n\u001b[1;32m 343\u001b[0m \u001b[0mraw_input\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mlambda\u001b[0m \u001b[0mprompt\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m''\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_raw_input\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mprompt\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mident\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mparent\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 344\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 345\u001b[0;31m \u001b[0mraw_input\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mlambda\u001b[0m \u001b[0mprompt\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m''\u001b[0m \u001b[0;34m:\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_no_raw_input\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 346\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 347\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mpy3compat\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mPY3\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;32m/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/ipkernel.py\u001b[0m in \u001b[0;36m_no_raw_input\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 686\u001b[0m \"\"\"Raise StdinNotImplentedError if active frontend doesn't support\n\u001b[1;32m 687\u001b[0m stdin.\"\"\"\n\u001b[0;32m--> 688\u001b[0;31m raise StdinNotImplementedError(\"raw_input was called, but this \"\n\u001b[0m\u001b[1;32m 689\u001b[0m \"frontend does not support stdin.\") \n\u001b[1;32m 690\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;31mStdinNotImplementedError\u001b[0m: raw_input was called, but this frontend does not support stdin." | |
| ] | |
| }, | |
| { | |
| "output_type": "stream", | |
| "stream": "stdout", | |
| "text": [ | |
| "> /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/IPython/core/interactiveshell.py(1691)showtraceback()\n", | |
| "-> try:\n" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 44 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [ | |
| "dir()" | |
| ], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "output_type": "pyout", | |
| "prompt_number": 52, | |
| "text": [ | |
| "['ALLOW_THREADS',\n", | |
| " 'Annotation',\n", | |
| " 'Arrow',\n", | |
| " 'Artist',\n", | |
| " 'AutoLocator',\n", | |
| " 'Axes',\n", | |
| " 'BUFSIZE',\n", | |
| " 'Button',\n", | |
| " 'CLIP',\n", | |
| " 'Circle',\n", | |
| " 'ComplexWarning',\n", | |
| " 'DAILY',\n", | |
| " 'DataSource',\n", | |
| " 'DateFormatter',\n", | |
| " 'DateLocator',\n", | |
| " 'DayLocator',\n", | |
| " 'ERR_CALL',\n", | |
| " 'ERR_DEFAULT',\n", | |
| " 'ERR_DEFAULT2',\n", | |
| " 'ERR_IGNORE',\n", | |
| " 'ERR_LOG',\n", | |
| " 'ERR_PRINT',\n", | |
| " 'ERR_RAISE',\n", | |
| " 'ERR_WARN',\n", | |
| " 'FLOATING_POINT_SUPPORT',\n", | |
| " 'FPE_DIVIDEBYZERO',\n", | |
| " 'FPE_INVALID',\n", | |
| " 'FPE_OVERFLOW',\n", | |
| " 'FPE_UNDERFLOW',\n", | |
| " 'FR',\n", | |
| " 'False_',\n", | |
| " 'Figure',\n", | |
| " 'FigureCanvasBase',\n", | |
| " 'FixedFormatter',\n", | |
| " 'FixedLocator',\n", | |
| " 'FormatStrFormatter',\n", | |
| " 'Formatter',\n", | |
| " 'FuncFormatter',\n", | |
| " 'GridSpec',\n", | |
| " 'HOURLY',\n", | |
| " 'HourLocator',\n", | |
| " 'In',\n", | |
| " 'IndexDateFormatter',\n", | |
| " 'IndexLocator',\n", | |
| " 'Inf',\n", | |
| " 'Infinity',\n", | |
| " 'LinAlgError',\n", | |
| " 'Line2D',\n", | |
| " 'LinearLocator',\n", | |
| " 'Locator',\n", | |
| " 'LogFormatter',\n", | |
| " 'LogFormatterExponent',\n", | |
| " 'LogFormatterMathtext',\n", | |
| " 'LogLocator',\n", | |
| " 'MAXDIMS',\n", | |
| " 'MINUTELY',\n", | |
| " 'MO',\n", | |
| " 'MONTHLY',\n", | |
| " 'MachAr',\n", | |
| " 'MaxNLocator',\n", | |
| " 'MinuteLocator',\n", | |
| " 'MonthLocator',\n", | |
| " 'MultipleLocator',\n", | |
| " 'NAN',\n", | |
| " 'NINF',\n", | |
| " 'NZERO',\n", | |
| " 'NaN',\n", | |
| " 'Normalize',\n", | |
| " 'NullFormatter',\n", | |
| " 'NullLocator',\n", | |
| " 'Out',\n", | |
| " 'PINF',\n", | |
| " 'PZERO',\n", | |
| " 'PackageLoader',\n", | |
| " 'PolarAxes',\n", | |
| " 'Polygon',\n", | |
| " 'RAISE',\n", | |
| " 'RRuleLocator',\n", | |
| " 'RankWarning',\n", | |
| " 'Rectangle',\n", | |
| " 'SA',\n", | |
| " 'SECONDLY',\n", | |
| " 'SHIFT_DIVIDEBYZERO',\n", | |
| " 'SHIFT_INVALID',\n", | |
| " 'SHIFT_OVERFLOW',\n", | |
| " 'SHIFT_UNDERFLOW',\n", | |
| " 'SU',\n", | |
| " 'ScalarFormatter',\n", | |
| " 'ScalarType',\n", | |
| " 'SecondLocator',\n", | |
| " 'Slider',\n", | |
| " 'Subplot',\n", | |
| " 'SubplotTool',\n", | |
| " 'TH',\n", | |
| " 'TU',\n", | |
| " 'Tester',\n", | |
| " 'Text',\n", | |
| " 'TickHelper',\n", | |
| " 'True_',\n", | |
| " 'UFUNC_BUFSIZE_DEFAULT',\n", | |
| " 'UFUNC_PYVALS_NAME',\n", | |
| " 'WE',\n", | |
| " 'WEEKLY',\n", | |
| " 'WRAP',\n", | |
| " 'WeekdayLocator',\n", | |
| " 'Widget',\n", | |
| " 'YEARLY',\n", | |
| " 'YearLocator',\n", | |
| " '_',\n", | |
| " '_11',\n", | |
| " '_12',\n", | |
| " '_13',\n", | |
| " '_14',\n", | |
| " '_16',\n", | |
| " '_18',\n", | |
| " '_19',\n", | |
| " '_2',\n", | |
| " '_20',\n", | |
| " '_28',\n", | |
| " '_29',\n", | |
| " '_30',\n", | |
| " '_31',\n", | |
| " '_32',\n", | |
| " '_33',\n", | |
| " '_34',\n", | |
| " '_35',\n", | |
| " '_36',\n", | |
| " '_37',\n", | |
| " '_39',\n", | |
| " '_4',\n", | |
| " '_40',\n", | |
| " '_45',\n", | |
| " '_48',\n", | |
| " '_50',\n", | |
| " '_6',\n", | |
| " '_8',\n", | |
| " '__',\n", | |
| " '___',\n", | |
| " '__builtin__',\n", | |
| " '__builtins__',\n", | |
| " '__exception__',\n", | |
| " '__file__',\n", | |
| " '__name__',\n", | |
| " '__nonzero__',\n", | |
| " '__package__',\n", | |
| " '__version__',\n", | |
| " '_dh',\n", | |
| " '_exit_code',\n", | |
| " '_i',\n", | |
| " '_i1',\n", | |
| " '_i10',\n", | |
| " '_i11',\n", | |
| " '_i12',\n", | |
| " '_i13',\n", | |
| " '_i14',\n", | |
| " '_i15',\n", | |
| " '_i16',\n", | |
| " '_i17',\n", | |
| " '_i18',\n", | |
| " '_i19',\n", | |
| " '_i2',\n", | |
| " '_i20',\n", | |
| " '_i21',\n", | |
| " '_i22',\n", | |
| " '_i23',\n", | |
| " '_i24',\n", | |
| " '_i25',\n", | |
| " '_i26',\n", | |
| " '_i27',\n", | |
| " '_i28',\n", | |
| " '_i29',\n", | |
| " '_i3',\n", | |
| " '_i30',\n", | |
| " '_i31',\n", | |
| " '_i32',\n", | |
| " '_i33',\n", | |
| " '_i34',\n", | |
| " '_i35',\n", | |
| " '_i36',\n", | |
| " '_i37',\n", | |
| " '_i38',\n", | |
| " '_i39',\n", | |
| " '_i4',\n", | |
| " '_i40',\n", | |
| " '_i41',\n", | |
| " '_i42',\n", | |
| " '_i43',\n", | |
| " '_i44',\n", | |
| " '_i45',\n", | |
| " '_i46',\n", | |
| " '_i47',\n", | |
| " '_i48',\n", | |
| " '_i49',\n", | |
| " '_i5',\n", | |
| " '_i50',\n", | |
| " '_i51',\n", | |
| " '_i52',\n", | |
| " '_i6',\n", | |
| " '_i7',\n", | |
| " '_i8',\n", | |
| " '_i9',\n", | |
| " '_ih',\n", | |
| " '_ii',\n", | |
| " '_iii',\n", | |
| " '_oh',\n", | |
| " '_sh',\n", | |
| " 'a',\n", | |
| " 'absolute',\n", | |
| " 'acorr',\n", | |
| " 'add',\n", | |
| " 'add_docstring',\n", | |
| " 'add_newdoc',\n", | |
| " 'add_newdocs',\n", | |
| " 'alen',\n", | |
| " 'all',\n", | |
| " 'allclose',\n", | |
| " 'alltrue',\n", | |
| " 'alterdot',\n", | |
| " 'amap',\n", | |
| " 'amax',\n", | |
| " 'amin',\n", | |
| " 'angle',\n", | |
| " 'annotate',\n", | |
| " 'any',\n", | |
| " 'append',\n", | |
| " 'apple',\n", | |
| " 'apply_along_axis',\n", | |
| " 'apply_over_axes',\n", | |
| " 'arange',\n", | |
| " 'arccos',\n", | |
| " 'arccosh',\n", | |
| " 'arcsin',\n", | |
| " 'arcsinh',\n", | |
| " 'arctan',\n", | |
| " 'arctan2',\n", | |
| " 'arctanh',\n", | |
| " 'argmax',\n", | |
| " 'argmin',\n", | |
| " 'argsort',\n", | |
| " 'argwhere',\n", | |
| " 'around',\n", | |
| " 'array',\n", | |
| " 'array2string',\n", | |
| " 'array_equal',\n", | |
| " 'array_equiv',\n", | |
| " 'array_repr',\n", | |
| " 'array_split',\n", | |
| " 'array_str',\n", | |
| " 'arrow',\n", | |
| " 'asanyarray',\n", | |
| " 'asarray',\n", | |
| " 'asarray_chkfinite',\n", | |
| " 'ascontiguousarray',\n", | |
| " 'asfarray',\n", | |
| " 'asfortranarray',\n", | |
| " 'asmatrix',\n", | |
| " 'asscalar',\n", | |
| " 'atleast_1d',\n", | |
| " 'atleast_2d',\n", | |
| " 'atleast_3d',\n", | |
| " 'autogen_docstring',\n", | |
| " 'autoscale',\n", | |
| " 'autumn',\n", | |
| " 'average',\n", | |
| " 'axes',\n", | |
| " 'axhline',\n", | |
| " 'axhspan',\n", | |
| " 'axis',\n", | |
| " 'axvline',\n", | |
| " 'axvspan',\n", | |
| " 'bar',\n", | |
| " 'barbs',\n", | |
| " 'barh',\n", | |
| " 'bartlett',\n", | |
| " 'base_repr',\n", | |
| " 'bench',\n", | |
| " 'beta',\n", | |
| " 'binary_repr',\n", | |
| " 'bincount',\n", | |
| " 'binomial',\n", | |
| " 'bitwise_and',\n", | |
| " 'bitwise_not',\n", | |
| " 'bitwise_or',\n", | |
| " 'bitwise_xor',\n", | |
| " 'bivariate_normal',\n", | |
| " 'blackman',\n", | |
| " 'bmat',\n", | |
| " 'bone',\n", | |
| " 'bool8',\n", | |
| " 'bool_',\n", | |
| " 'box',\n", | |
| " 'boxplot',\n", | |
| " 'broadcast',\n", | |
| " 'broadcast_arrays',\n", | |
| " 'broken_barh',\n", | |
| " 'byte',\n", | |
| " 'byte_bounds',\n", | |
| " 'bytes',\n", | |
| " 'bytes_',\n", | |
| " 'c_',\n", | |
| " 'can_cast',\n", | |
| " 'cast',\n", | |
| " 'cbook',\n", | |
| " 'cdouble',\n", | |
| " 'ceil',\n", | |
| " 'center_matrix',\n", | |
| " 'cfloat',\n", | |
| " 'char',\n", | |
| " 'character',\n", | |
| " 'chararray',\n", | |
| " 'chisquare',\n", | |
| " 'cholesky',\n", | |
| " 'choose',\n", | |
| " 'cla',\n", | |
| " 'clabel',\n", | |
| " 'clf',\n", | |
| " 'clim',\n", | |
| " 'clip',\n", | |
| " 'clongdouble',\n", | |
| " 'clongfloat',\n", | |
| " 'close',\n", | |
| " 'cm',\n", | |
| " 'cohere',\n", | |
| " 'colorbar',\n", | |
| " 'colormaps',\n", | |
| " 'colors',\n", | |
| " 'column_stack',\n", | |
| " 'common_type',\n", | |
| " 'compare_chararrays',\n", | |
| " 'complex128',\n", | |
| " 'complex256',\n", | |
| " 'complex64',\n", | |
| " 'complex_',\n", | |
| " 'complexfloating',\n", | |
| " 'compress',\n", | |
| " 'concatenate',\n", | |
| " 'cond',\n", | |
| " 'conj',\n", | |
| " 'conjugate',\n", | |
| " 'connect',\n", | |
| " 'contour',\n", | |
| " 'contourf',\n", | |
| " 'convolve',\n", | |
| " 'cool',\n", | |
| " 'copper',\n", | |
| " 'copy',\n", | |
| " 'copysign',\n", | |
| " 'corrcoef',\n", | |
| " 'correlate',\n", | |
| " 'cos',\n", | |
| " 'cosh',\n", | |
| " 'count_nonzero',\n", | |
| " 'cov',\n", | |
| " 'cross',\n", | |
| " 'csd',\n", | |
| " 'csingle',\n", | |
| " 'csv2rec',\n", | |
| " 'ctypeslib',\n", | |
| " 'cumprod',\n", | |
| " 'cumproduct',\n", | |
| " 'cumsum',\n", | |
| " 'data',\n", | |
| " 'data2',\n", | |
| " 'data22pre',\n", | |
| " 'data3',\n", | |
| " 'date2num',\n", | |
| " 'datestr2num',\n", | |
| " 'datetime',\n", | |
| " 'datetime64',\n", | |
| " 'datetime_',\n", | |
| " 'datetime_data',\n", | |
| " 'debug',\n", | |
| " 'dedent',\n", | |
| " 'deg2rad',\n", | |
| " 'degrees',\n", | |
| " 'delaxes',\n", | |
| " 'delete',\n", | |
| " 'demean',\n", | |
| " 'deprecate',\n", | |
| " 'deprecate_with_doc',\n", | |
| " 'det',\n", | |
| " 'detrend',\n", | |
| " 'detrend_linear',\n", | |
| " 'detrend_mean',\n", | |
| " 'detrend_none',\n", | |
| " 'diag',\n", | |
| " 'diag_indices',\n", | |
| " 'diag_indices_from',\n", | |
| " 'diagflat',\n", | |
| " 'diagonal',\n", | |
| " 'diff',\n", | |
| " 'digitize',\n", | |
| " 'disconnect',\n", | |
| " 'disp',\n", | |
| " 'display',\n", | |
| " 'dist',\n", | |
| " 'dist_point_to_segment',\n", | |
| " 'distances_along_curve',\n", | |
| " 'divide',\n", | |
| " 'docstring',\n", | |
| " 'dot',\n", | |
| " 'double',\n", | |
| " 'drange',\n", | |
| " 'draw',\n", | |
| " 'draw_if_interactive',\n", | |
| " 'dsplit',\n", | |
| " 'dstack',\n", | |
| " 'dtype',\n", | |
| " 'e',\n", | |
| " 'ediff1d',\n", | |
| " 'eig',\n", | |
| " 'eigh',\n", | |
| " 'eigvals',\n", | |
| " 'eigvalsh',\n", | |
| " 'einsum',\n", | |
| " 'emath',\n", | |
| " 'empty',\n", | |
| " 'empty_like',\n", | |
| " 'entropy',\n", | |
| " 'epoch2num',\n", | |
| " 'equal',\n", | |
| " 'errorbar',\n", | |
| " 'errstate',\n", | |
| " 'exception_to_str',\n", | |
| " 'exit',\n", | |
| " 'exp',\n", | |
| " 'exp2',\n", | |
| " 'exp_safe',\n", | |
| " 'expand_dims',\n", | |
| " 'expm1',\n", | |
| " 'exponential',\n", | |
| " 'extract',\n", | |
| " 'eye',\n", | |
| " 'f',\n", | |
| " 'fabs',\n", | |
| " 'fastCopyAndTranspose',\n", | |
| " 'fft',\n", | |
| " 'fft2',\n", | |
| " 'fftfreq',\n", | |
| " 'fftn',\n", | |
| " 'fftpack',\n", | |
| " 'fftpack_lite',\n", | |
| " 'fftshift',\n", | |
| " 'fftsurr',\n", | |
| " 'figaspect',\n", | |
| " 'figimage',\n", | |
| " 'figlegend',\n", | |
| " 'fignum_exists',\n", | |
| " 'figsize',\n", | |
| " 'figtext',\n", | |
| " 'figure',\n", | |
| " 'fill',\n", | |
| " 'fill_between',\n", | |
| " 'fill_betweenx',\n", | |
| " 'fill_diagonal',\n", | |
| " 'find',\n", | |
| " 'find_common_type',\n", | |
| " 'findobj',\n", | |
| " 'finfo',\n", | |
| " 'fix',\n", | |
| " 'flag',\n", | |
| " 'flatiter',\n", | |
| " 'flatnonzero',\n", | |
| " 'flatten',\n", | |
| " 'flexible',\n", | |
| " 'fliplr',\n", | |
| " 'flipud',\n", | |
| " 'float128',\n", | |
| " 'float16',\n", | |
| " 'float32',\n", | |
| " 'float64',\n", | |
| " 'float_',\n", | |
| " 'floating',\n", | |
| " 'floor',\n", | |
| " 'floor_divide',\n", | |
| " 'fmax',\n", | |
| " 'fmin',\n", | |
| " 'fmod',\n", | |
| " 'format_parser',\n", | |
| " 'frange',\n", | |
| " 'frexp',\n", | |
| " 'frombuffer',\n", | |
| " 'fromfile',\n", | |
| " 'fromfunction',\n", | |
| " 'fromiter',\n", | |
| " 'frompyfunc',\n", | |
| " 'fromregex',\n", | |
| " 'fromstring',\n", | |
| " 'fv',\n", | |
| " 'gamma',\n", | |
| " 'gca',\n", | |
| " 'gcf',\n", | |
| " 'gci',\n", | |
| " 'generic',\n", | |
| " 'genfromtxt',\n", | |
| " 'geometric',\n", | |
| " 'get',\n", | |
| " 'get_array_wrap',\n", | |
| " 'get_backend',\n", | |
| " 'get_cmap',\n", | |
| " 'get_current_fig_manager',\n", | |
| " 'get_figlabels',\n", | |
| " 'get_fignums',\n", | |
| " 'get_include',\n", | |
| " 'get_ipython',\n", | |
| " 'get_numarray_include',\n", | |
| " 'get_plot_commands',\n", | |
| " 'get_printoptions',\n", | |
| " 'get_scale_docs',\n", | |
| " 'get_scale_names',\n", | |
| " 'get_sparse_matrix',\n", | |
| " 'get_state',\n", | |
| " 'get_xyz_where',\n", | |
| " 'getbuffer',\n", | |
| " 'getbufsize',\n", | |
| " 'geterr',\n", | |
| " 'geterrcall',\n", | |
| " 'geterrobj',\n", | |
| " 'getfigs',\n", | |
| " 'getp',\n", | |
| " 'ginput',\n", | |
| " 'gradient',\n", | |
| " 'gray',\n", | |
| " 'greater',\n", | |
| " 'greater_equal',\n", | |
| " 'grid',\n", | |
| " 'griddata',\n", | |
| " 'gumbel',\n", | |
| " 'half',\n", | |
| " 'hamming',\n", | |
| " 'hanning',\n", | |
| " 'help',\n", | |
| " 'helper',\n", | |
| " 'hexbin',\n", | |
| " 'hfft',\n", | |
| " 'hist',\n", | |
| " 'histogram',\n", | |
| " 'histogram2d',\n", | |
| " 'histogramdd',\n", | |
| " 'hlines',\n", | |
| " 'hold',\n", | |
| " 'hot',\n", | |
| " 'hsplit',\n", | |
| " 'hstack',\n", | |
| " 'hsv',\n", | |
| " 'hypergeometric',\n", | |
| " 'hypot',\n", | |
| " 'i',\n", | |
| " 'i0',\n", | |
| " 'identity',\n", | |
| " 'ifft',\n", | |
| " 'ifft2',\n", | |
| " 'ifftn',\n", | |
| " 'ifftshift',\n", | |
| " 'ihfft',\n", | |
| " 'iinfo',\n", | |
| " 'imag',\n", | |
| " 'imread',\n", | |
| " 'imsave',\n", | |
| " 'imshow',\n", | |
| " 'in1d',\n", | |
| " 'index_exp',\n", | |
| " 'indices',\n", | |
| " 'inexact',\n", | |
| " 'inf',\n", | |
| " 'info',\n", | |
| " 'infty',\n", | |
| " 'inner',\n", | |
| " 'insert',\n", | |
| " 'inside_poly',\n", | |
| " 'int0',\n", | |
| " 'int16',\n", | |
| " 'int32',\n", | |
| " 'int64',\n", | |
| " 'int8',\n", | |
| " 'int_',\n", | |
| " 'int_asbuffer',\n", | |
| " 'intc',\n", | |
| " 'integer',\n", | |
| " 'interactive',\n", | |
| " 'interp',\n", | |
| " 'intersect1d',\n", | |
| " 'intp',\n", | |
| " 'inv',\n", | |
| " 'invert',\n", | |
| " 'ioff',\n", | |
| " 'ion',\n", | |
| " 'ipmt',\n", | |
| " 'irfft',\n", | |
| " 'irfft2',\n", | |
| " 'irfftn',\n", | |
| " 'irr',\n", | |
| " 'is_closed_polygon',\n", | |
| " 'is_numlike',\n", | |
| " 'is_string_like',\n", | |
| " 'iscomplex',\n", | |
| " 'iscomplexobj',\n", | |
| " 'isfinite',\n", | |
| " 'isfortran',\n", | |
| " 'ishold',\n", | |
| " 'isinf',\n", | |
| " 'isinteractive',\n", | |
| " 'isnan',\n", | |
| " 'isneginf',\n", | |
| " 'isposinf',\n", | |
| " 'ispower2',\n", | |
| " 'isreal',\n", | |
| " 'isrealobj',\n", | |
| " 'isscalar',\n", | |
| " 'issctype',\n", | |
| " 'issubclass_',\n", | |
| " 'issubdtype',\n", | |
| " 'issubsctype',\n", | |
| " 'isvector',\n", | |
| " 'iterable',\n", | |
| " 'ix_',\n", | |
| " 'jet',\n", | |
| " 'kaiser',\n", | |
| " 'kron',\n", | |
| " 'l1norm',\n", | |
| " 'l2norm',\n", | |
| " 'lapack_lite',\n", | |
| " 'laplace',\n", | |
| " 'ldexp',\n", | |
| " 'left_shift',\n", | |
| " 'legend',\n", | |
| " 'less',\n", | |
| " 'less_equal',\n", | |
| " 'levypdf',\n", | |
| " 'lexsort',\n", | |
| " 'liaupunov',\n", | |
| " 'linalg',\n", | |
| " 'linspace',\n", | |
| " 'little_endian',\n", | |
| " 'load',\n", | |
| " 'loads',\n", | |
| " 'loadtxt',\n", | |
| " 'locator_params',\n", | |
| " 'log',\n", | |
| " 'log10',\n", | |
| " 'log1p',\n", | |
| " 'log2',\n", | |
| " 'logaddexp',\n", | |
| " 'logaddexp2',\n", | |
| " 'logical_and',\n", | |
| " 'logical_not',\n", | |
| " 'logical_or',\n", | |
| " 'logical_xor',\n", | |
| " 'logistic',\n", | |
| " 'loglog',\n", | |
| " 'lognormal',\n", | |
| " 'logseries',\n", | |
| " 'logspace',\n", | |
| " 'longcomplex',\n", | |
| " 'longdouble',\n", | |
| " 'longest_contiguous_ones',\n", | |
| " 'longest_ones',\n", | |
| " 'longfloat',\n", | |
| " 'longlong',\n", | |
| " 'lookfor',\n", | |
| " 'lstsq',\n", | |
| " 'ma',\n", | |
| " 'mafromtxt',\n", | |
| " 'margins',\n", | |
| " 'mask_indices',\n", | |
| " 'mat',\n", | |
| " 'math',\n", | |
| " 'matplotlib',\n", | |
| " 'matrix',\n", | |
| " 'matrix_power',\n", | |
| " 'matrix_rank',\n", | |
| " 'matshow',\n", | |
| " 'maximum',\n", | |
| " 'maximum_sctype',\n", | |
| " 'may_share_memory',\n", | |
| " 'mean',\n", | |
| " 'median',\n", | |
| " 'memmap',\n", | |
| " 'meshgrid',\n", | |
| " 'mgrid',\n", | |
| " 'min_scalar_type',\n", | |
| " 'minimum',\n", | |
| " 'minorticks_off',\n", | |
| " 'minorticks_on',\n", | |
| " 'mintypecode',\n", | |
| " 'mirr',\n", | |
| " 'mlab',\n", | |
| " 'mod',\n", | |
| " 'modf',\n", | |
| " 'movavg',\n", | |
| " 'mpl',\n", | |
| " 'msort',\n", | |
| " 'multinomial',\n", | |
| " 'multiply',\n", | |
| " 'multivariate_normal',\n", | |
| " 'mx2num',\n", | |
| " 'nan',\n", | |
| " 'nan_to_num',\n", | |
| " 'nanargmax',\n", | |
| " 'nanargmin',\n", | |
| " 'nanmax',\n", | |
| " 'nanmin',\n", | |
| " 'nansum',\n", | |
| " 'nbytes',\n", | |
| " 'ndarray',\n", | |
| " 'ndenumerate',\n", | |
| " 'ndfromtxt',\n", | |
| " 'ndim',\n", | |
| " 'ndindex',\n", | |
| " 'nditer',\n", | |
| " 'negative',\n", | |
| " 'negative_binomial',\n", | |
| " 'nested_iters',\n", | |
| " 'new_figure_manager',\n", | |
| " 'newaxis',\n", | |
| " 'newbuffer',\n", | |
| " 'nextafter',\n", | |
| " 'noncentral_chisquare',\n", | |
| " 'noncentral_f',\n", | |
| " 'nonzero',\n", | |
| " 'norm',\n", | |
| " 'norm_flat',\n", | |
| " 'normal',\n", | |
| " 'normalize',\n", | |
| " 'normpdf',\n", | |
| " 'not_equal',\n", | |
| " 'np',\n", | |
| " 'nper',\n", | |
| " 'npv',\n", | |
| " 'num2date',\n", | |
| " 'num2epoch',\n", | |
| " 'number',\n", | |
| " 'numpy',\n", | |
| " 'obj2sctype',\n", | |
| " 'object0',\n", | |
| " 'object_',\n", | |
| " 'ogrid',\n", | |
| " 'ones',\n", | |
| " 'ones_like',\n", | |
| " 'orange',\n", | |
| " 'outer',\n", | |
| " 'over',\n", | |
| " 'packbits',\n", | |
| " 'pareto',\n", | |
| " 'path_length',\n", | |
| " 'pause',\n", | |
| " 'pcolor',\n", | |
| " 'pcolormesh',\n", | |
| " 'pdb',\n", | |
| " 'percentile',\n", | |
| " 'permutation',\n", | |
| " 'pi',\n", | |
| " 'pie',\n", | |
| " 'piecewise',\n", | |
| " 'pink',\n", | |
| " 'pinv',\n", | |
| " 'pkgload',\n", | |
| " 'place',\n", | |
| " 'plot',\n", | |
| " 'plot_date',\n", | |
| " 'plotfile',\n", | |
| " 'plotting',\n", | |
| " 'plt',\n", | |
| " 'pmt',\n", | |
| " 'poisson',\n", | |
| " 'polar',\n", | |
| " 'poly',\n", | |
| " 'poly1d',\n", | |
| " 'poly_below',\n", | |
| " 'poly_between',\n", | |
| " 'polyadd',\n", | |
| " 'polyder',\n", | |
| " 'polydiv',\n", | |
| " 'polyfit',\n", | |
| " 'polyint',\n", | |
| " 'polymul',\n", | |
| " 'polysub',\n", | |
| " 'polyval',\n", | |
| " 'power',\n", | |
| " 'ppmt',\n", | |
| " 'prctile',\n", | |
| " 'prctile_rank',\n", | |
| " 'prepca',\n", | |
| " 'prism',\n", | |
| " 'prod',\n", | |
| " 'product',\n", | |
| " 'promote_types',\n", | |
| " 'psd',\n", | |
| " 'ptp',\n", | |
| " 'put',\n", | |
| " 'putmask',\n", | |
| " 'pv',\n", | |
| " 'pylab',\n", | |
| " 'pylab_setup',\n", | |
| " 'pyplot',\n", | |
| " 'qr',\n", | |
| " 'quit',\n", | |
| " 'quiver',\n", | |
| " 'quiverkey',\n", | |
| " 'r_',\n", | |
| " 'rad2deg',\n", | |
| " 'radians',\n", | |
| " 'rand',\n", | |
| " 'randint',\n", | |
| " 'randn',\n", | |
| " 'random',\n", | |
| " 'random_integers',\n", | |
| " 'random_sample',\n", | |
| " 'ranf',\n", | |
| " 'rank',\n", | |
| " 'rate',\n", | |
| " 'ravel',\n", | |
| " 'ravel_multi_index',\n", | |
| " 'rayleigh',\n", | |
| " 'rc',\n", | |
| " 'rcParams',\n", | |
| " 'rcParamsDefault',\n", | |
| " 'rcdefaults',\n", | |
| " 'real',\n", | |
| " 'real_if_close',\n", | |
| " 'rec',\n", | |
| " 'rec2csv',\n", | |
| " 'rec_append_fields',\n", | |
| " 'rec_drop_fields',\n", | |
| " 'rec_join',\n", | |
| " 'recarray',\n", | |
| " 'recfromcsv',\n", | |
| " 'recfromtxt',\n", | |
| " 'reciprocal',\n", | |
| " 'record',\n", | |
| " 'register_cmap',\n", | |
| " 'relativedelta',\n", | |
| " 'remainder',\n", | |
| " 'repeat',\n", | |
| " 'require',\n", | |
| " 'reshape',\n", | |
| " 'resize',\n", | |
| " 'restoredot',\n", | |
| " 'result_type',\n", | |
| " 'rfft',\n", | |
| " 'rfft2',\n", | |
| " 'rfftn',\n", | |
| " 'rgrids',\n", | |
| " 'right_shift',\n", | |
| " 'rint',\n", | |
| " 'rk4',\n", | |
| " 'rms_flat',\n", | |
| " 'roll',\n", | |
| " 'rollaxis',\n", | |
| " 'roots',\n", | |
| " 'rot90',\n", | |
| " 'round_',\n", | |
| " 'row_stack',\n", | |
| " 'rrule',\n", | |
| " 's_',\n", | |
| " 'safe_eval',\n", | |
| " 'sample',\n", | |
| " 'save',\n", | |
| " 'savefig',\n", | |
| " 'savetxt',\n", | |
| " 'savez',\n", | |
| " 'savez_compressed',\n", | |
| " 'sca',\n", | |
| " 'scatter',\n", | |
| " 'sci',\n", | |
| " 'sctype2char',\n", | |
| " 'sctypeDict',\n", | |
| " 'sctypeNA',\n", | |
| " 'sctypes',\n", | |
| " 'searchsorted',\n", | |
| " 'seed',\n", | |
| " 'segments_intersect',\n", | |
| " 'select',\n", | |
| " 'semilogx',\n", | |
| " 'semilogy',\n", | |
| " 'set_cmap',\n", | |
| " 'set_numeric_ops',\n", | |
| " 'set_printoptions',\n", | |
| " 'set_state',\n", | |
| " 'set_string_function',\n", | |
| " 'set_trace',\n", | |
| " 'setbufsize',\n", | |
| " 'setdiff1d',\n", | |
| " 'seterr',\n", | |
| " 'seterrcall',\n", | |
| " 'seterrobj',\n", | |
| " 'setp',\n", | |
| " 'setxor1d',\n", | |
| " 'shape',\n", | |
| " 'short',\n", | |
| " 'show',\n", | |
| " 'show_config',\n", | |
| " 'shuffle',\n", | |
| " 'sign',\n", | |
| " 'signbit',\n", | |
| " 'signedinteger',\n", | |
| " 'silent_list',\n", | |
| " 'sin',\n", | |
| " 'sinc',\n", | |
| " 'single',\n", | |
| " 'singlecomplex',\n", | |
| " 'sinh',\n", | |
| " 'size',\n", | |
| " 'slogdet',\n", | |
| " 'slopes',\n", | |
| " 'solve',\n", | |
| " 'sometrue',\n", | |
| " 'sort',\n", | |
| " 'sort_complex',\n", | |
| " 'source',\n", | |
| " 'spacing',\n", | |
| " 'specgram',\n", | |
| " 'spectral',\n", | |
| " 'split',\n", | |
| " 'spring',\n", | |
| " 'spy',\n", | |
| " 'sqrt',\n", | |
| " 'square',\n", | |
| " 'squeeze',\n", | |
| " 'standard_cauchy',\n", | |
| " 'standard_exponential',\n", | |
| " 'standard_gamma',\n", | |
| " 'standard_normal',\n", | |
| " 'standard_t',\n", | |
| " 'std',\n", | |
| " 'stem',\n", | |
| " 'step',\n", | |
| " 'stineman_interp',\n", | |
| " 'str_',\n", | |
| " 'string0',\n", | |
| " 'string_',\n", | |
| " 'strpdate2num',\n", | |
| " 'subplot',\n", | |
| " 'subplot2grid',\n", | |
| " 'subplot_tool',\n", | |
| " 'subplots',\n", | |
| " 'subplots_adjust',\n", | |
| " 'subtract',\n", | |
| " 'sum',\n", | |
| " 'summer',\n", | |
| " 'suptitle',\n", | |
| " 'svd',\n", | |
| " 'swapaxes',\n", | |
| " 'switch_backend',\n", | |
| " 'sys',\n", | |
| " 'table',\n", | |
| " 'take',\n", | |
| " 'tan',\n", | |
| " 'tanh',\n", | |
| " 'tensordot',\n", | |
| " 'tensorinv',\n", | |
| " 'tensorsolve',\n", | |
| " 'test',\n", | |
| " 'text',\n", | |
| " 'thetagrids',\n", | |
| " 'tick_params',\n", | |
| " 'ticklabel_format',\n", | |
| " 'tight_layout',\n", | |
| " 'tile',\n", | |
| " 'timedelta64',\n", | |
| " 'timedelta_',\n", | |
| " 'timeinteger',\n", | |
| " 'title',\n", | |
| " 'trace',\n", | |
| " 'transpose',\n", | |
| " 'trapz',\n", | |
| " 'tri',\n", | |
| " 'triangular',\n", | |
| " 'tricontour',\n", | |
| " 'tricontourf',\n", | |
| " 'tril',\n", | |
| " 'tril_indices',\n", | |
| " 'tril_indices_from',\n", | |
| " 'trim_zeros',\n", | |
| " 'tripcolor',\n", | |
| " 'triplot',\n", | |
| " 'triu',\n", | |
| " 'triu_indices',\n", | |
| " 'triu_indices_from',\n", | |
| " 'true_divide',\n", | |
| " 'trunc',\n", | |
| " 'twinx',\n", | |
| " 'twiny',\n", | |
| " 'typeDict',\n", | |
| " 'typeNA',\n", | |
| " 'typecodes',\n", | |
| " 'typename',\n", | |
| " 'ubyte',\n", | |
| " 'ufunc',\n", | |
| " 'uint',\n", | |
| " 'uint0',\n", | |
| " 'uint16',\n", | |
| " 'uint32',\n", | |
| " 'uint64',\n", | |
| " 'uint8',\n", | |
| " 'uintc',\n", | |
| " 'uintp',\n", | |
| " 'ulonglong',\n", | |
| " 'unicode0',\n", | |
| " 'unicode_',\n", | |
| " 'uniform',\n", | |
| " 'union1d',\n", | |
| " 'unique',\n", | |
| " 'unpackbits',\n", | |
| " 'unravel_index',\n", | |
| " 'unsignedinteger',\n", | |
| " 'unwrap',\n", | |
| " 'usage',\n", | |
| " 'use_fastnumpy',\n", | |
| " 'ushort',\n", | |
| " 'vander',\n", | |
| " 'var',\n", | |
| " 'vdot',\n", | |
| " 'vector_lengths',\n", | |
| " 'vectorize',\n", | |
| " 'vlines',\n", | |
| " 'void',\n", | |
| " 'void0',\n", | |
| " 'vonmises',\n", | |
| " 'vsplit',\n", | |
| " 'vstack',\n", | |
| " 'waitforbuttonpress',\n", | |
| " 'wald',\n", | |
| " 'warnings',\n", | |
| " 'weibull',\n", | |
| " 'where',\n", | |
| " 'who',\n", | |
| " 'window_hanning',\n", | |
| " 'window_none',\n", | |
| " 'winter',\n", | |
| " 'xcorr',\n", | |
| " 'xlabel',\n", | |
| " 'xlim',\n", | |
| " 'xscale',\n", | |
| " 'xticks',\n", | |
| " 'ylabel',\n", | |
| " 'ylim',\n", | |
| " 'yscale',\n", | |
| " 'yticks',\n", | |
| " 'zeros',\n", | |
| " 'zeros_like',\n", | |
| " 'zipf']" | |
| ] | |
| } | |
| ], | |
| "prompt_number": 52 | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": [], | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [] | |
| } | |
| ], | |
| "metadata": {} | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment