code: def loop_qt4(kernel):
      """Start a kernel with PyQt4 event loop integration."""
  
      from IPython.lib.guisupport import get_app_qt4
  
      kernel.app = get_app_qt4([" "])
      kernel.app.setQuitOnLastWindowClosed(False)
  
      for s in kernel.shell_streams:
          _notify_stream_qt(kernel, s)
  
      _loop_qt(kernel.app)
  
imports: import os
  import sys
  import platform
  import zmq
  from distutils.version import LooseVersion
  from traitlets.config.application import Application
  from IPython.utils import io
label_desc: Use image node_id 5 for calling a global function with example usage: loop_qt4(kernel) without return types