Show More
@@ -420,6 +420,16 b' class KernelMagics(Magics):' | |||||
420 | Useful for connecting a qtconsole to running notebooks, for better |
|
420 | Useful for connecting a qtconsole to running notebooks, for better | |
421 | debugging. |
|
421 | debugging. | |
422 | """ |
|
422 | """ | |
|
423 | ||||
|
424 | # %qtconsole should imply bind_kernel for engines: | |||
|
425 | try: | |||
|
426 | from IPython.parallel import bind_kernel | |||
|
427 | except ImportError: | |||
|
428 | # technically possible, because parallel has higher pyzmq min-version | |||
|
429 | pass | |||
|
430 | else: | |||
|
431 | bind_kernel() | |||
|
432 | ||||
423 | try: |
|
433 | try: | |
424 | p = connect_qtconsole(argv=arg_split(arg_s, os.name=='posix')) |
|
434 | p = connect_qtconsole(argv=arg_split(arg_s, os.name=='posix')) | |
425 | except Exception as e: |
|
435 | except Exception as e: |
General Comments 0
You need to be logged in to leave comments.
Login now