Offline Mode in Jupyter Notebook shows blank graphs

Iā€™m using plotly version 1.12.9 and also getting a similar error to above:

Uncaught Error: Script error for "plotly"
http://requirejs.org/docs/errors.html#scripterror
    at makeError (require.js:165)
    at HTMLScriptElement.onScriptError (require.js:1732)