Questions tagged [anki]

Anki is an open source flashcard program which has the capability to use add-ons. Programming questions about writing add-ons for Anki or the Anki source code are on-topic for Stack Overflow. Questions about how to use Anki or Anki plug-ins are off-topic for Stack Overflow.

Anki is an open source flashcard program with the ability to use plug-ins.

More information can be found on Wikipedia: Aniki.

You can find the source code for the desktop version on GitHub. There are ports by other authors to various mobile platforms.

171 questions
14
votes
1 answer

How can a plug-in enhance Anki's JavaScript?

Anki enables cards to use JavaScript. For example, a card can contain something like: and the JavaScript code will be executed when the card is shown. In order to allow more flexibility by enabling such…
Tom
  • 4,910
  • 5
  • 33
  • 48
9
votes
2 answers

HTML in Anki cards

I'm want to display some image (.jpg) file from the local storage on each Anki card of particular note type. The code below shows the image on any browser: Image alternate text
wiskis
  • 131
  • 1
  • 2
  • 5
7
votes
3 answers

How do you embed a YouTube video into an Anki Card

I am trying to make an Anki card that includes how to complete a specific type of task, and a description or collection of pictures isn't quite cutting it. I'd like to include a YouTube video into the card answer to test myself on how well I can…
Dan
  • 175
  • 1
  • 12
6
votes
2 answers

How to hide a card field in anki?

In Anki I am trying to hide a third field if it is empty. This field is named Ref. In the styling view of a card, accessed by Edit > Cards, I have the following HTML snippet in the back template: Link What I wish to know is…
mr_js
  • 949
  • 12
  • 29
5
votes
1 answer

Hiding parts of a line after a given charachter in Vim

I'm writing a set of flashcards in Vim for import into other applications; the format of the flashcards is exceedingly simple - it's just a CSV with two fields, a question and an answer. For example, if I were testing my German knowledge, I might…
5
votes
0 answers

AnkiDroid: Multiple choice questions card with randomized answers

I have this card that works perfectly in Anki for PC: the correct answer must be in bold, it will make the highlight on the back of the card appear. My problem is that the bold highlight is not shown in the Anki app for Android (Ankidroid) and I…
Radorion
  • 51
  • 2
5
votes
0 answers

How to write a command line app for Anki flashcards?

Is there an example on how to invoke the Anki testing from ipython and answer it? I am going trough this: https://github.com/dae/anki but I am not able to do it. In the example below, I am importing a collection, and trying to start testing but the…
Hynek Los kamute
  • 566
  • 1
  • 4
  • 15
5
votes
1 answer

I get an ImportError: cannot import name bytes with pygments

I wanted to get syntax highlighting for code plugin (https://ankiweb.net/shared/info/491274358) in Anki (https://ankiweb.net/) to be able to highlight ipython synthax. I installed pygments-ipython-console from here:…
chriad
  • 1,392
  • 15
  • 22
4
votes
1 answer

SQLite 'long' integers are returned truncated/incorrect by SQL select query — how can the correct values be retrieved? (SQLite ODBC driver, VBA/ADODB)

In Excel VBA with the SQLite ODBC Driver, my simple SELECT query run against a single table retrieves 'long' integers (10 or more decimal places) incorrectly. How can these values be retrieved correctly, without truncation or whatever garbling is…
Joan Eliot
  • 267
  • 1
  • 8
4
votes
2 answers

How do I bulk import audio (.mp3/.wav etc) data to an Anki deck?

There is an import feature on Anki that allows the user to import their CSV files saved in UTF-8 encoding, which the program later converts to .akpg files. I would like to add sounds (ideally .mp3 audio) to each flashcard of my deck, which doesn't…
4
votes
4 answers

Meaning of these arguments?

I use a flashcard program called Anki, which is written in Python. I want to write my first add-on. I'm new to Python. I'm not a techie, but I have a few years experience of jumping around inside other people's code in Java, C++, C#, and so on. The…
OldGrantonian
  • 597
  • 1
  • 8
  • 23
4
votes
1 answer

Pycharm can't change interpreter from python 2.7 to 3.4

Im currently working on an open source Python project on Xubuntu Linux 3.19.0-51-generic x86_64 using Pycharm. Even though I my project requires Python 3.4 or greater, the IDE seems to force the project to use Python 2.7. I've tried to change the…
Rice
  • 3,371
  • 4
  • 19
  • 23
4
votes
1 answer

Hide console when py-file only (no pyw) [ANKI add-on]

I am about to adjust the music fiddler add-on for ANKI SRS for windows users. Anki ONLY runs add-ons with with ending .py, not pyw. Is there any way to hide the console that automatically pops up when I run the code. If not, is there a way no to…
3
votes
0 answers

Anki - finding success rate by interval

I've been using Anki for about two years now, and have 5,000-odd cards. I am trying to optimise the algorithm and think it would be useful to find out when on average I am most likely to forget cards. Is there any way of getting stats for at what…
tardy pigeon
  • 225
  • 6
  • 18
3
votes
0 answers

How to put cards on Anki Deck using Python

I have an Anki Deck here, is there a way that I could programmatically insert a card on my current sample deck right here? See the image provided Anki Deck image sample Is there a way to do that with python? Since it is known that Anki is written in…
user14308341
1
2 3
11 12