Toolbar not visible after setting jupyter notebook theme

后端 未结 4 1040
盖世英雄少女心
盖世英雄少女心 2021-02-08 10:52

The toolbar and notebook name does not show when I call and load the themes from the notebook.

I can load the themes from notebook using a code but I am not sure how to

相关标签:
4条回答
  • 2021-02-08 11:09

    I was able to solve this by editing the custom.css file located at ~/.jupyter/custom/custom.css. I changed the mailtoolbar setting from ’none’ to ‘block’. i.e. find this line:

        div#maintoolbar {
            display: none !important;
        }
    

    ...and change it to:

        div#maintoolbar {
            display: block !important;
        }
    

    Hope that works for you too! Don't imagine looking for reasons it failed to start with, however, there is a theory one cannot update while it is running.

    0 讨论(0)
  • 2021-02-08 11:21

    I just installed the jupyter themes and went thru the same issue. My regular and nbextension toolbar disappeared and could not make it come back unless I reverted to default !jt -r.

    after some research i fugure it out....so your cell should write

    from jupyterthemes import get_themes import jupyterthemes as jt from jupyterthemes.stylefx import set_nb_theme set_nb_theme('solarizedd', -T, -N,-kl)

    • Toolbar Visible -T
    • Name & Logo Visible -N
    • Kernel Logo Visible -kl
      • their defaults are set to none

    see the documentation documentation of jupyter theme

    or something more permanent and fewer lines of code, using the command "!" in the actual cell

    !jt -t solarizedd -T -N -kl
    
    0 讨论(0)
  • 2021-02-08 11:21

    jt -t oceans16 -T -N

    this would surely help.

    0 讨论(0)
  • 2021-02-08 11:26

    Have you tried to update to the latest version? I have tried many suggestions. All did not work until I updated the theme package to the latest version

    pip install --upgrade jupyterthemes
    

    I found the solution here

    0 讨论(0)
提交回复
热议问题