Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Code working on cocalc but not locally

Hello everyone. I'm trying to define a new class on sage (called 'SuperLieAlgebra', for Lie algebras with a graded bracket). The code runs fine on cocalc, but when I download it and run it on sage locally (version 10.0), I get a 'SuperLieAlgebra: Name not defined' error. Any idea why this could be? I suspect it has to do with the fact that on cocalc, I'm working on a .sagews file, but locally it's a .py file that I run-but I'm not sure how to fix this.

click to hide/show revision 2
retagged

Code working on cocalc but not locally

Hello everyone. I'm trying to define a new class on sage (called 'SuperLieAlgebra', for Lie algebras with a graded bracket). The code runs fine on cocalc, but when I download it and run it on sage locally (version 10.0), I get a 'SuperLieAlgebra: Name not defined' error. Any idea why this could be? I suspect it has to do with the fact that on cocalc, I'm working on a .sagews file, but locally it's a .py file that I run-but I'm not sure how to fix this.