I’ve been developing my own AnkiAddon, and I’ve been having a lot of fun and the Anki devs have done a very good job but one thing that I’ve found a bit frustrating is the fact that every time I want to preview changes that my addon have made I need to restart Anki. Is there a better way of previewing my changes that doesn’t require me to restart Anki every single time? My slow laptop means that it would take a couple minutes every time, and sometimes I want to preview after just a handful of lines of code… I’ve checked the documentation and can’t find anything about it.
There’s no known reliable solution for this. I found some libraries to do hot reloading like jurigged after some googling, but never tried any yet. Would be interesting to see if that works in Anki.
There are 2 add-ons for reloading add-ons. But I haven’t tried them yet so I don’t know if they work properly. (my add-ons use a lot of gui_hooks so they probably won’t work.)