import pyLDAvis #create Topic Distance Visualization pyLDAvis.enable_notebook() lda_viz = pyLDAvis.gensim.prepare(lda_model, corpus, id2word) lda_viz