[sage-support] Re: Sage does not start from desktop icon

2008-07-15 Thread Lars Fischer

Hello Alejandro,

what happens, if you enter the command
notebook(open_viewer=True)
at the sage console?
Also try: properties of the Icon, Application tab, Advanced options,
Do not close when command exits. Watch for error messages.

I have a certain suspicion, that sage tries to open a viewer, that
does not exist.

You can set the viewer with the environment variable SAGE_BROWSER,
for example (one single line at the unix console):
SAGE_BROWSER=firefox sage -c notebook(open_viewer=True)
which execute the command after the -c option.
Try a full path instead of firefox, if there are problems.
Also try:
sage -c notebook()
Another possibility is:
sage -notebook

If one of these works (the last two are equivalent to
1. starting sage
2. executing notebook()
and this seems to work for you),
use one of the two lines in your
SAGE-notebook.desktop file, for example:
Exec=/usr/local/bin/sage -notebook

With best regards,
Lars
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage does not start from desktop icon

2008-07-15 Thread Alejandro Jakubi

Hello Lars

 what happens, if you enter the command
 notebook(open_viewer=True)
 at the sage console?

The notebook opens the same, apparently, as with the command
'notebook()'.

 Also try: properties of the Icon, Application tab, Advanced options,
 Do not close when command exits. Watch for error messages.

Right now I am in Gnome, and Properties of the Icon does not have an
Application tab. I will switch to KDE and tell you later.

 I have a certain suspicion, that sage tries to open a viewer, that
 does not exist.

 You can set the viewer with the environment variable SAGE_BROWSER,
 for example (one single line at the unix console):
 SAGE_BROWSER=firefox sage -c notebook(open_viewer=True)
 which execute the command after the -c option.

OK. This is bash and Debian Etch has Iceweasel, not
Firefox...iceweasel is in the path.
Then I executed at the shell:

export SAGE_BROWSER='iceweasel sage -c notebook(open_viewer=True)'

This sets the SAGE_BROWSER environment variable, but does not improve
making the icon work.

 Also try:
 sage -c notebook()

This is curious. I get this output on the console:

===
The notebook files are stored in: /home/jakubi/.sage//sage_notebook
**
**
* Open your web browser to http://localhost:8000 *
**
**
2008-07-15 13:09:22+ [-] Log opened.
2008-07-15 13:09:22+ [-] twistd 8.0.1 (/usr/local/sage-3.0.2-
debian32-intelx86-i686-Linux/local/bin/python 2.5.2) starting up
2008-07-15 13:09:22+ [-] reactor class: class
'twisted.internet.selectreactor.SelectReactor'
2008-07-15 13:09:22+ [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2008-07-15 13:09:22+ [-] Starting factory
twisted.web2.channel.http.HTTPFactory instance at 0xb6b33a4c
===

Then a new Iceweasel window opens with the Sage group homepage (http://
www.sage.com/ ) in the first tab and my worksheet list (http://
localhost:8000/home/admin/) in the second tab.

With Ctrl-C in the sage console, it closes with these messages:

===
2008-07-15 13:15:34+ [-] Saving notebook...
2008-07-15 13:15:34+ [-] Saving notebook...
2008-07-15 13:15:34+ [-] Notebook cleanly saved.
2008-07-15 13:15:34+ [-] Notebook cleanly saved.
2008-07-15 13:15:34+ [-] Main loop terminated.
2008-07-15 13:15:34+ [-] Server Shut Down.
===

 Another possibility is:
 sage -notebook

The same effect.

 use one of the two lines in your
 SAGE-notebook.desktop file, for example:
 Exec=/usr/local/bin/sage -notebook

This works: it opens the worksheet list in a new tab (in the same
Iceweasel window where I am editing this post). It has not opened a
Sage group tab (I will see again when I post and close Iceweasel).

Regards, Alejandro

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage does not start from desktop icon

2008-07-15 Thread Alejandro Jakubi

Confirmed, with

Exec=/usr/local/bin/sage -notebook

in the SAGE-notebook.desktop file, it opens a Gnome terminal window
with the messages copied in to the previous post and it opens
Iceweasel with the worksheet list.

Alejandro



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage does not start from desktop icon

2008-07-15 Thread Alejandro Jakubi

Lars,

 Also try: properties of the Icon, Application tab, Advanced options,
 Do not close when command exits. Watch for error messages.

Now in KDE I have done this and got this error message in the konsole:

===
  File /home/jakubi/notebook.py, line 3
notebook(open viewer=True)
   ^
SyntaxError: invalid syntax
===

The other form of desktop file does not work yet here as it opens
Konqueror, which gives some other errors. Presumably  this is well
known (because of the advise to use Firefox). I will see to change the
(default) browser to Icewasel in KDE also.

Alejandro


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage does not start from desktop icon

2008-07-15 Thread Timothy Clemans

open_viewer=True

the underscore was missing

On Tue, Jul 15, 2008 at 10:24 AM, Alejandro Jakubi [EMAIL PROTECTED] wrote:

 Lars,

 Also try: properties of the Icon, Application tab, Advanced options,
 Do not close when command exits. Watch for error messages.

 Now in KDE I have done this and got this error message in the konsole:

 ===
  File /home/jakubi/notebook.py, line 3
notebook(open viewer=True)
   ^
 SyntaxError: invalid syntax
 ===

 The other form of desktop file does not work yet here as it opens
 Konqueror, which gives some other errors. Presumably  this is well
 known (because of the advise to use Firefox). I will see to change the
 (default) browser to Icewasel in KDE also.

 Alejandro


 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage does not start from desktop icon

2008-07-15 Thread Alejandro Jakubi

Thank you, that was. I have removed notebook.py that was generated
wrong (see above) and clicking on the icon makes the notebook session
open.

However, it still opens a console window that remains after I close
the notebook session. I can close it with Ctrl-C. Is this the expected
behavior? If unavoidable that this console window opens, is it
possible to get it open minimized and close automatically when I close
the notebook?

Also,  the link http://www.sagemath.org/art/ after this sentence
For a picture for your icon, check out the Sage art at, in
http://www.sagemath.org/doc/html/inst/node11.html is broken

Where do I get the Sage icon picture?

Alejandro

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage does not start from desktop icon

2008-07-14 Thread Alejandro Jakubi

I do not know why two posts were generated as I have sent once.

May be worth adding that Sage starts OK from the console, and the
notebook interface opens fine using the command notebook() at the sage
prompt.

By the way, the link http://www.sagemath.org/art/ after this sentence
For a picture for your icon, check out the Sage art at.

Where do I get it?

Alejandro
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---