code: def render_summary(self, include_title=True):
          
          title = ""
          classes = ["traceback"]
          if not self.frames:
              classes.append("noframe-traceback")
              frames = []
          else:
              library_frames = sum(frame.is_library for frame in self.frames)
              mark_lib = 0 < library_frames < len(self.frames)
              frames = [group.render(mark_lib=mark_lib) for group in self.groups]
  
          if include_title:
              if self.is_syntax_error:
                  title = u"Syntax Error"
              else:
                  title = u"Traceback <em>(most recent call last)</em>:"
  
          if self.is_syntax_error:
              description_wrapper = u"<pre class=syntaxerror>%s</pre>"
          else:
              description_wrapper = u"<blockquote>%s</blockquote>"
  
          return SUMMARY_HTML % {
              "classes": u" ".join(classes),
              "title": u"<h3>%s</h3>" % title if title else u"",
              "frames": u"\n".join(frames),
              "description": description_wrapper % escape(self.exception),
          }
docs: Render the traceback for the interactive console.