Giter VIP home page Giter VIP logo

review-heatmap's Introduction

Review Heatmap for Anki


Your learning performance at a glance

Adds a heatmap graph to Anki's main window which visualizes past and future card review activity, similar to the contribution view on GitHub. Information on the current streak is displayed alongside the heatmap. Clicking on an item shows the cards reviewed on that day.

Video Demonstration

General Overview Customization
YouTube: Anki add-on: Review Heatmap YouTube: Add-on Update: Review Heatmap

(Make sure to enable closed-captions for comments on the demonstrated features)

Installation

AnkiWeb

The easiest way to install Review Heatmap is through AnkiWeb.

Manual installation

  1. Download the latest .ankiaddon file from the releases tab (you might need to click on Assets below the description to reveal the download links)
  2. Open the folder where your downloads are located and double-click on the downloaded .ankiaddon file.
  3. Follow the installation prompt and restart Anki if it asks you to

Documentation

The use of the add-on is documented in the Wiki section and a series of video tutorials on YouTube. More information may also be found in the AnkiWeb description.

Building

Review Heatmap's build system recently underwent a number of changes. Updated build instructions will soon be added here. Please stand by.

Contributing

Contributions are welcome! Please review the contribution guidelines on how to:

  • Report issues
  • File pull requests
  • Support the project as a non-developer

License and Credits

Review Heatmap is Copyright © 2016-2022 Aristotelis P. (Glutanimate)

Inspired by GitHub's contribution calendar and Forecast graph on Overview page by Steve AW.

Ships with the following javascript libraries:

  • d3.js (v3.5.17), (c) Mike Bostock, BSD license
  • cal-heatmap (v3.6.2), (c) Wan Qi Chen, MIT license

Review Heatmap is free and open-source software. The add-on code that runs within Anki is released under the GNU AGPLv3 license, extended by a number of additional terms. For more information please see the LICENSE file that accompanied this program.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.


The continued development of this add-on is made possible
thanks to my Patreon and Ko-Fi supporters.
You guys rock ❤️ !

review-heatmap's People

Contributors

glutanimate avatar rapptz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

review-heatmap's Issues

The next button & today button not working on Anki 2.1.15

Problem description

Installation was smooth. On the timeline, the back button goes back a year. Clicking on today button or the next year button does not have any action. The timeline remains on where it is. The back button to go to the previous year works fine.

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • [] My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.15.1
Flags: frz=True ao=True sv=1

Add-ons:

Image Occlusion Enhanced for Anki 21 alpha
Night Mode
Review Heatmap

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: MacOS
  • version:Catalina

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below: Given above in debug info

Cards added heatmap

A suggestion. I would love to see a heatmap visualisation of cards added. For those of us who don't use shared decks, but craft cards themselves (say, as we learn a language day by day), this visualisation would be as useful and motivational as for reviews. If you don't find this feature fitting into the current add-on, then it could be a fork into a dedicated add-on as well. Really looking forward to having it any way though.

ImportError when starting Anki

*#### Problem description

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?*

I used the correct steps provided on the github download page, which I have listed here:

  1. I am downloading the addon from this link: https://github.com/glutanimate/review-heatmap/releases/tag/v0.7.0-beta.1
  2. I am downloading this file:review-heatmap-release-v0.7.0-beta.1-anki21.zip
  3. I am following these steps: "For Anki 2.1: Extract the archive and move the review_heatmap folder into your add-ons folder (you may find Anki 2.1's add-ons folder by going to Tools → Add-ons → click on an empty part of the add-on list → Click on View Files. Make sure that you are in the addons21 folder. If not, navigate one level up in your file manager to get there)"

After completing all of those steps, this is the image that pops up when I restart anki. The add on is not functional:
image

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Anki 2.1.12 (eef86bf3) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.13.6
Flags: frz=True ao=True sv=1

Add-ons:

