improve comments
This commit is contained in:
parent
7e0960e7a0
commit
9ccb699fca
@ -23,8 +23,9 @@ if isfile(joinpath(@__DIR__, "..", "deps", "deps.jl"))
|
|||||||
else
|
else
|
||||||
# This is a bit dirty, but I don't really see why anyone should be forced
|
# 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
|
# to build Plots, while it will just include exactly the below line
|
||||||
# as long as now ENV["PLOTS_HOST_DEPENDENCY_LOCAL"] = "true" is given
|
# 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__ functtion
|
# 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 = ""
|
const plotly_local_file_path = ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,7 @@ end
|
|||||||
|
|
||||||
function standalone_html_window(plt::AbstractPlot)
|
function standalone_html_window(plt::AbstractPlot)
|
||||||
old = use_local_dependencies[] # save state to restore afterwards
|
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!
|
# when we have a local plotly downloaded this is the way to go!
|
||||||
use_local_dependencies[] = isfile(plotly_local_file_path)
|
use_local_dependencies[] = isfile(plotly_local_file_path)
|
||||||
filename = write_temp_html(plt)
|
filename = write_temp_html(plt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user