Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I accepted the answer above. In the spirit of someone else having this issue here is what worked for me:

Create a init.sage file in .sage folder (probably located in home folder)

Use the code : from sage.misc.viewer import viewer viewer.browser('YOUR_FAV_BROWSER')

where YOUR_FAV_BROWSER is the one you want.

In my case defining a SAGE_BROWSER variable in .bashrc didn't work.

I accepted the answer above. In the spirit of someone else having this issue here is what worked for me:me.

Create a init.sage file in .sage folder (probably located in home folder)

Use the code :

from sage.misc.viewer import viewer viewer

viewer.browser('YOUR_FAV_BROWSER')

where YOUR_FAV_BROWSER is the one you want.

NOTE: In my case defining a SAGE_BROWSER variable in .bashrc didn't seem to work.

I accepted the answer above. In the spirit of someone else having this similar issue here is what worked for me.me. I found the sage documentation somewhat unclear.

I took the following steps:

  • Create a init.sage file in .sage .sage folder (probably (most likely located in home folder)

    with the following code in it. Use the code :

    from sage.misc.viewer import viewer

    viewer
    viewer.browser('open -a /path to your_fav_browser/YOUR_FAV_BROWSER')

    viewer.browser('YOUR_FAV_BROWSER')

    where YOUR_FAV_BROWSER is the one browser you want.

  • Add the code export SAGE_BROWSER="YOUR_FAV_BROWSER"

NOTE: In my case defining a I am assuming bash already knows the path to SAGE_BROWSERYOUR_FAV_BROWSER in .bashrc didn't seem to work. .