# Accessing Maple from Sage osx (.dmg version)

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 close merge delete

Sort by » oldest newest most voted

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).

more

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').

( 2018-07-31 02:31:24 +0100 )edit