Ask Your Question

Revision history [back]

From the notebook, evaluate the variable DATA; you'll get something like

'/Users/jlv/.sage/sage_notebook.sagenb/home/admin/42/data/'

(although probably with a different number than "42"). It looks to me as though the output directory for write_to_eps is obtained by replacing data with cells, or actually a subdirectory of

'/Users/jlv/.sage/sage_notebook.sagenb/home/admin/42/cells/'

Because of this, from the notebook, I often specify a full path when outputting: g.write_to_eps('/Users/jlv/Desktop/sage.eps'), for example.