Jupyter-themes: `Toggle Header` and `Toggle Toolbar` do not work in grade3 theme?

Created on 21 Dec 2016  路  23Comments  路  Source: dunovank/jupyter-themes

Does jupyter-themes support those two view triggers?

Most helpful comment

@xiahk make sure you have the latest version installed (pip install --upgrade jupyterthemes) and try jt -t grade3 -T

Still not working?

All 23 comments

Could you provide the input and output?

@dunovank Sorry, I am not sure how to collect the input and output. Can you give me some instructions?

I suppose you should try -T option first.

@xiahk make sure you have the latest version installed (pip install --upgrade jupyterthemes) and try jt -t grade3 -T

Still not working?

assuming this is resolved since no one has responded.

I'm having this issue and it's consistent across all themes. The toolbar and header don't appear at all. The output of jt -t grade3 -T (or for any theme) doesn't produce anything.

Output in browser console:

extension.js Failed to load resource: the server responded with a status of 404 (Not Found)
main.min.js:36594 Widgets are not available.  Please install widgetsnbextension or ipywidgets 4.0
(anonymous) @ main.min.js:36594
main.min.js:24777 Session: kernel_created (38364294-a93a-4174-823f-e42546b7076c)
main.min.js:23933 Starting WebSockets: ws://localhost:8888/api/kernels/c95e505f-593b-44ff-afc1-765493488107
main.min.js:23577 Kernel: kernel_connected (c95e505f-593b-44ff-afc1-765493488107)
main.min.js:23577 Kernel: kernel_ready (c95e505f-593b-44ff-afc1-765493488107)

I've verified that widgetsnbextension is installed. Here is copy of pip freeze:

appdirs==1.4.3
appnope==0.1.0
bleach==2.0.0
decorator==4.0.11
entrypoints==0.2.2
html5lib==0.999999999
ipykernel==4.6.0
ipython==5.3.0
ipython-genutils==0.2.0
ipywidgets==6.0.0
Jinja2==2.9.6
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.0.1
jupyter-console==5.1.0
jupyter-core==4.3.0
jupyterthemes==0.15.3
lesscpy==0.12.0
MarkupSafe==1.0
mistune==0.7.4
nbconvert==5.1.1
nbformat==4.3.0
nltk==3.2.2
notebook==5.0.0
numpy==1.12.1
packaging==16.8
pandocfilters==1.4.1
pexpect==4.2.1
pickleshare==0.7.4
ply==3.10
prompt-toolkit==1.0.14
ptyprocess==0.5.1
Pygments==2.2.0
pyparsing==2.2.0
python-dateutil==2.6.0
pyzmq==16.0.2
qtconsole==4.3.0
scikit-learn==0.18.1
scipy==0.19.0
simplegeneric==0.8.1
six==1.10.0
terminado==0.6
testpath==0.3
tornado==4.4.3
traitlets==4.3.2
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==2.0.0

ahh thanks for the heads up. I'll re-open the issue until this gets sorted out.

Did a fresh pip install with that requirements.txt freeze pasted above ... same problem. :(

I know this isn't a fix but a temporary workaround is to use the command palette which gives access to the same options as the toolbar and header. I've ended up using it by default since it frees up space at the top of my notebooks and has hotkey access.

OSX shortcut: cmd-shift-P
linux/windows hotkey: ctrl-shift-P (i think...)

Also, in Jupyter Notebook 5.0 (pip install --upgrade notebook) allows you to modify keyboard shortcuts (Help Menu > Edit Keyboard Shortcuts). So you can customize the command palette hotkey to your liking.

That said I realize that many people probably still prefer the toolbar/header so I'll still look for a fix to the toggling issue. Just posting this since I've come across many people who don't know the command palette exists as a feature and it might help some users in the interim.

I have the same issue these days. Previously when use -T and -N the toggle bars just show up. But recently I found after I command them I have to go back to the notebook to click the toggle header in the command banner at the top.

Would someone mind upgrading to the newest release of jupyterthemes and checking if this has been resolved?

pip install --upgrade jupyterthemes

This has been resolved on my system. Closing due to lack of activity.

Unfortunately not working for me, even with the upgraded version.

If you go to the View dropdown menu and select 'Toggle Toolbar', does that work? (After running jt -t grade3 -T)

Yep that works, after running jt -t grade3 -T. Not sure if it's easy or not, but perhaps it could be useful to run that command automatically upon installation?

jt -t grade3 -T worked for me, too.

jt -t chesterish -N -T -kl worked for me too (Black theme)

jt -t chesterish -N -T -kl worked for me too (Black theme)

this worked for the home but when I open the notebook itself, still no change

jt -t chesterish -N -T -kl worked for me too (Black theme)

this worked for the home but when I open the notebook itself, still no change

ooh.. this worked after I clicked the View dropdown. Thanks a lot!

how to view toggle toolbar in jupyter in latest version of jupyter notebook

this issue looks abandoned after the last few years, but i just installed jupyterthemes, and the header and toolbar are not showing up again. also, i am not able to use the view>toggle options to restore them. for clarity, i'm on monokai, and have the rest of these settings specified: !jt -t monokai -cursc r -cursw 2 -fs 120 -ofs 120 -tfs 120 -nfs 120 -cellw 88% -T

I tried to reproduce your issue, but everything worked out well for me. You might wanna test it in a new environment.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

suberlak picture suberlak  路  4Comments

VimalMollyn picture VimalMollyn  路  4Comments

shravankumar147 picture shravankumar147  路  3Comments

ozkansafak picture ozkansafak  路  3Comments

baibai25 picture baibai25  路  8Comments