Open 10c8 opened 8 years ago
No mathematical operations can be done on Python object references through JavaScript using the standard operators (+, -...). That happens because Python object references (PyObjs) are seen in JavaScript as dicts.
dict
Added PaperUtil (shorthand: pyutil) as a workaround. Has some helper functions, including add, sub, div and mul.
PaperUtil
pyutil
add
sub
div
mul
No mathematical operations can be done on Python object references through JavaScript using the standard operators (+, -...). That happens because Python object references (PyObjs) are seen in JavaScript as
dict
s.