Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get(self):
from pixiedust.display.display import Display
class PixieDustDisplay(Display):
def doRender(self, handlerId):
pass
self.set_header('Content-Type', 'text/javascript' if self.loadjs else 'text/css')
disp = PixieDustDisplay({"gateway":"true"}, None)
disp.callerText = "display(None)"
self.write(disp.renderTemplate("pixiedust.js" if self.loadjs else "pixiedust.css"))
self.finish()