class_docstr: Customizable crash handlers for IPython applications.
  
  Instances of this class provide a :meth:`__call__` method which can be
  used as a ``sys.excepthook``.  The :meth:`__call__` signature is::
  
      def __call__(self, etype, evalue, etb)
class_docstr_tok: ["Customizable","crash","handlers","for","IPython","applications",".","Instances","of","this","class","provide","a",":","meth",":","`","__call__","`","method","which","can","be","used","as","a","``","sys.excepthook","``",".","The",":","meth",":","`","__call__","`","signature","is",":",":","def","__call__","(","self",",","etype",",","evalue",",","etb",")"]
docstr: Create a new crash handler
  
  Parameters
  ----------
  app : Application
      A running :class:`Application` instance, which will be queried at
      crash time for internal information.
  contact_name : str
      A string with the name of the person to contact.
  contact_email : str
      A string with the email address of the contact.
  bug_tracker : str
      A string with the URL for your project's bug tracker.
  show_crash_traceback : bool
      If false, don't print the crash traceback on stderr, only generate
      the on-disk report
  call_pdb
      Whether to call pdb on crash
  
  Attributes
  ----------
  These instances contain some non-argument attributes which allow for
  further customization of the crash handler's behavior. Please see the
  source for further details.
docstr_tok: ["Create","a","new","crash","handler","Parameters","--","--","--","--","--","app",":","Application","A","running",":","class",":","`","Application","`","instance",",","which","will","be","queried","at","crash","time","for","internal","information",".","contact_name",":","str","A","string","with","the","name","of","the","person","to","contact",".","contact_email",":","str","A","string","with","the","email","address","of","the","contact",".","bug_tracker",":","str","A","string","with","the","URL","for","your","project","'s","bug","tracker",".","show_crash_traceback",":","bool","If","false",",","do","n't","print","the","crash","traceback","on","stderr",",","only","generate","the","on-disk","report","call_pdb","Whether","to","call","pdb","on","crash","Attributes","--","--","--","--","--","These","instances","contain","some","non-argument","attributes","which","allow","for","further","customization","of","the","crash","handler","'s","behavior",".","Please","see","the","source","for","further","details","."]
code: def __init__(
      self,
      app,
      contact_name: Optional[str] = None,
      contact_email: Optional[str] = None,
      bug_tracker: Optional[str] = None,
      show_crash_traceback: bool = True,
      call_pdb: bool = False,
  ):
      """Create a new crash handler
  
      Parameters
      ----------
      app : Application
          A running :class:`Application` instance, which will be queried at
          crash time for internal information.
      contact_name : str
          A string with the name of the person to contact.
      contact_email : str
          A string with the email address of the contact.
      bug_tracker : str
          A string with the URL for your project's bug tracker.
      show_crash_traceback : bool
          If false, don't print the crash traceback on stderr, only generate
          the on-disk report
      call_pdb
          Whether to call pdb on crash
  
      Attributes
      ----------
      These instances contain some non-argument attributes which allow for
      further customization of the crash handler's behavior. Please see the
      source for further details.
  
      """
      self.crash_report_fname = "Crash_report_%s.txt" % app.name
      self.app = app
      self.call_pdb = call_pdb
      # self.call_pdb = True # dbg
      self.show_crash_traceback = show_crash_traceback
      self.info = dict(
          app_name=app.name,
          contact_name=contact_name,
          contact_email=contact_email,
          bug_tracker=bug_tracker,
          crash_report_fname=self.crash_report_fname,
      )
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/crashhandler.py
imports: import sys
  import traceback
  from pprint import pformat
  from pathlib import Path
  from IPython.core import ultratb
  from IPython.core.release import author_email
  from IPython.utils.sysinfo import sys_info
  from IPython.utils.py3compat import input
  from IPython.core.release import __version__
  from typing import Optional
label_desc: Use image node_id 1 to create a new CrashHandler object from inherited base classes: object with example: obj = CrashHandler(app, contact_name, contact_email, bug_tracker, show_crash_traceback, call_pdb)