Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with extracting var section #2

Open
phrieder opened this issue Feb 26, 2019 · 2 comments
Open

Issue with extracting var section #2

phrieder opened this issue Feb 26, 2019 · 2 comments

Comments

@phrieder
Copy link

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.

@jacquelinekazmaier
Copy link

Hi @phrieder, please could you share how exactly you managed to run npm and create the metadata.json file? I am having trouble with this.

@Mohammadabd
Copy link

Hi @phrieder, please could you share how exactly you managed to run npm and create the metadata.json file? I am having trouble with this.

Just clone the repo and change directory to the repo and run npm install. It should download and install all dependencies for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants