Ask Your Question
1

Accessing Maple from Sage osx (.dmg version)

asked 2018-07-28 03:24:51 +0100

Michael Burr gravatar image

updated 2020-01-12 13:26:58 +0100

FrédéricC gravatar image

What is the "right" way to set up Sage to access Maple from a Jupyter notebook on MacOSX from the .dmg version? For the command line version, I've set my path variables correctly and Maple easily runs from Sage. However, when I open the GUI version of sage, Maple isn't on the path and I'm not sure how to add it (even temporarily).

Following up to the answer below, my issue might not be that the PATH is in error. I've set the path correctly (or so I believe), but Maple still isn't accessible from the GUI version of Maple.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-07-30 10:30:42 +0100

slelievre gravatar image

To extend your path in a Sage session, do:

sys.path.append('mypath')

To extend it at the start of each session, add the above to the init.sage file in the .sage directory in your home directory (creating the init.sage file if it does not exist).

See also:

edit flag offensive delete link more

Comments

I tried this before posting, but it isn't working. The specific command was:

sys.path.append('/Library/Frameworks/Maple.framework/Versions/Current/bin')

After running this, the appropriate path appeared in sys.path, but the behavior was unchanged when calling maple('3*5').

Michael Burr gravatar imageMichael Burr ( 2018-07-31 02:31:24 +0100 )edit

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: 2018-07-28 03:24:51 +0100

Seen: 361 times

Last updated: Jul 31 '18