Prodigy hacks to level up

broken image

With open('recipes/textcat_eval.js') as txt:

broken image

with open('recipes/textcat_eval.html') as txt: Perhaps a new recipe option to specify a single script file that will be injected into the base page, when combined with an html_template, e.g. I saw a suggestion that maybe static/index.html could be modified to include a script, but I don’t think that’s a very workable solution (unless I misunderstand) because you’d have to copy the files into or out of site-packages.

broken image
broken image

There’s a react github discussion about it, but the TLDR is it looks like ele.innerHTML = '.' doesn’t work. I’m having a difficult time getting prodigy to allow custom scripts in my recipe specific templates, e.g.

broken image