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 scheduler will return None on a .getCard() item.
from anki import Collection
from anki.importing.apkg import AnkiPackageImporter
coll = Collection('aaa1.anki2')
ti = AnkiPackageImporter(col=coll,file = r"ppp.apkg")
ti.run()
aa = ti.col.sched.getCard()
print(aa)
and aa is None...
I am trying to learn how Anki works internally, so I can use it in my own app (I am trying to build a simple web quiz with a time limit on each question for multiple users & compare their performance over time.)