将 pyLDAvis 图导出为独立网页

Export pyLDAvis graphs as standalone webpage

我正在使用主题建模分析文本,并为此使用 Gensim 和 pyLDAvis。想与远方的同事分享结果,而不需要他们安装 python 和所有必需的库。 有没有办法将交互式图表导出为 HTML/JS 可以上传到任何网络服务器的文件? 我发现文档中提到了一些内容,但不知道如何实现它: https://github.com/bmabey/pyLDAvis/blob/master/pyLDAvis/_display.py

pyLDAvis.save_html 应该有效:

p = pyLDAvis.gensim.prepare(topic_model, corpus, dictionary)
pyLDAvis.save_html(p, 'lda.html')