class_docstr: Base class for Jupyter applications
docstr: Launch an instance of a Jupyter Application
docstr_tok: ["Launch","an","instance","of","a","Jupyter","Application"]
code: def launch_instance(cls, argv: t.Any = None, **kwargs: t.Any) -> None:
      """Launch an instance of a Jupyter Application"""
      # Ensure an event loop is set before any other code runs.
      loop = ensure_event_loop()
      try:
          super().launch_instance(argv=argv, **kwargs)
      except NoStart:
          return
      loop.close()
  
imports: from __future__ import annotations
  import logging
  import os
  import sys
  import typing
  from copy import deepcopy
  from pathlib import Path
  from shutil import which
  from traitlets import Bool, List, Unicode, observe
  from traitlets.config.application import Application, catch_config_error
  from traitlets.config.loader import ConfigFileNotFound
  from .paths import allow_insecure_writes, issue_insecure_write_warning, jupyter_config_dir, jupyter_config_path, jupyter_data_dir, jupyter_path, jupyter_runtime_dir
  from .utils import ensure_dir_exists, ensure_event_loop
label_desc: Use image node_id 16 for calling the JupyterApp obj's underlying member method code with example usage: obj.launch_instance(cls, argv) without return types