I am using Julia 0.4.5 on Windows 7.
When I invoke Gadfly.plot, Internet Explorer opens up to display the plot.
How can I configure Julia to use a browser of my choice (like Google Chrome) to display Gadfly plots?
I am using Julia 0.4.5 on Windows 7.
When I invoke Gadfly.plot, Internet Explorer opens up to display the plot.
How can I configure Julia to use a browser of my choice (like Google Chrome) to display Gadfly plots?
It seems Gadfly use this function to open .html file:
function open_file(filename)
    if OS_NAME == :Darwin
        run(`open $(filename)`)
    elseif OS_NAME == :Linux || OS_NAME == :FreeBSD
        run(`xdg-open $(filename)`)
    elseif OS_NAME == :Windows
        run(`$(ENV["COMSPEC"]) /c start $(filename)`)
    else
        warn("Showing plots is not supported on OS $(string(OS_NAME))")
    end
end
So for Windows, you can write your alternative cmd.exe(maybe a .bat that checks if the argument is a .html, then launch chrome or pass to the true cmd.exe), and replace ENV["COMSPEC"]
try: Set Google chrome as default browser for your all .html or .htm files.