Edit Field During Review
Speed Focus Mode auto-alert auto-reveal auto-fail
Answer Confirmation Colorized (disabled)
Special Fields
Image Occlusion Enhanced Alpha for Anki 21
Night Mode
Pop-up Dictionary beta
More Decks Stats and Time Left
Full Screen Toggle
Hierarchical Tags Addon 20  21
Fastbar another toolbar for Anki 21 beta
Customize Sidebar
Load Balanced Scheduler
Progress Bar
Highlight Search Results in the Browser
Customize Keyboard Shortcuts
Button Colours Good Again
Mini Format Pack
ReMemorize Rescheduler with sibling and logging v114
Frozen Fields
True Retention
More Overview Stats 21
Anki Web Browser Selection searching Import texts and images automatically
review_heatmap
If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: HighSierra
  • version: 10.13.6

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

![image](https://user-images.githubusercontent.com/50258435/58927331-2b7da780-871c-11e9-86b5-8c8a13d0f0f3.png)

Heatmap not scrolling to the right

Problem description

Hello,

The heatmap looks ok and shows correct card reviews, but the problem happens in the "Yearly Overview" mode after I scroll left, I cannot scroll back to the right nor use the today button.
You can check it on the video I uploaded here : https://imgur.com/a/oeE25ik.

On thing I found out as well is that if I switch to continuous mode view (the one divided to months), all the buttons seem to work fine.

Not sure if this issue is related, it seemed a bit old. https://github.com/glutanimate/review-heatmap/issues/4#issue-211386702

Checklist

DONE - [x] I've restarted Anki to see if it helps
DONE - [x] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
DONE - [x] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
DONE - [x] I've tried to disable other add-ons to see if there are any interactions present
DONE - [x] My issue disappears when I hold shift while starting Anki.
DONE - [x] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Anki 2.1.13 (3ba55990) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1

Add-ons:

Image Occlusion Enhanced for Anki 21 alpha
load balancer
Night Mode (disabled)
Pop-up Dictionary beta
Zoom 21 (disabled)
Ignore accents in browser search
Fastbar another toolbar for Anki 21 beta
Customize Sidebar
Highlight Search Results in the Browser
Customize Keyboard Shortcuts
Batch Editing
Mini Format Pack
ReMemorize Rescheduler with sibling and logging v114
Frozen Fields
Web Browser - Search selection Import texts and images automatically
bettertags
Review Heatmap

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Windows 10 Home version 1809

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Settings are not saved

When I try to set a longer period for previous reviews and the review forecast, it doesn't remember my settings when I open Anki later.

Cards Due NaN for counts >1000

If I have over 1,000 cards due for a future day hovering the cursor over that day says NaN. If I reviewed 1,000+ today or in the past it shows the exact number, but not for future counts. If I click on the next day's box it will pull up all the due cards, but the hover feature is not working.

Days with reviews being marked as empty

Problem description

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Recently I noticed that there has been a day where I have done 100+ reviews, but the Review Heatmap seems to think I didn't review at all on that day. I looked into the card histories and they are showing that I did a review on the blank day (November 15th in the screenshot below), but the heatmap seems to think otherwise:

anki_2019-11-18_23-49-51

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki. (Tried this, nothing changed)
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Anki 2.1.13 (3ba55990) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1

Add-ons:

True Retention by Card Maturity
Review Heatmap
If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Windows 10 and MacOS Catalina
  • version: ^

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

How to install the 2.1 addon

Related issue: #6

Problem: review-heatmap doesn't appear in https://ankiweb.net/shared/addons/2.1.
Trying to install the 2.0 version fails.

I'm a bit confused, because other issues like #9 and #31 imply that other users are using this add-on on 2.1, yet I haven't seen the release statement.
If review-heatmap can indeed be used with v2.1, would you mind pointing me to the installation steps?

Thank you for making this addon.

Restore night mode color theme

Had to recently force-push due to level of divergence between origin/master and local changes. The recent Night Mode PR (#17) got lost in the process. Make sure to restore it, adjusting it to the new way of loading cal-heatmap's CSS file.

Option to exclude certain decks from heatmap and stats

Hi Aristotelis, thanks for this great add-on!
I'm using the incremental reading add-on (specifically this version, actually), and I would like the review heatmap to only concern my non-IR deck (since reading a portion of an article doesn't count as a review in my opinion).
Perhaps other users also have 'special' decks (such as test decks, for example).
This is obviously going to concern few users, but I also think implementing it must be rather fast.
What do you think about it?

Add support for tracking >365 days of progress

The addon currently does not track more than 365 days of progress. After a year, the progress stays at 365 consecutive days of reviews and progress is silently removed from the start, day by day.

It would be nice to support more days e.g. up to five years.

daily average shows total cards done

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've checked if anyone else asked this question before by looking through the issue reports.

Your question

my daily average shows the total number of cards I've done altogether instead of an average across the days I've studied, how do I fix this? (med student with zero programming experience)

Cannot download. I followed the instructions and I keep getting the same error saying that it doesn't work whenever I open anki.

Problem description or Feature request

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Checklist

Please replace the space inside the brackets with an x if the following sentences apply to you. Feel free to disregard some of these if you're posting a feature request rather than a bug report.

  • I restarted Anki to see if it helps
  • I verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I tried to disable other add-ons to see if there are any interactions present
  • I checked if anyone reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
  • My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Please open Anki, go to Help → About, look-up two lines, starting with Version: and Qt and copy-paste them below:

Version:
Qt:

Please fill in your OS details (Linux/Mac/Windows, which version):

OS:

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Error message (if any)

If you got an error message, please copy and paste it below:

[paste your error message in here if you got any; otherwise feel free to remove this part]

No Coloration on Heatmap

Hello,
Strange error - been using this addon successfully for long time, but in the middle of the reviews today i got a strange error that an addon had crashed. Unfortunately I exited the the error log, but now heatmap on home screen is not showing any coloration.

Some of the subdecks have the heatmap show coloration, but not all of them.

Attached image of homescreen

image

I've attempted re-installation with no success

Changing "Day Starts" in Anki's scheduling options affects days reviewed, streaks, etc.

Problem description

The old "day start" time in my configuration of Anki was 8am, I changed it 10am and noticed my streak was no longer what it was before, and that many of the days in the heatmap had been affected. It seems to me that changing the day start to a time later than it was set to before (i.e. 8am to 10am) causes the heatmap to no longer recognize reviews that took place before the newly set time (so any reviews that took place before 10am on any of the days I had done reviews in the past, in my case)

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [x ] I've restarted Anki to see if it helps
  • [x ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [x ] I've tried to disable other add-ons to see if there are any interactions present
  • [x ] My issue disappears when I hold shift while starting Anki.
  • [x ] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):


If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:

Version: 2.0.47
Qt 4.8.1 PyQt 4.9.1

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Linux
  • version: x86_64 Linux 5.2.1-arch1-1-ARCH

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
Batch_Note_Editing
PassFail_JP
Review Heatmap
morphman
jp
ResetEZ
No_Penalties_or_Boosting
Creat_Copy_of_Selected_Cards

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

Why not released to Ankiweb?

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've checked if anyone else asked this question before by looking through the issue reports.

Your question

It is easy to install from ankiweb https://ankiweb.net/shared/info/723520343

But seems it is not uploaded by you?

Heatmap stuck at 1 year

Problem description

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

I've done my reps for well over a year in a row now and no matter what I do my current and longest streaks are stuck at 365, when I do my reps for the day they shift to 366 however the next day both will be back to 365. I'd like to be able to track my longest and current streak accurately. Is this a bug or an inherent limitation with Anki?

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [ X] I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [X ] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [X ] I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • [X ] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

OS: Debian Testing

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Version 2.1.9 (ae67c976)
Qt 5.12.1 PyQt 5.11.3
If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS:
  • version:

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

Anki displays this message :

Problem description

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Anki showed an error message before booting

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):


