From 6a8318d4faf12e4ac3770ca6d1f252fc6c79be85 2012-06-06 05:00:39 From: MinRK Date: 2012-06-06 05:00:39 Subject: [PATCH] %qtconsole implied bind_kernel on engines --- diff --git a/IPython/zmq/zmqshell.py b/IPython/zmq/zmqshell.py index 6f396f7..5be8f54 100644 --- a/IPython/zmq/zmqshell.py +++ b/IPython/zmq/zmqshell.py @@ -420,6 +420,16 @@ class KernelMagics(Magics): Useful for connecting a qtconsole to running notebooks, for better debugging. """ + + # %qtconsole should imply bind_kernel for engines: + try: + from IPython.parallel import bind_kernel + except ImportError: + # technically possible, because parallel has higher pyzmq min-version + pass + else: + bind_kernel() + try: p = connect_qtconsole(argv=arg_split(arg_s, os.name=='posix')) except Exception as e: