fixed issue 1442, by adding defaults to msg
making it PEP8 compliant
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.
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.
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]:
Add script to test pull request
Fix sys.path missing '' as first entry in `ipython kernel`.

The comment is copied from the corresponding code in TerminalIPythonApp.

Closes #1240.
Print missing libraries and platform.
prompt_count should be unconditional in pyout messages
PR tester can now post results to Github as a comment.
Move sys.path.insert(0, '') from subclasses to InteractiveShellApp
IPYTHON_DIR -> IPYTHONDIR in comments and documentation
Prefer IPYTHONDIR over IPYTHON_DIR.
Merge pull request #1689 from bfroehle/_1240_ipython_kernel_sys_path

Fix sys.path missing '' as first entry in `ipython kernel`.

Adds init_path to InteractiveShellApp, to avoid future entry points having the same omission.

closes #1240