Ask Your Question

io's profile - activity

2018-10-10 14:21:18 +0200 received badge  Notable Question (source)
2016-09-25 05:52:27 +0200 received badge  Popular Question (source)
2016-04-07 02:32:42 +0200 received badge  Student (source)
2016-04-07 02:15:28 +0200 received badge  Teacher (source)
2016-04-07 02:15:28 +0200 received badge  Necromancer (source)
2016-04-07 01:32:14 +0200 answered a question latex form of product of non-commuting variables

in my opinion, this problem can be solved in a clean way by replacing the line 2510 in sage/misc/latex.py

    ...
    2509  elif len(a) == 1:
    2510     return a
    2511  elif is_fname is True:
    ...

with

    ...
    2509  elif len(a) == 1:
    2510     return '{%s}'%a
    2511  elif is_fname is True:
    ...

actually I get a far better result with

...
2505  if a in common_varnames:
2506     return '{\\,\\%s}'%a
2507  elif len(a) == 0:
2508      return ''
2509  elif len(a) == 1:
2510      return '{\\,%s}'%a
2511  elif is_fname is True:
2512      return '{\\,\\rm %s}'%a
2513  else:
2514      return '\\,\\mathit{%s}'%a
...
2016-04-06 12:49:28 +0200 received badge  Scholar (source)
2016-04-06 12:48:45 +0200 answered a question can not use pre-built binary

In my specific case I use anaconda3 (which uses python 3.5) with an entry in my ~/.bashrc file which includes the anaconda bin folder to the path.

In order to run sage for the first time I have commented the line in .bashrc corresponding to the anaconda bin folder. Then after running successfully sage for the first time I have removed the comment and everything seems to work.

2016-04-05 18:00:35 +0200 asked a question can not use pre-built binary

I am trying to use the pre-built binary for Ubuntu 15.10, sage-7.1-Ubuntu_15.10-x86_64.tar.bz2. I have extracted it with tar -xvf sage-7.1-Ubuntu_15.10-x86_64.tar.bz2. And it creates the folder SageMath. When I try to run ./sage for the first time from the extracted folder I have the result below. Is it normal? What can I do to run sage?

.../SageMath$ ./sage
  File "/home/ste/Downloads/SageMath/relocate-once.py", line 12
    print "relocate-once.py -d <destination>"
                                        ^
SyntaxError: Missing parentheses in call to 'print'
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 7.1, Release Date: 2016-03-20                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘

ERROR:  The Sage installation tree has moved

from /home/buildbot/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas391yaj2
  to /home/ste/Downloads/SageMath
...

Solved: I use python 3.5, but apparently, in order to run sage for the first time, you should use python 2.7