Why cannot python call Javascript() from within a python function?
问题 I used the code suggested from Download CSV from an iPython Notebook to dynamically build the javascript code and pass it to the browser using Javascript() in python when called from a jupyter notebook. Code works great. If I embed the same code in a python function and call the python function from the same jupyter notebook, the call Javascript() in python no longer works. How can I make the reusable function work? I am trying this on Chrome Version 73.0.3683.103 (Official Build) (64-bit)