Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Ability to Remove Some Toolbar Buttons #2294

Closed
lumberbot-app bot opened this issue Mar 15, 2017 · 8 comments
Closed

Add the Ability to Remove Some Toolbar Buttons #2294

lumberbot-app bot opened this issue Mar 15, 2017 · 8 comments
Milestone

Comments

@lumberbot-app
Copy link

lumberbot-app bot commented Mar 15, 2017

Apologies if this is the wrong place to post this.

It would be nice to be able to remove some buttons from the toolbar. After adding some extensions my toolbar is overcrowded and spans two rows, but some of the buttons I never ever use. In particular the 'CellToolbar' button, presentation buttons, and 'Code/Markdown/etc' button use a lot of real estate for no useful functionality for me personally. It would be great to have a little config menu to deselect active buttons.


Originally opened as jupyter/jupyter_client#246 by @MikeDacre, migration requested by @Carreau

@lumberbot-app
Copy link
Author

lumberbot-app bot commented Mar 15, 2017

@takluyver commented: Hi Mike - issues relating to the notebook user interface are best on the notebook repo. This repo contains a Python API for talking the Jupyter protocol.

Let's see if this works:

@meeseeksdev, migrate to jupyter/notebook

@lumberbot-app
Copy link
Author

lumberbot-app bot commented Mar 15, 2017

@Carreau commented: nah, it's not enabled there. You need to go to https://github.com/integration/meeseeksdev and enable it. I've done it. I'll restart it and retry.

@parmentelat
Copy link
Contributor

I'd like to +1 this, or a slightly different variant:
even though we have the option to disable extensions one by one, having one keyboard shortcut - or an api - to hide/show the whole toolbar would be a plus.

PS.
I take it meeseeksdev is some experimental triage-assistant thingy; for what it's worth, I just wanted to outline that on this issue we've lost the identity of the initial requestor; it's accessible of course through the link but that makes it two clicks further - counting the one to come back here. just saying..

@takluyver
Copy link
Member

Unfortunately Github doesn't make it possible to migrate an issue and preserve the identity of people making the comments, but meeseeksdev does record who opened the original issue:

Originally opened as jupyter/jupyter_client#246 by @MikeDacre

@jtpio
Copy link
Member

jtpio commented Jun 20, 2023

Closing as fixed in Notebook 7:

This can be done by opening the Settings Editor and clicking on "Whether the item is ignored or not":

image

Then on the notebook page:

image

@parmentelat
Copy link
Contributor

This can be done by opening the Settings Editor and clicking on "Whether the item is ignored or not":

I don't get to see a third Settings tab after Files and Running, how does one go about enabling that ?

image

@jtpio
Copy link
Member

jtpio commented Jun 22, 2023

It will be added after clicking on Settings > Settings Editor

@parmentelat
Copy link
Contributor

thanks !

so I have been able to use the UI in order to remove the last 2 items:

  • Open in... aka interfaceSwitcher
  • The kernel name aka kernelName

and have observed the change to be stored in file
~/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/panel.jupyterlab-settings
where the toolbar key now contains

        {
            "name": "interfaceSwitcher",
            "command": "",
            "disabled": false,
            "rank": 990
        },
        {
            "name": "kernelName",
            "command": "",
            "disabled": false,
            "rank": 1000
        },
       <snip>

now, in the perspective of deploying ready-to-use containers for students, what would be in your experience the best way to have this as a default ? I can pre-populate this file of course, but are there other more programmatic ways to achieve the same result ?

to give some background, we used to achieve this kind of UI customization in the context of classic using custom.js and custom.css; are these still active hooks with nb7 ? I understand I could write an jlab extension for this sort of things, but it feels a little overkill; or is it ?

sorry for the flood of questions ;-) and thank you for all the work and the valuable insights !

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants