title: How to format traceback objects in Python
body: <p>I have a traceback object that I want to show in the nice format I get when calling <code>traceback.format_exc()</code>.</p>
  
  <p>Is there a builtin function for this? Or a few lines of code?</p>