Hi @hahazar
Make sure that you define x in a scope that can be accessed and also check if you haven’t written X instead of x. Also, ensure that you run all the cells especially the one that defines the variable x.
You can also take a look at this post:
Hope it helps! Feel free to ask if you need further assistance.