user-interfaceiconsjupyter-lab

Jupyter Lab interface icons are missing - how to fix?


I have encountered a problem in Jupyter Lab: the icons in the panel menu and the panel bar are not listed. Instead, I see empty spaces where their icons should be (screenshots attached).enter image description here

enter image description here

Here is what I have already tried to solve the problem:

Unfortunately, none of these steps helped


Solution

  • I found it! It's because of dynamic visualization.

    First, I restarted the kernel with clearing all outputs. And the interface icons appeared! So it's a cell issue.

    I started running all the cells one by one and found the problematic one. It didn't change the settings in any way. It was just that the visualization output on it was kind of bad and I didn't like it right away. But I didn't immediately notice the interface failure and didn't connect it with the output problem.

    Now, instead of outputting to the screen, I set saving the results to a file and the interface miraculously recovered! And the output in html itself looks better.

    Here is the code that breaks:

    pyLDAvis.enable_notebook()
    lda_vis = gensimvis.prepare(lda_model, corpus, dictionary, sort_topics=False)
    pyLDAvis.display(lda_vis)
    

    Here is the code that creates:

    lda_vis = gensimvis.prepare(lda_model, corpus, dictionary, sort_topics=False)
    # Saving visualization to HTML file
    pyLDAvis.save_html(lda_vis, 'lda_vis.html')
    print('Visualization saved to lda_vis.html')