jupyterlab-telemetry
A JupyterLab extension for logging and telemetry of usage data
Prerequisites
- JupyterLab 1.0+
Installation
jupyter labextension install @jupyterlab/jupyterlab-telemetry
Usage
Define handlers that can receive events from the EventLog
;
Create an instance of the EventLog and configure the handler and other options from EventLog.IOptions
;
Send custom events via the recordEvents
interface. If the commandRegistry
instance was passed, then the EventLog
will subscribe to commands executed in the JupyterLab application and send the whitelisted ones to each configured handler.
el.recordEvent;
Dispose the event log after use
el.dispose;
Development
For a development install, do the following in the repository directory:
yarnyarn buildjupyter labextension install .
To rebuild the package and the JupyterLab app:
yarn buildjupyter lab build
To auto-build the package and JupyterLab on any change:
# In one terminal yarn watch # In second terminal jupyter lab --watch