Ask Your Question

Revision history [back]

For changing the default pdf viewer, you can do:

from sage.misc.viewer import viewer
viewer.pdf_viewer('xournal')

Similarly use png_viewer for images.

For changing the default pdf viewer, viewer to, say, `xournal, you can do:

from sage.misc.viewer import viewer
viewer.pdf_viewer('xournal')

Similarly use png_viewer for images.

For changing the default pdf viewer to, say, `xournal, command to command (with its options), you can do:

from sage.misc.viewer import viewer
viewer.pdf_viewer('xournal')
viewer.pdf_viewer('command')

Similarly use png_viewer for images.

For changing the default pdf viewer command to commandcommand --option=foobar (with its options), , you can do:

from sage.misc.viewer import viewer
viewer.pdf_viewer('command')
viewer.pdf_viewer("command --option=foobar")

Similarly use png_viewer for images.

For changing the default pdf viewer command to command --option=foobar, you can do:

from sage.misc.viewer import viewer
viewer.pdf_viewer("command --option=foobar")

Similarly use png_viewerviewer.png_viewer for images.