_Originally posted by @cailiang9 in https://github.com/jupyter/notebook/issue_comments#issuecomment-424968462_
There was a lot of discussion about the run button, and in the end it was kept for mobile devices, IIRC: https://github.com/jupyter/notebook/issues/3772
Hello. The "run_this_cell" button still exists in my notebook 5.7.0 (Chrome 69.0, desktop / windows):

As I understand, it should have been removed?
Its visibility should depend on the CSS any-pointer media feature, for the presence of at least one 'pointing device of limited accuracy'. In practice, that should mean that the icons show up if you have a touchscreen.
We could consider using the pointer media feature, which only considers the 'primary' pointing device. I don't know how that's defined, but presumably it would hide them if you have both a mouse and a touchscreen.
Thank you for the reply, @takluyver
Are there any way to get rid of this run button? I would appreciate any hack (css or greasemonkey script) as well.
If you can find a more specific CSS rule you should be able to override it with display: none. This is the CSS that currently controls it:
Many thanks, @takluyver !
How do I get it back? I should clarify. I have jupyter installed through anaconda. using jupyter version 5.7.4 on mac mini, using google chrome.
Answered my own question.
modified the following two files:
[anaconda directory]/pkgs/notebook-5.7.4-py37_0/lib/python3.7/site-packages/notebook/static/style/style.min.css
[anaconda directory]/pkgs/notebook-5.7.4-py37_0/lib/python3.7/site-packages/notebook/static/style/ipython.min.css
in both files look for:
div.run_this_cell {
display: none;
...
}
in both files (might need to change only one, but I changed both)change display: none; to display: block;
div.run_this_cell {
display: block;
...
}
and then restart notebook.
You may check my fork: https://github.com/cailiang9/notebook/ or pip install notebook1 to feel the convenient run button.
Another way is to use google colab (with much better UX and notebook management) to connect to your local environment (or even cloud gpu environment using port forward): https://research.google.com/colaboratory/local-runtimes.html
Is there a way to enable the run button without relying on a CSS hack?
Couldn't it be made "toggable" like other UI compenents?

under the View Menu
Right now I have to inspect and edit the HTML every time to enable it.
I seem to still get the button in notebook version 6.0.0. I have checked the CSS files mentioned in previous comments and the display option is set to "none". That doesn't seem to do anything. I have also tried to set those to "block", as suggested by @estbiostudent, but that doesn't have any effect either.
Any ideas on how to get rid of these buttons would be greatly appreciated.
I seem to still get the button in notebook version 6.0.0. I have checked the CSS files mentioned in previous comments and the display option is set to "none". That doesn't seem to do anything. I have also tried to set those to "block", as suggested by @estbiostudent, but that doesn't have any effect either.
Any ideas on how to get rid of these buttons would be greatly appreciated.
Hi, Here Pruthviraja L, when I installed new Anaconda I too got the same problem but after doing that method on fixing None to block in both the setting files and after restarting the jupyter notebook, my problem has got solved. Please check once and if you find it useful share to others also, thank you.
Answered my own question.
modified the following two files:
[anaconda directory]/pkgs/notebook-5.7.4-py37_0/lib/python3.7/site-packages/notebook/static/style/style.min.css[anaconda directory]/pkgs/notebook-5.7.4-py37_0/lib/python3.7/site-packages/notebook/static/style/ipython.min.css
in both files look for:
div.run_this_cell {
display: none;
...
}in both files (might need to change only one, but I changed both)change display: none; to display: block;
div.run_this_cell {
display: block;
...
}and then restart notebook.
Hi, Thanks a lot, it worked for me. Happy to see your answer.
Could it just be an option to have run button or not? Ssome like it, some hate it, but having to edit the html / css is a pain for the users.
@hoegge I made a feature request for that here as an nb extension https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1511.
I agree and hope that we can get can easily have the option to get it back one day.
Most helpful comment
Answered my own question.
modified the following two files:
[anaconda directory]/pkgs/notebook-5.7.4-py37_0/lib/python3.7/site-packages/notebook/static/style/style.min.css
[anaconda directory]/pkgs/notebook-5.7.4-py37_0/lib/python3.7/site-packages/notebook/static/style/ipython.min.css
in both files look for:
div.run_this_cell {
display: none;
...
}
in both files (might need to change only one, but I changed both)change display: none; to display: block;
div.run_this_cell {
display: block;
...
}
and then restart notebook.