Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def load_jupyter_server_extension(nbapp):
"""
Called during notebook start
"""
api_url= url_path_join(nbapp.web_app.settings['base_url'], '/api/nbresuse/v1')
nbapp.web_app.add_handlers('.*', [
(api_url, MetricsHandler, {'nbapp': nbapp})
])