browser-wakatime icon indicating copy to clipboard operation
browser-wakatime copied to clipboard

Detect Jupyter IDE and set editor to Jupyter

Open arose13 opened this issue 5 years ago • 4 comments

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?

arose13 avatar Sep 02 '19 18:09 arose13

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

gandarez avatar Sep 21 '20 16:09 gandarez

@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.

llinfeng avatar Oct 16 '20 00:10 llinfeng

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

alanhamlett avatar Jun 09 '21 16:06 alanhamlett

Part of #47.

alanhamlett avatar Apr 05 '23 09:04 alanhamlett