Ask Your Question
1

NameError: name 'var' is not defined

asked 2017-07-24 13:49:10 -0500

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 14:28:00 -0500

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 13:49:10 -0500

Seen: 99 times

Last updated: Jul 24