If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS:
  • version:

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

image

Wrong forecast for the next day if I studied after midnight

Problem description

I'm living in UTC+3 timezone. If I study after midnight, Review Heatmap says I have no due cards "the next day" (in Anki's terms; mine's configured to start 7 hours after midnight). Anki's native stats dialog displays a non-zero forecast. I expect the addon to display the same number as Anki's native dialog.

I notice there have been some timezone-related commits lately; 5bdec85 in particular got my attention. I could test that, but I don't see any instructions on how to install the addon from Git, and what the build dependencies are. Can you provide any guidance there? Do I just run make, install missing stuff, and re-iterate until it finishes cleanly?

Checklist

  • I restarted Anki to see if it helps — it didn't help
  • I verified that I use the latest version of the add-on by redownloading it from AnkiWeb — I'm using 0.7.0-beta.1, verified through Tools→Review Heatmap Settings
  • I verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#downloadI'm using a slightly old 2.1.8 (71e0c880) from Debian testing, but I also downloaded 2.1.12 (eef86bf3) from the website, and the bug is still present there
  • I tried to disable other add-ons to see if there are any interactions present — Disabling two other addons I have didn't help
  • I checked if anyone reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
  • My issue is solved when holding shift while starting Anki. — Kinda solved. I want my heatmap, disabling it is not a valid solution :)

