secure PATH for sage

asked 2022-11-26 18:34:38 +0100

moon gravatar image

updated 2022-11-26 21:23:53 +0100

Max Alekseyev gravatar image

Hi there. This question is related to another one more specific on generating teX code for plots. When I run sage on conole it gives the following

│ SageMath version 9.7, Release Date: 2022-09-19                     │
│ Using Python 3.10.5. Type "help()" for help.                       │
  Input In [1]
SyntaxError: invalid syntax

The question is how to instantiate PATH in the context ?

it looks like the first order (In[1]) to python is to update the PATH variable. But why the h* it appear here ? anyone with a clue ? Thx in advance M

edit retag flag offensive close merge delete


Please provide more context. What OS are you using, and how did you install Sage? Have you modified Sage at all? Do you have an init.sage file? (This looks like an attempt to change the PATH variable using bash syntax, but as a Python command, and that's not going to work.)

John Palmieri gravatar imageJohn Palmieri ( 2022-11-26 19:28:46 +0100 )edit