How to use the nbresuse.__init__.MetricsHandler function in nbresuse

To help you get started, we’ve selected a few nbresuse examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yuvipanda / nbresuse / nbresuse / __init__.py View on Github external
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})
    ])

nbresuse

Simple Jupyter extension to show how much resources (RAM) your notebook is using

BSD-2-Clause
Latest version published 4 years ago

Package Health Score

58 / 100
Full package analysis

Similar packages