Information about your Anki Setup

Version 2.1.8 (71e0c880)
Qt 5.11.3 PyQt 5.11.3

(but also reproducible with 2.1.12 (eef86bf3), which is the latest version from ankiweb.net)

OS: Debian GNU/Linux buster amd64

Screenshot_2019-04-27_01-50-53

Thank you for a great add-on! Nothing motivates me more than graphs, and Review Heatmap is perfect to get me into the "don't break the chain" mindset.

Small tweak that just looks more pleasing

Prerequisite checklist

  • [Y] In case of a bug: Have you tried restarting Anki?
  • [Y] Are you running the latest version of the add-on. Have you redownloaded the add-on from AnkiWeb to make sure?
  • [Y] Did you check the add-on documentation (e.g. AnkiWeb description, Wiki if it exists) for known issues?
  • [Y] Did you perform a cursory search through the existing issue reports?

What is the problem/feature you would like to see fixed/implemented?

so I would like to see this as default
screen shot 2018-08-31 at 10 29 46 pm
but I see this as default
screen shot 2018-08-31 at 10 29 35 pm
and going back to the main deck page/restarting Anki will always show the 2nd screenshot instead of the first. I tried to play around with the setting options but since I am not coding literate I don't know anything about this. Its just a small tweak. looks pleasing to the eye.

[Be as specific as possible. Provide screenshots if you think they can help.]

How can we reproduce the problem?

[What were you doing when the problem occurred?]

  1. [First step]
  2. [Second step]
  3. [and so on...]

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

Reproducible?: [Can you reliably reproduce the issue by following the steps above?]

Version information

Anki
Version 2.0.52
Qt 4.8.2 PyQt 4.9.4

[Please head to HelpAbout Anki and Paste the version string here, e.g.:]

[Version 2.0.47]
[Qt 4.8.1 PyQt 4.9.1]

System

  • Operating system: Mac [Windows/macOS/Linux]
  • Version: High Sierra 10.13.3 [e.g. 10, High Sierra, Ubuntu 18.04]

Add-on considers day 1 and day 2 as single day while calculating daily average. Everything else works fine.

Problem description or Feature request

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Checklist

Please replace the space inside the brackets with an x if the following sentences apply to you. Feel free to disregard some of these if you're posting a feature request rather than a bug report.

  • I restarted Anki to see if it helps
  • I verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I tried to disable other add-ons to see if there are any interactions present
  • I checked if anyone reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
  • My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Please open Anki, go to Help → About, look-up two lines, starting with Version: and Qt and copy-paste them below:

Version:
Qt:

Please fill in your OS details (Linux/Mac/Windows, which version):

OS:

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Error message (if any)

If you got an error message, please copy and paste it below:

[paste your error message in here if you got any; otherwise feel free to remove this part]

Review Heatmap Error

Problem description or Feature request

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Downloaded anki 2.1 heat map folder, moved folder to addons21 folder.
Upon restarting anki, I get an error message, copied below.

Checklist

Please replace the space inside the brackets with an x if the following sentences apply to you. Feel free to disregard some of these if you're posting a feature request rather than a bug report.

  • [x ] I restarted Anki to see if it helps
  • I verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x ] I verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I tried to disable other add-ons to see if there are any interactions present
  • [x ] I checked if anyone reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
  • My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Please open Anki, go to Help → About, look-up two lines, starting with Version: and Qt and copy-paste them below:

