You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks so much for providing this solution. I was able to run npm and create the metadata.json file, however as I want to pass on the pyLDAvis object to the pyldavis_dash.pyLDAvis output, I'm having some issues. How exactly should I extract the var section (as per your instructions)?
This is my code to create the pyLDAvis object and save it as html: panel = pyLDAvis.gensim.prepare(lda_model, bow_corpus, id2word) pyLDAvis.display(panel) pyLDAvis_file = os.path.join(data_path,'plots/pyLDAvis.html') pyldavis_figure = pyLDAvis.save_html(panel, pyLDAvis_file)
And then trying to pass it on to the dash output: return [ html.Div( className='eight columns', children=[ pyldavis_dash.pyLDAvis( id='lda_graph', data=pyldavis_figure ) ]) ]
The html file was created successfully, and I can load it outside of my dash app in Chrome. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Thanks so much for providing this solution. I was able to run npm and create the metadata.json file, however as I want to pass on the pyLDAvis object to the pyldavis_dash.pyLDAvis output, I'm having some issues. How exactly should I extract the var section (as per your instructions)?
This is my code to create the pyLDAvis object and save it as html:
panel = pyLDAvis.gensim.prepare(lda_model, bow_corpus, id2word)
pyLDAvis.display(panel)
pyLDAvis_file = os.path.join(data_path,'plots/pyLDAvis.html')
pyldavis_figure = pyLDAvis.save_html(panel, pyLDAvis_file)
And then trying to pass it on to the dash output:
return [ html.Div( className='eight columns', children=[ pyldavis_dash.pyLDAvis( id='lda_graph', data=pyldavis_figure ) ]) ]
The html file was created successfully, and I can load it outside of my dash app in Chrome. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: