ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 23 Apr 2015 17:01:23 -0500sage-mode installationhttp://ask.sagemath.org/question/25859/sage-mode-installation/ I'm new to sage, and trying to set up sage_mode with emacs. As suggested <a href="http://wiki.sagemath.org/sage-mode">here</a>, I run "sage -i sage_mode" to install it. This gives the error message
mkdir: cannot create directory ‘’: No such file or directory
/usr/bin/sage: line 766: /usr/build/pipestatus: No such file or directory
Googling this doesn't seem to turn up anything relevant. Any suggestions? I'm running the build from the Arch Linux repos (64 bit).John LTue, 17 Feb 2015 14:07:30 -0600http://ask.sagemath.org/question/25859/Sage-mode typesetting problemhttp://ask.sagemath.org/question/26632/sage-mode-typesetting-problem/I am trying to start using emacs with sage-mode.
After editing .emacs file to enable sage-mode and typsetting, I can see that even though the shell is working, the 'sage-view' option is not working propperly.
In example, when typing the following text into the shell:
f(x) = x^2 ; f
The output is :
\newcommand{\Bold}[1]{\mathbf{#1}}x \ {\mapsto}\ x^{2}
I am a completley noob regarding emacs, and I have a feeling that the answer is somewhat very simple, but i couldn't find it on the web =/
Thanks in advance,
David
OaaHThu, 23 Apr 2015 17:01:23 -0500http://ask.sagemath.org/question/26632/sage-mode in emacshttp://ask.sagemath.org/question/10952/sage-mode-in-emacs/I'm trying to get the syntax highlighting to work in emacs. I have tried to install sage-mode following the manual on the https://bitbucket.org/gvol/sage-mode/src/
This fail on running the first command:
`$ sage -f sage_mode`
with error message
`sage-run received unknown option: -f `
I use Sage Version 5.9.
Could someone help me with this please?TomasWed, 22 Jan 2014 00:43:46 -0600http://ask.sagemath.org/question/10952/Can't get sage-mode to load with emacs 24.2.1http://ask.sagemath.org/question/9764/cant-get-sage-mode-to-load-with-emacs-2421/Apologies for a rather newbie question, but I'm just getting started with Sage. I'd like to be able to use it in my favorite editor -- emacs. Sage seems to work just fine; I'm using it from the command line with no problems. But when I attempt to use sage-mode in emacs, I get this error at startup:
Symbol's value as variable is void: sage-command
A little history to show how I got here/replication:
1. Downloaded and installed Sage 5.6 64bit for OSX (running 10.8.2).
2. From within sage, did: install_package('sage-mode').
3. Appeared that sage-mode 0.7 was installed.
4. Started emacs, got this error: "Unknown button type `help-xref'"
5. Looking at threads, saw it might be a problem solved in the new "experimental" version of sage-mode 0.8.
(threads: https://groups.google.com/forum/?fromgroups=#!topic/sage-devel/HufugiDMyFQ)
5. From command line, did: sage -i http://boxen.math.washington.edu/home/iandrus/sage_mode-0.8.spkg
6. Now getting the current error on loading emacs.
My .init file has:
(add-to-list 'load-path "/Applications/sage/local/share/emacs")
(require 'sage "sage")
(setq sage-command "/Applications/sage/sage")
I've tried a number of things at the command-line level (symbolic link to sage file, editing PATH, editing the SAGE_ROOT directory, etc), but nothing seems to get me past the current error.
Any help is greatly appreciated. SavageHenrySun, 03 Feb 2013 07:58:21 -0600http://ask.sagemath.org/question/9764/sage-mode does not workhttp://ask.sagemath.org/question/9118/sage-mode-does-not-work/## System information
64-bit Linux OS
GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) of 2012-06-25
sage-mode-0.7
## Installation
On [sage-mode project page](http://wiki.sagemath.org/sage-mode?action=PackagePages) it is said that sage-mode should be installed with the following command:
sage -f sage-mode-0.7.spkg
This does not work though `sage-mode-0.6.spkg` can be installed this way without any problems.
In order to install this package I had to download it manually. Here is the correct installation command:
sage -f ~/Downloads/sage-mode-0.7.spkg
I have put the following code into my `emacs.el`:
(add-to-list 'load-path (expand-file-name
"/home/maksim/Applications/sage/data/emacs"))
(require 'sage "sage")
(setq sage-command "/home/maksim/Applications/sage/sage")
## Syntax highlighting
Running `M-x sage-mode` in Emacs leads to the following error message:
Symbol's value as variable is void: python-source-modes
though package `python` is a built-in one and works well.
In order to avoid this problem I have added the following code:
(setq python-source-modes 'python-mode)
This made sage-mode work properly (at least syntax highlighting).
## run-sage
`run-sage` command does not work. It reports
Symbol's value as variable is void: sage-buffer
Setting this variable to `nil` does not help:
Symbol's function definition is void: python-args-to-list
The file `.../lisp/progmodes/python.el` in the Emacs distribution does contain this function.Maksim ZholudevThu, 28 Jun 2012 03:08:23 -0500http://ask.sagemath.org/question/9118/syntax highlighting with sage-mode in emacshttp://ask.sagemath.org/question/9089/syntax-highlighting-with-sage-mode-in-emacs/When I use sage with sage-mode in emacs, I don't get any syntax hightlighting. The sage promt is colored differently but anything I enter at the prompt is colored with the default face. I would assume that in the simplest case, if I was to write some python code it would be colored the same as if I was in a `python-mode` buffer.
Am i missing something here? I am using `sage_mode-0.8.spkg`Sean LynchMon, 18 Jun 2012 08:57:38 -0500http://ask.sagemath.org/question/9089/sage-view not working in emacshttp://ask.sagemath.org/question/9088/sage-view-not-working-in-emacs/I'm trying to use sage-view in emacs with sage-mode.
My emacs configuration for Sage is as follows:
(setq sage-dir "~/Programming/Sage/sage-5.0.1")
(add-to-list 'load-path (expand-file-name (concat sage-dir "/data/emacs")))
(require 'sage "sage")
(setq sage-command (concat sage-dir "/sage"))
(require 'sage-view "sage-view")
(add-hook 'sage-startup-hook 'sage-view
'sage-view-enable-inline-output 'sage-view-enable-inline-plots)
But when emacs starts up, sage-view is not started. I have to manually start it with `M-x sage-view`.Sean LynchSun, 17 Jun 2012 13:22:03 -0500http://ask.sagemath.org/question/9088/Reinstall sage-mode after emacs upgradehttp://ask.sagemath.org/question/8761/reinstall-sage-mode-after-emacs-upgrade/Hi, I'm trying to reinstall sage mode after an upgrade of emacs (modules need to be byte-compiled with the new version of emacs).
sage -i sage-mode-0.6
tells me that it is already installed and does nothing.ThomasThu, 01 Mar 2012 02:04:07 -0600http://ask.sagemath.org/question/8761/