First time here? Check out the FAQ!

Ask Your Question
1

NameError: name 'var' is not defined

asked 7 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 7 years ago

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.

Preview: (hide)
link

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: 7 years ago

Seen: 4,660 times

Last updated: Jul 24 '17