Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script src="https://rawgit.com/lmcnulty4/d3dragSelector/master/dragSelector.js"></script>
<style>
.selector {
fill: blue;
fill-opacity: 0.3;
stroke: blue;
def print_traceback(e):
"""
Prints a formatted traceback of the given exception, including filename, line number, function name, code line,
and local variables for each frame in the traceback stack.
Args:
e (Exception): The exception object for which the traceback should be printed.
Returns:
None