code: def custom_showtraceback(
      self,
      exc_tuple=None,
      filename=None,
      tb_offset=None,
      exception_only=False,
      running_compiled_code=False,
  ):
      
      self.default_showtraceback(
          exc_tuple,
          filename,
          tb_offset,
          exception_only=True,
          running_compiled_code=running_compiled_code,
      )
docs: Custom showtraceback for monkey-patching IPython's InteractiveShell
  
      https://stackoverflow.com/questions/1261668/cannot-override-sys-excepthook