SunnySuite / Sunny.jl

Spin dynamics and generalization to SU(N) coherent states
Other
86 stars 19 forks source link

Graphics update #30

Closed kbarros closed 2 years ago

kbarros commented 2 years ago

Cleaning up some of the SunnyGfx code. Now includes a more convenient way to open a browser. Would be nice to test on Linux and Windows before merging.

kbarros commented 2 years ago

David pointed out that there is a problem on Linux: Any Linux application installed with Snap will not have access to files outside the user's home directory. This means that a standard Linux browser will typically not be able to open the temporary HTML files we create with browser(viewer). The resolution here is to print a warning on Linux systems, and suggest that users include an optional argument browser(viewer; dir=...), where dir should be somewhere in the home directory, for accessibility to Snap applications. With this, browser() has been tested to work on both Linux and Mac. If we discover problems on Windows we can fix them in a follow up.