telemetry
telemetry copied to clipboard
Installing the extension
I was trying to install the labextension locally and it seems like the package.json
is out of date or incomplete. Maybe the javascript part of the extension can be tested on circle, too.
Yeah, the JS side of this package hasn't been developed (yet). Right now, this is just a Python library. It's coming soon though! 😃
Cool. What is the minimal thing I need to do start logging events?
Here are instructions to getting telemetry working with jupyter/notebook.
- Clone and install this repo.
- Fetch this branch of notebook.
- Add this configuration to your
jupyter_notebook_config.py
(or however you store/load your config).import logging # List where you want your events to go. eventlog_filepath = 'events.log' c.EventLog.handlers = [ logging.FileHandler(eventlog_filepath) ] # List which events get logged. c.EventLog.allowed_schemas = [ 'eventlogging.jupyter.org/notebook/contentsmanager-actions' ]
- Start jupyter notebook and navigate directories/open+close ntoebooks.
The current implementation logs events from the contents service (we still need to develope schemas for other services).
I'll work on the README today to give examples on how to integrate this library with other tools.