Version 2.1.11 (3cf770c7)
Qt 5.12.1 PyQt 5.11.3

Please fill in your OS details (Linux/Mac/Windows, which version):

OS: Mac 10.14.4

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Error message (if any)

If you got an error message, please copy and paste it below:

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading 'review_heatmap':
Traceback (most recent call last):
File "aqt/addons.py", line 71, in loadAddons
File "/Users/MyName/Library/Application Support/Anki2/addons21/review_heatmap/init.py", line 41, in
from . import main # noqa: F401
File "/Users/MyName/Library/Application Support/Anki2/addons21/review_heatmap/main.py", line 40, in
from .gui.options import initializeOptions
File "/Users/MyName/Library/Application Support/Anki2/addons21/review_heatmap/gui/options.py", line 46, in
from ..libaddon.gui.dialog_options import OptionsDialog
File "/Users/MyName/Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/dialog_options.py", line 44, in
from ..platform import PLATFORM
ImportError: cannot import name 'PLATFORM'


</details>

Heatmap is off-by-one

Prerequisite checklist

  • In case of a bug: Have you tried restarting Anki?
  • Are you running the latest version of the add-on. Have you redownloaded the add-on from AnkiWeb to make sure?
  • Did you check the add-on documentation (e.g. AnkiWeb description, Wiki if it exists) for known issues?
  • Did you perform a cursory search through the existing issue reports?

What is the problem/feature you would like to see fixed/implemented?

Heatmap seems to have an off-by-one error in its visual calculations. This happens on any type of heatmap view (specific deck, entire collection).

How can we reproduce the problem?

  1. Hover over an entry in a heatmap
  2. Read the tooltip
  3. Click on it.

Expected behavior: To actually show the reviews for that day

Actual behavior: It shows the reviews for the day prior (e.g. seen:2 instead of seen:1 and prop:due=1 instead of prop:due=2, etc).

Reproducible?: Yep.

Examples:

If you hover over today and double-click it:

You'll get a search with seen:2 instead of the correct seen:1.

The same thing happens with future dates e.g.

This actually says there are -30 cards due (which makes no sense) and opens a search for prop:due=2 (which is correct) but there are no 30 cards for that day. Instead, prop:due=3 (the next day) does have those 30 cards.

Version information

Anki

Version 2.1.2
Qt 5.9.6 PyQt 5.9.2

System

  • Operating system: Windows
  • Version: 8.1

Other

I'm not sure if this is a bug you're already aware of since I am technically running on untested unreleased code, but I figured it'd be worth opening an issue anyway.

I'm also not sure if it matters, but I have my Anki setting to consider a new day 16 hours after midnight.

Anki shuts down and reports the following

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.14.4
Flags: frz=True ao=True sv=1
Add-ons possibly involved: Review Heatmap

Caught exception:
File "aqt/webview.py", line 27, in cmd
File "aqt/webview.py", line 87, in _onCmd
File "aqt/webview.py", line 368, in _onBridgeCmd
File "", line 2, in _linkHandler
File "anki/hooks.py", line 74, in decorator_wrapper
File "anki/hooks.py", line 71, in repl
File "/Users/Ronja/Library/Application Support/Anki2/addons21/review_heatmap/links.py", line 74, in heatmapLinkHandler
return None if not _old else _old(self, url)
File "aqt/overview.py", line 37, in _linkHandler
File "aqt/main.py", line 485, in moveToState
File "aqt/main.py", line 515, in _reviewState
File "aqt/reviewer.py", line 46, in show
File "aqt/reviewer.py", line 96, in nextCard
File "aqt/reviewer.py", line 164, in _showQuestion
File "anki/cards.py", line 174, in isEmpty
File "anki/cards.py", line 146, in model
File "anki/cards.py", line 142, in note
File "anki/collection.py", line 262, in getNote
File "anki/notes.py", line 15, in init
File "anki/notes.py", line 36, in load
<class 'AttributeError'>: 'NoneType' object has no attribute 'first'

