for install enter string:
$ pip install "ipython[all]"
in the work catalog enter:
$ iptest notebook
$ pip install "ipython[all]"
in the work catalog enter:
$ iptest notebook
easy tutorial:
https://www.youtube.com/watch?v=H6dLGQw9yFQ# easy function print list of the module attributes
# in the readable form
def print_module_attr(module, step_in=7):
attr_list = dir(module)
try:
num_line = int(ceil( len(attr_list)/step_in ))
for i in range(num_line):
print attr_list[i*step_in: (i+1)*step_in]
except ValueError as e:
print 'step_in must be not zero,\n error: {}'.format(e)
return
except TypeError as e:
print 'step_in must be int type,\n error: {}'.format(e)
return
def test_print_module_attr():
import os
print_module_attr(os, 8)
temp = 'test'; print temp
print_module_attr(temp, 8)
temp = 1; print temp
print_module_attr(temp, 8)
import os; print '0.003'
print_module_attr(os, 0.003)
print '1, 3'
print_module_attr(1, 3)
test_print_module_attr()
>>> ['F_OK', 'O_APPEND', 'O_BINARY', 'O_CREAT', 'O_EXCL', 'O_NOINHERIT', 'O_RANDOM', 'O_RDONLY']
['O_RDWR', 'O_SEQUENTIAL', 'O_SHORT_LIVED', 'O_TEMPORARY', 'O_TEXT', 'O_TRUNC', 'O_WRONLY', 'P_DETACH']
['P_NOWAIT', 'P_NOWAITO', 'P_OVERLAY', 'P_WAIT', 'R_OK', 'SEEK_CUR', 'SEEK_END', 'SEEK_SET']
['TMP_MAX', 'UserDict', 'W_OK', 'X_OK', '_Environ', '__all__', '__builtins__', '__doc__']
['__file__', '__name__', '__package__', '_copy_reg', '_execvpe', '_exists', '_exit', '_get_exports_list']
['_make_stat_result', '_make_statvfs_result', '_pickle_stat_result', '_pickle_statvfs_result', 'abort', 'access', 'altsep', 'chdir']
['chmod', 'close', 'closerange', 'curdir', 'defpath', 'devnull', 'dup', 'dup2']
['environ', 'errno', 'error', 'execl', 'execle', 'execlp', 'execlpe', 'execv']
['execve', 'execvp', 'execvpe', 'extsep', 'fdopen', 'fstat', 'fsync', 'getcwd']
['getcwdu', 'getenv', 'getpid', 'isatty', 'kill', 'linesep', 'listdir', 'lseek']
['lstat', 'makedirs', 'mkdir', 'name', 'open', 'pardir', 'path', 'pathsep']
['pipe', 'popen', 'popen2', 'popen3', 'popen4', 'putenv', 'read', 'remove']
['removedirs', 'rename', 'renames', 'rmdir', 'sep', 'spawnl', 'spawnle', 'spawnv']
['spawnve', 'startfile', 'stat', 'stat_float_times', 'stat_result', 'statvfs_result', 'strerror', 'sys']
['system', 'tempnam', 'times', 'tmpfile', 'tmpnam', 'umask', 'unlink', 'unsetenv']
['urandom', 'utime', 'waitpid', 'walk', 'write']
test
['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__format__', '__ge__']
['__getattribute__', '__getitem__', '__getnewargs__', '__getslice__', '__gt__', '__hash__', '__init__', '__le__']
['__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__']
['__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '_formatter_field_name_split']
['_formatter_parser', 'capitalize', 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs']
['find', 'format', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace']
['istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'partition', 'replace']
['rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines']
['startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
1
['__abs__', '__add__', '__and__', '__class__', '__cmp__', '__coerce__', '__delattr__', '__div__']
['__divmod__', '__doc__', '__float__', '__floordiv__', '__format__', '__getattribute__', '__getnewargs__', '__hash__']
['__hex__', '__index__', '__init__', '__int__', '__invert__', '__long__', '__lshift__', '__mod__']
['__mul__', '__neg__', '__new__', '__nonzero__', '__oct__', '__or__', '__pos__', '__pow__']
['__radd__', '__rand__', '__rdiv__', '__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__']
['__rlshift__', '__rmod__', '__rmul__', '__ror__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__']
['__rtruediv__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__']
['__trunc__', '__xor__', 'bit_length', 'conjugate', 'denominator', 'imag', 'numerator', 'real']
0.003
step_in must be int type,
error: range() integer step argument expected, got float.
1, 3
['__abs__', '__add__', '__and__']
['__class__', '__cmp__', '__coerce__']
['__delattr__', '__div__', '__divmod__']
['__doc__', '__float__', '__floordiv__']
['__format__', '__getattribute__', '__getnewargs__']
['__hash__', '__hex__', '__index__']
['__init__', '__int__', '__invert__']
['__long__', '__lshift__', '__mod__']
['__mul__', '__neg__', '__new__']
['__nonzero__', '__oct__', '__or__']
['__pos__', '__pow__', '__radd__']
['__rand__', '__rdiv__', '__rdivmod__']
['__reduce__', '__reduce_ex__', '__repr__']
['__rfloordiv__', '__rlshift__', '__rmod__']
['__rmul__', '__ror__', '__rpow__']
['__rrshift__', '__rshift__', '__rsub__']
['__rtruediv__', '__rxor__', '__setattr__']
['__sizeof__', '__str__', '__sub__']
['__subclasshook__', '__truediv__', '__trunc__']
['__xor__', 'bit_length', 'conjugate']
['denominator', 'imag', 'numerator']
['real']