"Unsupported operand types function" with linked cells

13 views
Skip to first unread message

Ingo Dahn

unread,
Jun 10, 2017, 10:37:25 PM6/10/17
to sage-cell
At https://netmath.vcrp.de/downloads/Einheiten/Schell/Formelsammlung/addons/linkedCell2.html, after evaluating the first and then the second linked cell, I get the error

TypeError: unsupported operand type(s) for ** or pow(): 'function' and 'function'

No error message on console or html validation.
I'd appreciate any hint.

Andrey Novoseltsev

unread,
Jun 11, 2017, 12:40:26 PM6/11/17
to sage-cell
Linking didn't work, that's why N and n are functions and not integers as you have tried to define them.

Looking at the page source, you have created two groups of linked cells consisting of a single cell each. To have a several cells linked as a single group they have to have the same inputLocation and be created with a single call to makeSagecell. I don't think there is any way to add new linked cells to an existing group (i.e. without modifying the code).

Ingo Dahn

unread,
Jun 11, 2017, 5:04:02 PM6/11/17
to sage-cell
Thanks, got it.
Reply all
Reply to author
Forward
0 new messages