Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing the extension #22

Open
tonyfast opened this issue Aug 5, 2019 · 3 comments
Open

Installing the extension #22

tonyfast opened this issue Aug 5, 2019 · 3 comments

Comments

@tonyfast
Copy link

tonyfast commented Aug 5, 2019

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.

@Zsailer
Copy link
Member

Zsailer commented Aug 5, 2019

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! 😃

@tonyfast
Copy link
Author

tonyfast commented Aug 5, 2019

Cool. What is the minimal thing I need to do start logging events?

@Zsailer
Copy link
Member

Zsailer commented Aug 5, 2019

Here are instructions to getting telemetry working with jupyter/notebook.

  1. Clone and install this repo.
  2. Fetch this branch of notebook.
  3. 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'
     ]
  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants