pskrunner14 / trading-bot

Stock Trading Bot using Deep Q-Learning
MIT License
979 stars 341 forks source link

Error loading script: Script error for "vega-embed" http://requirejs.org/docs/errors.html#scripterror in visualize.ipynb #7

Closed THINK989 closed 4 years ago

THINK989 commented 4 years ago

I ran all the cells from visualize.ipynb, on the last cell it's giving me an error Last cell: -

chart = visualize(df, history, title=test_stock)
chart

error: -

Error loading script: Script error for "vega-embed" http://requirejs.org/docs/errors.html#scripterror

Something to do with vega-embed, I can't find what is causing the problem. I also tried the URL http://requirejs.org/docs/errors.html#scripterror it showing something related to javascript. I don't know how to debug this error.

SCRIPT ERROR
§ 7
This occurs when the script.onerror function is triggered in a browser. This usually means there is a JavaScript syntax error or other execution problem running the script. To fix it, examine the script that generated the error in a script debugger.

This error may not show up in IE, just other browsers, and instead, in IE you may see the No define call for ... error when you see "Script error". This is due to IE's quirks in detecting script errors.
THINK989 commented 4 years ago

It is now working, I don't know what caused the problem thanks anyways. I will close the issue