Ask Your Question
1

NameError: name 'var' is not defined

asked 2017-07-24 20:49:10 +0100

Road gravatar image

I'm using Jupyter Notebook on CoCalc. I can't create symbolic variables.

var('a,b,c')

results in NameError: name 'var' is not defined. I tried

from sage.calculus.var import *

but it still doesn't work and gives the same error.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-07-24 21:28:00 +0100

vdelecroix gravatar image

You need to set up the kernel to SageMath (I guess it is currently Python 2). Find The menu Kernel and the sub menu Change Kernel.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-07-24 20:49:10 +0100

Seen: 4,456 times

Last updated: Jul 24 '17