Ask Your Question

murraye's profile - activity

2021-05-31 18:10:18 +0200 received badge  Popular Question (source)
2021-05-31 18:10:02 +0200 received badge  Popular Question (source)
2021-02-16 11:31:54 +0200 received badge  Famous Question (source)
2020-12-12 16:32:13 +0200 received badge  Notable Question (source)
2020-11-21 20:44:44 +0200 received badge  Popular Question (source)
2020-11-15 17:53:00 +0200 commented question Sage 9.2 on macOS 10.15.7 not working with conda method, either

The complete set of commands I used:

conda config --add channels conda-forge

conda install mamba -c conda-forge

mamba create -n sage sage -c conda-forge

conda init zsh

[restart Terminal]

conda activate sage

I now see command line prompt (in Terminal with zsh): (sage) [~] %

AHA! If I execute command "jupyter notebook" it opens the expected jupyter front end in Safari and allows me to use the Sage 9.2 kernel for evaluation.

And now executing in Terminal command "sage" does start sage at the command-line. (Not sure what I did wrong last time: when then I issued command "sage", that command was not found.

2020-11-13 02:14:26 +0200 commented answer Sage 9.2 on macOS 10.15.7 not working with conda method, either

As I said, after issuing command "conda activate sage", I did -- in that same Terminal session -- issue command "sage", which gave the "command not found: sage" error!

2020-11-12 02:15:34 +0200 asked a question Sage 9.2 on macOS 10.15.7 not working with conda method, either

Along with others, I've reported that Sage 9.2 will not work on macOS because of a missing openssl. I tried the method using a conda environment described in and at but it doesn't work:

  • since I already have the full conda installed, I should not, and did not, install miniconda
  • instead, I just created and activated a sage environment using mamba with conda, as described.

That seemed to be OK, and using "conda activate sage" did open a sage conda environment. BUT:

  1. How do I start sage then? I tried just issuing the command "sage" on the Terminal command-line, in the sage conda environment. That gives a "Command not found" error.

    1. How do I go about using jupyter with sage using the conda method?
2020-11-10 05:19:08 +0200 asked a question How get openssl with python 3 for macOS Sage 9.2?

I just installed the app version of Sage 9.2 under macOS Catalina (10.15.7), to replace Sage 9.1 which had been working perfectly.

Starting Sage 9.2 opens file:///Applications/ in Safari, but then it hangs. Viewing the log shows:

Traceback (most recent call last): File "/Applications/", line 307, in have_prerequisites from notebook.notebookapp import NotebookApp File "/Applications/", line 66, in <module> from tornado import httpserver File "/Applications/", line 29, in <module> import ssl File "/Applications/", line 98, in <module> import _ssl # if we can't import it, let the error propagate ModuleNotFoundError: No module named '_ssl' ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 9.2, Release Date: 2020-10-24 │ │ Using Python 3.8.5. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ Please wait while the Sage Jupyter Notebook server starts...

The Jupyter notebook requires ssl, even if you do not use https. Install the openssl development packages in your system and then rebuild Python (sage -f python3).

What exactly do I do about openssl? I already have the MacPorts openssl @1.1.1h_0. My default python3 is from the Anaconda distribution, and I used the conda command to install openssl, and the Anaconda environment includes both openssl 1.1.1h and pyopenssl 19.1.0.

QUESTION: What more do I need to do, and how?

Is there some way that I need to install openssl into the sage environment, too, and if so, how?

Even if I take care of that, then how would I use the "sage -f python3 command": if I try to execute, e.g., "/Applications/ --help", that tries again to start the server, but the openssl problem prevents it from opening -- which means that once I did (somehow) get the openssl requirement satisfied, I don't know how to get the command "sage -f python3" to work. Seems like a "Catch 22"!

I never had any openssl problem with Sage 9.1 (or earlier versions, either).

2020-07-29 17:23:17 +0200 asked a question How add sagemath to existing Docker webwork container

Under macOS Catalina I have a working Docker container for WeBWork. How can I add sagemath into that same container?

2020-06-14 17:22:58 +0200 commented answer How allow renaming to for sagetex

That works! Thank you.

2020-06-14 17:22:56 +0200 received badge  Supporter (source)
2020-06-14 17:22:54 +0200 received badge  Scholar (source)
2020-06-14 17:01:43 +0200 commented answer How allow renaming to for sagetex

Aha! So does it suffice to just delete from /Applications and then reinstall, rename, and start the first time. Or are there some other files, say in ~/Library, that have to be deleted, too? (Without destroying previously made settings to recognize various kernels, e.g., Dyalog APL, J, Julia, R, Wolfram Language?)

2020-06-14 16:55:42 +0200 received badge  Editor (source)
2020-06-14 16:51:53 +0200 asked a question How allow renaming to for sagetex

When using the sagetex with LaTeX under MacTeX and the TeXShop front end, the suggested method (from the TeXShop docs) is to rename to just and then to create symlinks for the executable sage and for sagetex.sty within the Contents of the app.

That works just fine to use sagetex in LaTeX.

However, once the renaming is done, the app itself no longer works! Once I open the renamed, I get a pop-up error message "Juypyter Server failed to start...", and inspecting the log reveals:

/Applications/ line 617: /Applications/ No such file or directory          
/Applications/ line 617: exec: /Applications/ cannot execute: No such file or directory

Apparently access to python3 has been hard-coded into the sage executable so that it is expect to be in the file tree with root the original name SageMath-x.y.

Is there some workaround so that one can both use sagetex in the way recommended by the MacTeX/TeXShop world and still be able to use the SageMath app normally to start the Jupyter server, etc.?

2020-05-05 03:39:38 +0200 received badge  Famous Question (source)
2020-02-21 11:53:50 +0200 received badge  Favorite Question (source)
2020-02-13 07:37:25 +0200 received badge  Notable Question (source)
2020-01-16 17:35:42 +0200 received badge  Popular Question (source)
2020-01-05 21:44:20 +0200 commented question SageMath 9.0 app macOS: jupyter server fails to start

Note that I can first start sage in Terminal (by executing there /Applications/SageMath-9.0-app/sage) Terminal, then from the sage command line execute: !sage -n jupyter

2020-01-05 20:35:42 +0200 asked a question SageMath 9.0 app macOS: jupyter server fails to start

When I open under macOS Catallina (10.15.2), I get an immediate pop-up error window saying, "Jupyter Server failed to start".

The log shows:

│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.7.3. Type "help()" for help.                        │
Please wait while the Sage Jupyter Notebook server starts...

However, I can get the Jupyter server to start with an indirect method that was never required in earlier versions of, namely: In Finder, Show package contents for Navigate in Finder to Contents/MacOS. Double-click Sage. That both starts the server and opens the expected client window in Safari, from which I can open and evaluate cells in an existing notebook or create a new SageMath 9.0 notebook.

So something that used to be "hooked up" between the and the command to start the jupyter server has been broken with 9.0.

2015-05-14 21:51:26 +0200 received badge  Student (source)
2015-05-14 20:56:30 +0200 asked a question Sage 6.6 link to compressed docs file broken

Is there some other place to download the entire compressed archive of Sage 6.6 documentation?

The usual link "You can download the entire standard documentation as a compressed file: download." at is broken: that link just takes you to the page with all the individual file download links.