sage: tutorial??
Type:       instancemethod
String Form:<bound method _sage_doc.tutorial of
<sage.misc.sagedoc._sage_doc instance at 0x1418758>>
File:
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/sagedoc.py
Definition: tutorial(self)
Source:
    def tutorial(self):
        """
        The Sage tutorial.  To get started with Sage, start here.

        EXAMPLES::

            sage: tutorial()  # indirect doctest, not tested
        """
        self._open("tutorial")
sage:

PS. It looks like tutorial honours SAGE_BROWSER which can be used as a
workaround, but I do not have that set and tutorial is not using the
default browser...

tutorial is actually opened with xdg...

with SAGE_BROWSER set to 'firefox':

sage: from sage.misc.viewer import browser
sage: browser()
'sage-native-execute firefox'
sage:
Exiting Sage (CPU time 0m0.31s, Wall time 0m19.01s).
0 jan@muizenberg:~$unset SAGE_BROWSER
0 jan@muizenberg:~$sage
+--------------------------------------------------------------------+
| Sage Version 5.10, Release Date: 2013-06-17                        |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
+--------------------------------------------------------------------+
sage: from sage.misc.viewer import browser
sage: browser()
'sage-native-execute xdg-open'
sage:

>From a bash terminal, I can type

 xdg-open index.html

and that uses chrome, but

  xdg-settings get default-web-browser

says 'firefox.desktop'


Regards,
Jan



Regards,
Jan



On 8 July 2013 14:49, vdelecroix <20100.delecr...@gmail.com> wrote:

> Le lundi 8 juillet 2013 13:32:11 UTC+1, Jan Groenewald a écrit :
>
>> notebook() launches in firefox (my preferred browser on ubuntu 12.04).
>> tutorial() launches in chromium, why is that? Trying to do a from-source
>> install
>> so that I can look at the code.
>>
>
> You do not need to install from source to have the code on your computer.
> Everything is in $SAGE_ROOT/devel/sage-main/sage/ and you can even access
> the code within the console with
>
> sage: my_function??
>
> Vincent
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to