I am doing some calculations in sage using Macaulay2 interface. While runing the Macaulay2 interface in .sage file, I am getting the following error:
NameError: name 'macaulay2' is not defined
My code is correct. In fact, it is working in jupyter notebook and in sage terminal.
Can anyone help me in this regard?