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
2
votes
2 answers

How to correctly identify the file storage directory of AnkiDroid (or any other external app) from my application?

I use AnkiDroid API to create and send cards to AnkiDroid application (https://github.com/ankidroid/Anki-Android/wiki/AnkiDroid-API). But there is one issue connected to sending media files via API. They are stored in the external storage,…
snailp4el
  • 153
  • 1
  • 15
2
votes
1 answer

how to programmatically import text file into anki?

I'm trying to make an Addon that converts text from a website into an Anki deck, so now I have a text file that is formatted correctly and I can't figure out how to import it into an existing deck, I checked the official manual but it offers very…
lua
  • 41
  • 1
  • 8
2
votes
0 answers

Space Repetition SM2 - Java implementation

I'm trying to implement SM2 by myself. I found two sources as my references for this practice. FIRST ONE SECOND ONE Question 1 I got confused. Which one is the right one? I can't quite put my fingers on what's the correct implementation of…
Sheng-yu Tsai
  • 41
  • 1
  • 7
2
votes
0 answers

Import error Anki

There is an error when I imported deck to Anki. The error is in the image (I'm sorry I could not paste the error here). It has something to do with IOError: zipimport: can not open file…
toantruong
  • 464
  • 1
  • 8
  • 16
2
votes
0 answers

How to read an image url with Unicode characters in Python 2 with urllib?

Requirements: Python 2.7 and no external libraries like Requests or BeautifulSoup :( I get the error in the traceback from retrieveUrl when I call this…
user3704512
  • 151
  • 10
2
votes
1 answer

stand alone code doesn't work in Anki addon

The below code works fine, but when I use the same code as an Anki addon, BeautifulSoup raises an attribute error. Here is the working code: from bs4 import BeautifulSoup s = '''