OK, I'll work on that for 9.7.
- Marc
On Mon, Aug 29, 2022, 8:39 PM John H Palmieri
wrote:
> I'm reviving this discussion because of another ask.sagemath.org post (
> https://ask.sagemath.org/question/63845/how-reach-octave-or-macaulay2-from-sage-notebook/):
> someone who had installed octave a
I'm reviving this discussion because of another ask.sagemath.org post
(https://ask.sagemath.org/question/63845/how-reach-octave-or-macaulay2-from-sage-notebook/):
someone who had installed octave and macaulay 2, but the app wasn't finding
them because of its minimal setting for PATH. This makes
I should have mentioned that it is always possible to run the main
executable of a macOS app from the command line. E.g.
$ /Applications/SageMath.app/Contents/MacOS/SageMath
When you do that, the process that is launched is almost identical to the
one that is launched when you click on the icon
Hi John,
A macOS app launched from an icon has no stdout or stderr. Apple's NSLog
command will write to stderr if it exists, and to a log file if it does not
exist. But simply writing to stderr as most unix programs do has no effect
if stderr does not exist. When using the terminal as the input
Hi Marc,
Very good question. I think that allowing users to modify the standard
config files is the right thing to do, but I'm really not sure. I worry
that the next person will want to modify a different setting, and you don't
want to get dragged into recreating IPython/Jupyter preferences. Fo
Thank you for figuring that out Samuel. Now here is a question for both of
you. The macOS app intentionally sets a minimal environment when it starts
sage. It is intentionally minimal because it would be dangerous, in terms
of security, but more importantly in terms of the potential for creat
Hi Samuel,
Thank you for this. One thing: I made a mistake in my comments on
ask.sagemath.org. Changing sys.path changes the Python path, not the path
for executables. One option is to use
import os; os.environ["PATH"] += ":/usr/local/bin"
Any better ways to do this? Your pointer on how to
2022-06-22 16:37:11 UTC, John H Palmieri:
>
> How do I set the PATH in the OS X Jupyter notebook,
> if I'm using the 3-manifolds binary app? I mean, I know
> how to do it in an individual notebook, but how do I set
> the default PATH for every notebook? For example,
> how do I add /usr/local/bin so