Sentdex / socialsentiment

Sentiment Analysis application created with Python and Dash, hosted at socialsentiment.net
MIT License
464 stars 167 forks source link

https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js is not available #16

Open amirunpri2018 opened 4 years ago

amirunpri2018 commented 4 years ago

please how solution https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js is not available

danhphan commented 3 years ago

As in the instruction: dev_server.py - If you wish to run this application locally, on the dev server, run via this instead.

So if we run locally: we need to go to the project directory and run dev_server.py using command link:python dev_server.py

Also, we need to enable Dash offline by adding these 2 lines before server = app.server in dash_mess.py

# Set run locally
app.css.config.serve_locally = True
app.scripts.config.serve_locally = True

server = app.server

Source is this link: https://github.com/plotly/dash/issues/46