Ask Your Question
1

texshop conda

asked 4 years ago

Flips gravatar image

Someone could produce a sage.engine for texshop in order to run the sagetex if it was installed by conda?

I tried to call sage including sage -root in the path and changing sage.engine to

then
   echo Running Sage, please wait a moment...
   # New versions of Sage cannot be renamed; thus users need to read the
   # documentation in ~/TeXShop/Engines/Inactive/Sage whenever they update Sage;
   # for instance, the line below must contain the current name of Sage
    /opt/anaconda3/envs/sage/bin/sage "$sagename"
    pdflatex --file-line-error --synctex=1 "$filename"
else

but give the error

Running Sage, please wait a moment... Error: You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. Error setting environment variables by sourcing '/opt/anaconda3/envs/sage/bin/sage-env'; possibly contact sage-devel (see h t t p ://groups.google.com/group/sage-devel).

Thanks

Preview: (hide)

Comments

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

isuruf gravatar image

You shouldn't directly call sage using the sage executable.

Instead of

 /opt/anaconda3/envs/sage/bin/sage "$sagename"

try,

conda activate /opt/anaconda3/envs/sage
sage "$sagename"
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: 4 years ago

Seen: 878 times

Last updated: Nov 12 '20