[OS X TeX] sagetex use from TeXShop

Murray Eisenberg murrayeisenberg at gmail.com
Sun Jun 14 10:52:34 EDT 2020



> On 13 Jun2020, at 5:26 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:
> 
>> On Jun 13, 2020, at 2:49 PM, Murray Eisenberg <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> wrote:
>> 
>> “NOT work properly” means that if you double-click the SageMath app icon in /Applications, the server never seems to start, and so one cannot use, e.g., they Jupyter interface to the sage kernel.
>> 
> 
> Howdy,
> 
> Is the Jupyter interface web based? Is the enclosed image from Safari the Jupyter interface?
> 
> <Screen Shot 2020-06-13 at 4.23.52 PM.png>
> 

Yes, that’s Jupyter. Now:

	1. Start the SageMath app. 

		After a bit of a wait, you should see that same Juypter interface open in Safari.

	2. Click the New button on that Jypyter page. 

		You should see “SageMath” (or perhaps "SageMath-9.1”) in the drop-down list.
		Select that Sage noteook entry.

	3. In the “In [ ]:” cell you see, type 1+1 and press Shift-Enter.

		You should see “In [ ]” change to “In [1]” and then a new “Out[1]: 2”.

		If so, then SageMath is working correctly.

		—> Is this with SageMath-9.1.app or with the renamed version, SageMath.app ??

On my system, if I rename SageMath-9.1.app to SageMath.app, then when I open the app, I eventually get a pop-up error message:

	Juypyter Server failed to start….

And when, as the rest of that messages suggest, I examine the log, I see:

	/Applications/SageMath.app/Contents/Resources/sage/src/bin/sage: line 617: /Applications/SageMath-9.1.app/Contents/Resources/sage/local/bin/python3: No such file or directory    		
	/Applications/SageMath.app/Contents/Resources/sage/src/bin/sage: line 617: exec: /Applications/SageMath-9.1.app/Contents/Resources/sage/local/bin/python3: cannot execute: No such file or directory

theThus the binary /Applications/SageMath.app/Contents/Resources/sage/src/bin/sage has HARDCODED the path to the requisite python3 as being in the SageMath-9.1.app tree, so that it cannot find it when the app has been renamed to SageMath.app.

I’ve posted a query about this to the sagemath.org forum.

---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200614/a84ca6fc/attachment.htm>


More information about the MacOSX-TeX mailing list