def __init__(self, customBanner=None, *args, **kwargs):
    super().__init__(*args, **kwargs)
    if (customBanner is not None):
        self.banner = customBanner
    self.font_size = 6
    self.kernel_manager = kernel_manager = QtInProcessKernelManager()
    kernel_manager.start_kernel(show_banner=False)
    kernel_manager.kernel.gui = 'qt'
    self.kernel_client = kernel_client = self.kernel_manager.client()
    kernel_client.start_channels()

    def stop():
        kernel_client.stop_channels()
        kernel_manager.shutdown_kernel()
        guisupport.get_app_qt().exit()
    self.exit_requested.connect(stop)
def __init__(self, customBanner=None, *args, **kwargs):
    super().__init__(*args, **kwargs)
    if (customBanner is not None):
        self.banner = customBanner
    self.font_size = 6
    self.kernel_manager = kernel_manager = QtInProcessKernelManager()
    kernel_manager.start_kernel(show_banner=False)
    kernel_manager.kernel.gui = 'qt'
    self.kernel_client = kernel_client = self.kernel_manager.client()
    kernel_client.start_channels()

    def stop():
        kernel_client.stop_channels()
        kernel_manager.shutdown_kernel()
        guisupport.get_app_qt().exit()
    self.exit_requested.connect(stop)