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

Detect Jupyter IDE and set editor to Jupyter #82

Open
arose13 opened this issue Sep 2, 2019 · 4 comments
Open

Detect Jupyter IDE and set editor to Jupyter #82

arose13 opened this issue Sep 2, 2019 · 4 comments

Comments

@arose13
Copy link

arose13 commented Sep 2, 2019

I'm am a data scientist and 80% of my coding time is spent in Jupyter IDE which runs in a browser. It is also the only websites I have whitelisted. Is there any way to prevent WakaTime from considering this browsing?

@gandarez
Copy link
Member

@arose13 have you considered coding using VSCODE instead of Chrome? In addition we've been planning to create a plugin for Jupyter IDE.

@llinfeng
Copy link

@gandarez I think the current WakaTime Chrome extension is doing a great job, assuming one is launching the Jupyter (lab) server from a local git repository. Here is what I was about to post in a separate issue.


To my surprise, the WakaTime Chrome extension should track down the git-repo from which the Jupyter server is launched! How nice! I did not set special Custom rules for tracking a new GitHub repo, yet, the 5 minutes of time spent in a Jupyter Lab notebook was counted towards this new project. I think this is reproducible with a bare-minimal setup. Here is mine:

To better account for the browser time, I use a dedicated Chrome "profile" that only has two extensions installed, one is Ghost text and the other is WakaTime. Per my logged time, the Jupyter Lab session is actually hosted on another local machine, and I used port-forwarding to access it. I do have WakaTime CLI installed on the host machine.


I assume the WakaTime Chrome extension fetches something deep in the Jupyter lab page, as it has been granted Read and change all your data on the websites you visit privileges in Chrome. I am pretty sure it was the Chrome extension that was sending the heartbeats, as 0 "browser time" was logged before I installed the Chrome extension.

@alanhamlett
Copy link
Member

alanhamlett commented Jun 9, 2021

You can change category to Coding by matching category Browsing using custom rules.

@alanhamlett alanhamlett changed the title Coding is considered Browsing Detect Jupyter IDE and set editor to Jupyter Apr 5, 2023
@alanhamlett
Copy link
Member

Part of #47.

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

No branches or pull requests

5 participants