Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Chris Brav
OK, thanks. I've just added alias sage="/Applications/SageMath-8.5.app/sage" to .bash_profile, and everything is working smoothly. Sorry that this turned out to be not a sage question but a pseudo-Unix question. On Sunday, January 20, 2019 at 12:41:55 PM UTC+3, Chris Brav wrote: > > Two

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Dima Pasechnik
On Sun, Jan 20, 2019 at 9:41 AM Chris Brav wrote: > > Two related problems. > > 1) In finder, the sage icon is labeled SageMath-8.5. I thought I could change > it to just Sage, to be less awkward, but that breaks it for some reason, > causing a complaint that I'm trying to open an uninstalled

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Chris Brav
Two related problems. 1) In finder, the sage icon is labeled SageMath-8.5. I thought I could change it to just Sage, to be less awkward, but that breaks it for some reason, causing a complaint that I'm trying to open an uninstalled tarball. (I don't seem to have any such tarball.) 2) When I

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Dima Pasechnik
On Sun, Jan 20, 2019 at 9:16 AM Chris Brav wrote: > > Thanks! Now it works with macaulay2. > > As for ln, I was following the directions in the install directions. I'll > sort that out separately. How that "ln" was failing? If it's indeed a problem (MacOSX is very much a moving target) we

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Chris Brav
Thanks! Now it works with macaulay2. As for ln, I was following the directions in the install directions. I'll sort that out separately. On Sunday, January 20, 2019 at 12:12:32 PM UTC+3, Dima Pasechnik wrote: > > > > On Sat, 19 Jan 2019 21:08 Chris Brav > wrote: > >> Unfortunately I have

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Dima Pasechnik
On Sat, 19 Jan 2019 21:08 Chris Brav Unfortunately I have been unable to get sage running directly from a > terminal on Mac. sudo ln -s /path/to/SageMath/sage /usr/local/bin/sage > didn't work for me. > Why would you need "ln"? Can't you simply start Sage in Terminal as /path/to/SageMath/sage

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-19 Thread henri girard
shouldn't be sage dir ? on linux I do sudo /mydir/sage/sage /usr/bin/sage running as sage -n or sage -n=jupyter for a jupyter notebook Le 19/01/2019 à 22:08, Chris Brav a écrit : Unfortunately I have been unable to get sage running directly from a terminal on Mac.

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-19 Thread Chris Brav
Unfortunately I have been unable to get sage running directly from a terminal on Mac. sudo ln -s /path/to/SageMath/sage /usr/local/bin/sage didn't work for me. So I click on the icon and then have a choice to open either a terminal or a Jupyter notebook. Once the terminal is opened, I can use

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-19 Thread Dima Pasechnik
How do you start Jupyter? I believe that if you start it via terminal command "sage -n" then you will get exactly the same Sage environment in Jupyter as you get at Sage's prompt. On Sat, 19 Jan 2019 18:10 Chris Brav I like to use a jupyter notebook for sage, but also want to use a bit of >

[sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-19 Thread Chris Brav
I like to use a jupyter notebook for sage, but also want to use a bit of macaulay2 at the same, using the sage interface. In a sage terminal, macaulay2('2+2') returns 4 as expected, but in a jupyter notebook I get an error, the end of which reads TypeError: unable to start macaulay2 because