on the heatmap the reviews are being shown on previous date. like review for 28 april are being shown on 27th.

Problem description or Feature request

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Checklist

Please replace the space inside the brackets with an x if the following sentences apply to you. Feel free to disregard some of these if you're posting a feature request rather than a bug report.

  • I restarted Anki to see if it helps
  • I verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I tried to disable other add-ons to see if there are any interactions present
  • I checked if anyone reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
  • My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Please open Anki, go to Help → About, look-up two lines, starting with Version: and Qt and copy-paste them below:

Version:
Qt:

Please fill in your OS details (Linux/Mac/Windows, which version):

OS:

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Error message (if any)

If you got an error message, please copy and paste it below:

[paste your error message in here if you got any; otherwise feel free to remove this part]

"Failed to Load" Error

Problem description

*I installed heat-maps manually but it won't load. I get a "failed to load" message when I open anki. I can see the review-heat map addon on my addons page. I have all the same addons and set up on my Dell Laptop, but heat map works fine on my Dell (the error is happening on my MacBook Pro).

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [ x] I've restarted Anki to see if it helps
  • [ x] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x ] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • [ x] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Version 2.1.14 (7b93e985)
Qt 5.12.1 PyQt 5.11.3

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):


If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: MacOS Mojave 10.14.6
  • version:

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
image
image

Error message (if any)

*An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading 'review_heatmap':
Traceback (most recent call last):
File "aqt/addons.py", line 80, in loadAddons
File "/Users//Library/Application Support/Anki2/addons21/review_heatmap/init.py", line 41, in
from . import main # noqa: F401
File "/Users//Library/Application Support/Anki2/addons21/review_heatmap/main.py", line 40, in
from .gui.options import initializeOptions
File "/Users//Library/Application Support/Anki2/addons21/review_heatmap/gui/options.py", line 46, in
from ..libaddon.gui.dialog_options import OptionsDialog
File "/Users//Library/Application Support/Anki2/addons21/review_heatmap/libaddon/gui/dialog_options.py", line 44, in
from ..platform import PLATFORM
ImportError: cannot import name 'PLATFORM'

Set a history beginning date rather than a history limit in days before the present

If you've recently begun using Anki with a completely new determination (which I think happens to many people at some point) and have a history of low activity before that day, you may wish to forget the previous period and set a date as the beginning of history. This way, the 'daily average' and 'days learned' would make more sense. (if you want to have this feature, you currently have to change the history limit every day)
If this is an issue because of performance, you can set both a history beginning date and a history limit.

How can I add this add-on in MacOS?

