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

Python Visualization Fails to start #39

Closed
Grinshpun opened this issue Nov 7, 2015 · 1 comment
Closed

Python Visualization Fails to start #39

Grinshpun opened this issue Nov 7, 2015 · 1 comment

Comments

@Grinshpun
Copy link

Mr. Mabey

My original problem has come back after I used the "gensim_speed" branch variation of the bug fix for 1.3.1. The original problem #33 that you closed last week appears to be deeper than originally thought. I an running Win 10, Python 3.4.3.6, and pyLDAvis 1.3.1 with the gensim_speed correction. I used the ipython -i at the commend prompt to enter the intractive mode, loaded the model and and ran prepare, and got the same printout as it was in #33 . PFA the screenshots with the problem. I suspect I'm doing something wrong - but I have no idea what can it possibly be, since I'm only running the simplest commands.

Thanks
Vadim

nodiagram1
nodiagram2
nodiagram3

@bmabey
Copy link
Owner

bmabey commented Nov 8, 2015

As I said in #33 you need to be using the IPython notebook if you want to display the visualization inline. It will not work with the IPython shell or QT frontends since the viz requires javascript and CSS. Start up ipython with ipython notebook and run your same commands to see the visualization.

Alternatively, if you don't want to use IPython notebook you can have pyLDAvis start up a webserver with the show function that I also mentioned in #33:

vis_data = pyLDAvis.gensim.prepare(lda, corpus, dictionary)
pyLDAvis.show(vis_data)

@bmabey bmabey closed this as completed Nov 8, 2015
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

2 participants