fixed issue 1442, by adding defaults to msg
making it PEP8 compliant
Embed image as default

Embed image as default to work in qtconsole unless url kwarg is set
explicitely

fixes #1614
Image embed vs not embed notebook example

consist of 2 images, same URL, display in the notebook, one witih embed=True
the other with embed=False,

Chosen url is google doodle url which should show :
    the first, embeded : google doodle of
    robert doisneau's commemoration day

    the other, with url kwarg : google doodle of current the day
fix english
move image example in notebbok tour
rm Imae example notebook
fix embedded with 2d and more grammar
fix ponctuation
Add `wait` optional argument to `hooks.editor`

subprocess.Popen is used instead of os.system in order to spawn editor
process in non-blocking manner.
fix grammar

Thanks Min for correcting me every time, hopefully I'll become better in
writing English
substitute open(...) for file(...)

The file type is gone in py3k, and all file objects are under the new io hierarchy.  Since open(...) is supported
on both Python 2 and 3, use it instead of file in all instances. This isn't caught by 2to3.
pythonw in py3k sets std{in,out,err} to None

The print statement works without error, even though the stdio file objects are instances
of None. Since they are instances of None, however, the encoding attribute will not
exist, so protect blind attribute access of std{in,out,err} by using a new function, get_stream_enc.
ensure a fallback exists, so use local std{in,out,err}

Since IOStream instances require a valid fallback stream, use the locally defined std{in,out,err}
instead of sys.std{in,out,err} in IOTerm's __init__ method.  Note that the local std{in,out,err}
are IOStream instances as well, that fall back to os.devnull
moved getdefaultencoding from text to py3compat
remove unnecessary function call
Feedback from pull request #1245
only get the default encoding one time

for the encode/decode functions, use a module-level cached value of the
default encoding given by encoding.getdefaultencoding(). This presumes
the value returned by getdefaultencoding isn't going to change over time.
works->work
add qt config option to clear_on_kernel_restart

Previously, restarting a kernel in the qtconsole always cleared the
entire session. Since qtconsole has a %clear command, it makes sense to
allow users to decouple the two activities - the restarting of kernels,
and clearing the console.  This commit adds a configuration option which
allows for the restarting of kernels without losing console history. The
default value for clear_on_kernel_restart is set to True to stay
consistent with the way things worked before this functionality was
added.

To test, run:

    ipython qtconsole --IPythonWidget.clear_on_kernel_restart=False

Here's what it looks like when the user restarts the kernel on In[3]:

 Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
 Type "copyright", "credits" or "license" for more information.

 IPython 0.13.dev -- 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.
 %guiref   -> A brief reference about the graphical user interface.

 In [1]: 0x42
 Out[1]: 66

 In [2]: 042
 Out[2]: 34

 In [3]: # restarting kernel...
 #------------------------------------------
 In [1]: