bmabey / pyLDAvis

Python library for interactive topic model visualization. Port of the R LDAvis package.
BSD 3-Clause "New" or "Revised" License
1.81k stars 363 forks source link

Change in behavior when running default code (local=False) #192

Closed msusol closed 3 years ago

msusol commented 3 years ago

When running the Gensim Newsgroup colab..

vis_data = gensimvis.prepare(lda, corpus, dictionary)
pyLDAvis.display(vis_data)

the new version now reports in developer's console

Refused to apply style from 'https://raw.githubusercontent.com/bmabey/pyLDAvis/master/pyLDAvis/js/ldavis.v1.0.0.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

If I run local=True, there is no error. Not sure what the cause of this is or if it's relevant to latest version of code.

vis_data = gensimvis.prepare(lda, corpus, dictionary)
pyLDAvis.display(vis_data, local=True)
bmabey commented 3 years ago

Okay, this should be resolved with 02a2e660. Reopen if that is not the case, thanks.