cannot require plotly.js file
slfan2013 opened this issue · 0 comments
slfan2013 commented
The following code does not work.
p = new Parallel([0,1,2], {maxWorkers:6,env: {
keysMap:"test"
},evalPath: 'js/eval.js' });
p.require("https://cdn.plot.ly/plotly-latest.min.js")
p.map( function (ind) {
return(0)
}).then(function(result){console.log(result)})
Something wrong with the code of p.require("https://cdn.plot.ly/plotly-latest.min.js"). If I change the url to something else, it works. For example,
p = new Parallel([0,1,2], {maxWorkers:6,env: {
keysMap:"test"
},evalPath: 'js/eval.js' });
p.require("https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js")
p.map( function (ind) {
return(0)
}).then(function(result){console.log(result)})
Is it because the size of plotly-latest.min.js is too big for parallel.js?