On Fri, Mar 10, 2017 at 7:23 PM, Samuel Lelievre <samuel.lelie...@gmail.com> wrote: > Thu 2017-02-16 16:33:56 UTC+1, Emmanuel Charpentier: > >> Dear Erik, >> >> Le jeudi 16 février 2017 11:09:00 UTC+1, Erik Bray a écrit : >> >>> On Thu, Feb 16, 2017 at 8:26 AM, Emmanuel Charpentier wrote: >>> >>> > This is a followup on the threads dedicated to the alternatives >>> > existing to >>> > use Sage math on Windows. More specifically, I did an informal >>> > comparison of >>> > Erik Bray's Cygwin-based installer and using Windows 10 64 bits Windows >>> > Subsystem for Linux. > > [...] > >>> Did you also test plotting? >> >> In the Jupyter notebook. It worked. I can't recall having tested it in a >> terminal >> windows nor in a mintty console, but I would have probably noted >> if it didn't work... >> >>> It should work, but one or two people >>> have reported it not working (it should work as long as your Windows >>> has a default program registered for viewing PNGs or whatever file >>> type the plots are saved as). >> >> I don't know if a "stock" Windows machine even has such a program : >> .png is quite foreign in the Windows world, where the natives are >> expected to speak .bpm (yuck !) .wmf (yuckier :-) or .emf (yuckiest...) > > A stock windows machine probably has a web browser, > and any modern web browser can view PNGs. > > If nothing is registered as the default program for viewing PNGs, > I guess you could set the default to your favourite web browser > by visiting the appropriate preference pane.
Right--the way I've handled plotting (in the command line, that is) is I set the BROWSER environment variable to cygstart, and Sage uses this variable, if it's set, in determining how to open image files. cygstart is a program in Cygwin that just opens a file with the default handler for that filetype in the registry. I believe if no default handler is found then the standard Windows pop-up for unknown file types, allowing you to specify a default program (or "app" as it now says on Windows 8 and up) to open files of that type. So in other words, the behavior (and indeed Windows API calls) are the same as when you double-click a file in Explorer. -- 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 https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.