How to run sagemath scripts under pycharm (not under pycharm notebook)?

I created a conda environment and can run sagemath notebooks there.

I expect to just be able to refer to that conda environment and run the same pycharm commands in a script.

It doesn't work.  As soon as the interpreter sees var("x") , it cannot recognize var


I am using ubuntu 20.04 and pycharm 2021.3.3 professional

How can I make it work?



Please sign in to leave a comment.