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+0000 [-] Log opened.
2008-07-15 13:09:22+0000 [-] 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+0000 [-] reactor class: <class
'twisted.internet.selectreactor.SelectReactor'>
2008-07-15 13:09:22+0000 [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2008-07-15 13:09:22+0000 [-] 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+0000 [-] Saving notebook...
2008-07-15 13:15:34+0000 [-] Saving notebook...
2008-07-15 13:15:34+0000 [-] Notebook cleanly saved.
2008-07-15 13:15:34+0000 [-] Notebook cleanly saved.
2008-07-15 13:15:34+0000 [-] Main loop terminated.
2008-07-15 13:15:34+0000 [-] 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to