![]() I also think it would be cool for this to be an nbprocess extension for courses/educational blogs/books (either as part of nbprocess or as a seperate extension) that I might toy with (though I might not, so if inspiration hits anyone go for it). If a variable that is used is defined in previous cells, the card will not show that variable Not sure about how to fix this in a clean way other than writing the notebook with that in mind. There are a few drawbacks in that the code cell generates the card so code cells must be self contained. Here’s the repo with current code: GitHub - Isaac-Flath/anki Limitation Given code (front) predict output (back).Code Cards: Code cells with both code and output present.Name → Symbol: Given description of symbol (front), predict symbol (back).Symbol → Name: Given symbol in backticks (front), predict description of symbol (back).Markdown Cards: 元/4/5 Headers that have a symbol in backticks.Import the csv decks from this repo: GitHub - Isaac-Flath/anki Card Types Pd.concat(cards).to_csv('deck.csv',index=False,header=False) If front != '': cards.append(pd.DataFrame(]))įront = front + ''.join(cell) + ''īack = back + ''.join(cell) + '' If (cell = 'markdown') and ('#' in ''.join(cell)): If anyone improves on this please share here for everyone to benefit! import json I want to try using Anki for a while so I have a better idea of what would be helpful before I do too much and this gets me started. If I end up using Anki a bunch I will put more time into it, but for now it’s good enough for me. Is that feasible to use and more flexible? There is another import format that’s not csv.Could try to optimize formatting to make cards more aesthetically pleasing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |