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
0
votes
1 answer

MathJax is suddenly breaking lines

I'm using MathJax in Anki to make notes. When I use "Cloze" note type and put some MathJax in cloze deletion, the lines are suddenly broken, but outside cloze deletion MathJax renders as expected. Here is an example 1. My front…
0
votes
2 answers

Anki python scripting: Multiple modules missing

I'm trying to follow the tutorial at https://www.juliensobczak.com/tell/2016/12/26/anki-scripting.html And I'm getting the "listcards.py" basic script set up, having cloned anki and installed the virtual environment as well as the requirements from…
camelCaseCowboy
  • 946
  • 1
  • 10
  • 26
0
votes
2 answers

Anki and AnkiDroid: Importing JSON from collection.media with javascript

I want to import files from collection.media that are not sound, image, or video. For example I'd like to import a JSON file. I put the file _script.jquery-3.3.1.min.js and _data.json in my collection.media folder. On Anki Desktop (Ubuntu), the…
well
  • 647
  • 1
  • 8
  • 20
0
votes
0 answers

Converting LaTeX pdf-file to png-file using imagemagick adds colored lines around highlighted text

I'm using LaTeX to create Anki flashcards, which are converted from .pdf to .png with imagemagick so that they can be used with Anki. I wanted to highlight some inline code snippets in a flashcard with a blue or grey background, which I tried to…
ksh
  • 3
  • 2
0
votes
1 answer

Anki CSS/HTML align vertically to bottom / center / top

I am editing the template of an Anki deck, which uses HTML and CSS. What I would like to do here is on the front side, vertically aligning the Japanese character to the middle and the hint to the bottom. I tried manually spacing everything with…
copy
  • 17
  • 2
  • 5
0
votes
1 answer

anki - HTML - JAVA hint's won't allow me to enter a new line

I'm using anki and I'm trying to insert "hints" and explantions. I took a code from this guy on youtube who created just that - the possibility of clicking on a hint symbol that will only then display the content of the hint. That's the link to the…
0
votes
0 answers

Use Pandas in an Anki add on

I've built a script I would like to use as an Anki add on. My script makes use of Pandas, but the Anki only ships with some bare bones modules and so I believe I need to include Pandas and its dependencies in my add-on package. However, I've ran…
jk3
  • 47
  • 5
0
votes
2 answers

Shipping part of Python standard library

How do I ship some standard modules from Python together with my code? I'm writing an add-on for Anki, for which I need Queue and threading modules from Python2.7 standard library. When I try launching Anki, I get ImportError: No module named Queue.…
julka
  • 1,172
  • 2
  • 13
  • 29
0
votes
1 answer

Changing the colors of a transparent gradient for a text with Javascript

I use a transparent gradient for a text on my Anki flashcards, styled via CSS like this: background: -webkit-linear-gradient(-45deg, #cccccc, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; Since this is currently for…
GTK 1.2.6 fanboy
  • 839
  • 1
  • 5
  • 20
0
votes
4 answers

Image doesn't show in Anki (although the media file exists)

Front template: Anki's media folder: Front Preview: Strangely, if I replace '7' by '8' in the Front Template, the image shows.
Evan Aad
  • 5,699
  • 6
  • 25
  • 36
0
votes
1 answer

How can I set up a code to look up the word of the Front field in Anki?

How can I set up a code to look up the word of the Front field in Example field and change the color of them for all words of the deck?
0
votes
1 answer

How does Anki store flashcard and remind it at a certain amount of time?

I wonder how can Anki (a flash card application to help people memorize things) store the cards in a file (including images and audio) and retrieve them at a certain amount of time.
NBDKhoa
  • 131
  • 3
  • 12
0
votes
1 answer

Centering all fields in Anki (HTML)

For the life of me I can't figure out why nothing will centre. This image explains better than I could about what I want. I want to centre all fields without changing which way around the kanji appear (For some reason the {{Expression}} field keeps…
Rehn
  • 1
  • 1
  • 2
0
votes
1 answer

Fedora 20 Anki fails with ImportError

I want to install Anki on my Fedora installation, so I did: sudo yum install anki The installing process went fine, but when I try to run Anki the following exception pops up: Traceback (most recent call last): File "/usr/bin/anki", line 5, in…
0
votes
1 answer

Issue with installing anki on Ubuntu 14.10

I installed anki on my Ubuntu 14.10 machine with no errors (using dpkg -i). When I run it as a normal user I get following error. ~/software$ anki Traceback (most recent call last): File "/usr/bin/anki", line 5, in import aqt File…
Farhat
  • 1,203
  • 2
  • 12
  • 19
1 2 3
11
12