On 2014-03-12, Dima Pasechnik <[email protected]> wrote:
> On 2014-03-12, sasha <[email protected]> wrote:
>>
>>
>> I have read this in sage tutorial:
>>
>> You can use %edit (or %ed or ed) to open an editor, if you want to type in 
>> some complex code. Before you start Sage, make sure that the EDITOR 
>> environment variable is set to your favorite editor (by putting export 
>> EDITOR=/usr/bin/emacs or export EDITOR=/usr/bin/vim or something similar in 
>> the appropriate place, like a .profile file).
>>
>> I added "export EDITOR=/usr/bin/gedit" in .bashrc file  and run "source 
>> ~/.bashrc".
>>
>> When i write %edit in sage I get WARNING: Could not open editor.
>
> it depends upon how you run Sage. If you run Sage in an environment
> where your terminal cannot talk to the X11 server, then it will not
> work. (E.g. it won't work on cloud.sagemath.com)
>
> It will only work either locally, i.e. on, say, a desktop running
> Linux (and Gnome as a GUI), or when you do a ssh login to a remote
> machine, enabling X11 connections...

I forgot to say that if instead you use an editor that runs in the
terminal, such as vim, or emacs, or nano, that kind of issues would
not pop up.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to