Checklist

  • [ * ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [*] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [*] I've checked if anyone else asked this question before by looking through the issue reports.

Your question

I've downloaded the ".ankiaddon" file and checked this instruction for manual installation for Anki 2.1.
https://github.com/glutanimate/review-heatmap#manual-installation-

The problem is, the video summary only gives the procedure for Win 10, while I'm using MacOS. I tried to drag the file to add-on window but nothing happened.

forms4.py and forms5.py are missing

Hi there! I just wanted to run a copy of this add-on, but I noticed that two files are missing. They are imported here:

if ANKI21:
from .forms5 import options as option_qtform # noqa: F401
else:
from .forms4 import options as option_qtform # noqa: F401

Are these generated from .ui files? If so, what command needs to be run to do that?

Scroll button did not work correctly

In month mode, when you press left button beside 'T' button, the history is shown.
However, if you press the right button, it will not scroll back to current date.

Anki 2.1 and 2.0 show different streaks

Problem description or Feature request

If I open up Anki 2.0 on my desktop it shows my actual streak of 54 days. If I sync and open it up on my laptop that is running Anki 2.1, it shows a streak of 4 days. It is showing that I have no studied and cards on certain days, but in fact I have. I am expecting on Anki 2.1 to show the same streak of 54 days.

Checklist

  • [ x ] I restarted Anki to see if it helps
  • [ x ] I verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [ x ] I verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [ x ] I tried to disable other add-ons to see if there are any interactions present
  • [ x ] I checked if anyone reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
  • My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Anki Settings (both computers)
- new day starts 12 hours after midnight
Version 2.1.8 (71e0c880)
Qt 5.9.7 PyQt 5.9
OS: Windows 10, Latest

https://i.gyazo.com/468157f901849ea78e8d115872813b90.png

Error message (if any)

If you got an error message, please copy and paste it below:

[paste your error message in here if you got any; otherwise feel free to remove this part]

Issue Report: if daily review is over 1K, the daily cube reads "NaN Review"

First of all, just wanna say thank you so much for this add-on. Have recommended my friends/anki users to use it.
This issue content is as the title states, once the daily review number is over 1K, the cube says "NaN reviews on ...." It's not a bug per se, because once it shows I will know it's over 1K, but much will be appreciated if this could be fixed. Again, this is an amazing add-on and must have for every anki-user.
Thanks again

Ps, I have three cubes like this. Done some binge-Anking for my backlogged cards. facepalm.jpg

In forecast, add-on doesn't add (re-)learning cards that are due.

Problem description or Feature request

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Checklist

Please replace the space inside the brackets with an x if the following sentences apply to you. Feel free to disregard some of these if you're posting a feature request rather than a bug report.

  • I restarted Anki to see if it helps
  • I verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I tried to disable other add-ons to see if there are any interactions present
  • I checked if anyone reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
  • My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Please open Anki, go to Help → About, look-up two lines, starting with Version: and Qt and copy-paste them below:

Version:
Qt:

Please fill in your OS details (Linux/Mac/Windows, which version):

OS:

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Error message (if any)

If you got an error message, please copy and paste it below:

[paste your error message in here if you got any; otherwise feel free to remove this part]

Sanitize search input when using rid field search

Review Heatmap currently expects a properly formatted rid query, erroring out in case of some added characters:

Caught exception:
  File "aqt\progress.py", line 67, in handler
  File "aqt\browser.py", line 597, in _onSearchActivated
  File "aqt\browser.py", line 608, in search
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\874215009\advancedbrowser\core.py", line 116, in search
    super(AdvancedDataModel, self).search(txt)
  File "<decorator-gen-72>", line 2, in search
  File "anki\hooks.py", line 74, in decorator_wrapper
  File "anki\hooks.py", line 71, in repl
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\1924690148\__init__.py", line 37, in mySearch
    _old(self, txt)
  File "aqt\browser.py", line 133, in search
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\874215009\advancedbrowser\core.py", line 158, in myFindCards
    preds, args = finder._where(tokens)
  File "anki\find.py", line 178, in _where
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\review_heatmap\links.py", line 123, in findRevlogEntries
    cutoff1, cutoff2 = [int(i) for i in args.split(":")]
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki2\addons21\review_heatmap\links.py", line 123, in <listcomp>
    cutoff1, cutoff2 = [int(i) for i in args.split(":")]
<class 'ValueError'>: invalid literal for int() with base 10: '1549008000000j'

We should properly sanitize the search string before moving on.

Can't seem to install on Linux?

I seem to be having an issue installing the add on on Linux (Debian Testing)
Here's what happens when I try to install it via using the Addon code:
https://i.imgur.com/hP9cF3o.png
Is this an issue on my end or is there something that stops this add on from working on the Linux version of Anki?

(very likely an Anki issue) Problems after moving between time zones

Hi,

I just discovered your plugin and decided to test it out. I noticed that there are a couple of days in 2017 that say "no reviews" although I actually have done all my reviews every day. Usually for those days, the previous day has more than the average amount of reviews, suggesting that the reviews done on the missing days counted for the previous day. This makes sense because I lived in Japan during that time and usually did my reviews somewhat early in the morning. With an 7/8 hour time difference to Germany (where I live now), and assuming I did not do early reviews the following day, it could explain the missing days.

This is very likely an issue with Anki. Time zone information is not saved anywhere in the review data, and other people have experienced a similar issue when moving between time zones. The only difference for me compared to this plugin is that Anki itself only shows one missing day (the day I flew back to Germany where Anki made me do two days of reviews in a single day and then marked one day as missing, really weird), while the plugin shows a couple of missing days.

I can also imagine that the "day reset time" (which you can configure yourself) is an additional issue when it's not set to midnight.

My question now is: Do you think there is any way of fixing this? I don't think this is anything for you to fix in the plugin, but rather about me manually adjusting the review times of those done while in Japan. Do you think it would work to write a little Python script that does this adjusting directly in the Anki database? I could specify which interval has to be adjusted in which way (e.g. from 8 September 2016 to 28 September 2017 adjust the review timestamps by x hours).

I'm not sure if this is actually worth the time, but I really like your plugin and it would be cool to see the actual results. Doing a fix like this might also correct the day that Anki claims is missing (or I could manually fix it in the same way).

Here is a screenshot of my heat map, by the way:
screen shot 2017-08-17 at 09 44 33

Thanks in advance for your input!

Add-on conflict with Deck Stats

Problem description or Feature request

Review Heatmap add-on does not function while Deck Stats is also installed and enabled. The heatmap does not show up on the main screen, nor is any error shown until accessing the add-on pane and clicking the "Config" button while Review Heatmap is selected.

I tested the interaction by disabling all other add-ons and testing with only these 2 enabled: the error is reproducible. I enabled all other add-ons and disabled Deck Stats: the error is reproducible again.

Checklist

Please replace the space inside the brackets with an x if the following sentences apply to you. Feel free to disregard some of these if you're posting a feature request rather than a bug report.

  • I restarted Anki to see if it helps
  • I verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I tried to disable other add-ons to see if there are any interactions present
  • I checked if anyone reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
  • My issue is solved when holding shift while starting Anki.

Information about your Anki Setup

Please open Anki, go to Help → About, look-up two lines, starting with Version: and Qt and copy-paste them below:

Version:: 2.1.0beta36 (older version, yes, but it is the one available in the apt repo for Ubuntu 18.04 LTS; I do not want to install Anki manually on this system through the website)
Qt: 5.9.5 PyQt 5.10.1

Please fill in your OS details (Linux/Mac/Windows, which version):

OS: Pop!_OS 18.04 LTS (based off of Ubuntu 18.04 LTS)

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

No need for this issue, in my opinion, since the add-on interaction has already been identified...

Error message (if any)

If you got an error message, please copy and paste it below:

Flags: frz=False ao=True        

Caught exception:
  File "/usr/share/anki/aqt/addons.py", line 391, in onConfig
    act()
  File "/home/USER/.local/share/Anki2/addons21/review_heatmap/gui/options.py", line 239, in invokeOptionsDialog
    dialog = RevHmOptions(config, mw, parent=parent)
  File "/home/USER/.local/share/Anki2/addons21/review_heatmap/gui/options.py", line 148, in __init__
    parent=self.parent, **kwargs)
  File "/home/USER/.local/share/Anki2/addons21/review_heatmap/libaddon/gui/dialog_options.py", line 80, in __init__
    form_module=form_module, parent=parent)
  File "/home/USER/.local/share/Anki2/addons21/review_heatmap/libaddon/gui/basic/dialog_mapped.py", line 154, in __init__
    self.setData(data)
  File "/home/USER/.local/share/Anki2/addons21/review_heatmap/libaddon/gui/basic/dialog_mapped.py", line 161, in setData
    value = self._dataToWidgetVal(data, property_dict)
  File "/home/USER/.local/share/Anki2/addons21/review_heatmap/libaddon/gui/basic/dialog_mapped.py", line 217, in _dataToWidgetVal
    data_val = getNestedValue(data, data_path) if data_path else None
  File "/home/USER/.local/share/Anki2/addons21/review_heatmap/libaddon/utils.py", line 59, in getNestedValue
    cur = cur[key]
<class 'KeyError'>: 'synced'

Base review streak calculation on time spent studying

I'd like to thank you about this add-on, after I know this I have more motivation to learn.

After using for awhile, I have some new ideas about this addon.

  • Add how much time I spend per day for Anki (hover a day in heatmap to reveal)
  • Longest streak for days of learning at least ??? minus (??? user define this - default is 1 minus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.