improve comments

This commit is contained in:
SimonDanisch 2018-10-05 12:33:13 +02:00
parent 7e0960e7a0
commit 9ccb699fca
2 changed files with 4 additions and 3 deletions

View File

@ -23,8 +23,9 @@ if isfile(joinpath(@__DIR__, "..", "deps", "deps.jl"))
else
# This is a bit dirty, but I don't really see why anyone should be forced
# to build Plots, while it will just include exactly the below line
# as long as now ENV["PLOTS_HOST_DEPENDENCY_LOCAL"] = "true" is given
# If the above env is set + plotly_local_file_path = "", it will warn in the __init__ functtion
# as long as `ENV["PLOTS_HOST_DEPENDENCY_LOCAL"] = "true"` is not set.
# If the above env is set + `plotly_local_file_path == ""``,
# it will warn in the __init__ function to run build
const plotly_local_file_path = ""
end

View File

@ -43,7 +43,7 @@ end
function standalone_html_window(plt::AbstractPlot)
old = use_local_dependencies[] # save state to restore afterwards
# if we open a browser ourself, we can host local files, so we
# if we open a browser ourself, we can host local files, so
# when we have a local plotly downloaded this is the way to go!
use_local_dependencies[] = isfile(plotly_local_file_path)
filename = write_temp_html(plt)