From 23ac07b87b3206ff09705190921510170d95c3bc Mon Sep 17 00:00:00 2001 From: Spencer Lyon Date: Fri, 28 Apr 2017 16:50:33 -0400 Subject: [PATCH] ENH: automatically download plotly.js if it is not available --- src/PlotlyJS.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PlotlyJS.jl b/src/PlotlyJS.jl index 7fe385b6..f8b757c5 100644 --- a/src/PlotlyJS.jl +++ b/src/PlotlyJS.jl @@ -126,6 +126,10 @@ function __init__() # --------------------------------------------- # # Code to run once when the notebook starts up! # # --------------------------------------------- # + if !isfile(_js_path) + info("plotly.js javascript libary not found -- downloading now") + include(joinpath(dirname(_js_path), "build.jl")) + end if _isijulia()