-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Toolbar buttons are added to the right of the kernel selector widget #7128
Comments
Thanks @matthewgasbarro for the report 👍
Indeed, that would be the expected behavior. Normally Notebook 7 should behave the same as JupyterLab when it comes to adding buttons to the notebook toolbar. Which version of JupyterLab is it on the screenshot? |
Also you may want to use the settings system for adding the toolbar button, instead of programmatically adding it via |
It's 4.0.6. Thanks! |
Any update if there will be a fix soon? Thanks! |
@matthewgasbarro were you able to try using the settings system to add the item to the toolbar? And use the Maybe that could work for now, until the underlying issue is fixed. It looks like the Notebook toolbar is showing other issues compared to JupyterLab: #7311 |
Yes Jeremy that works. I had preferred to do it code but I can conform to using the settings system. For other extensions not adding toolbar items through the settings system, are they required to do so or is there plans to fix the issue when added programmatically? Thanks! |
After some tests, the items seems to be inserted in a different order in Jupyterlab and Notebook. |
Taking a closer look in this issue, it should probably be fixed upstream in Jupyterlab. |
Description
In notebook 7, when buttons are added to the toolbar and specified to be added after the
codeCell
widget, the buttons are not added to the right of thecodecell
widget, but rather to the right of the kernel selector widget.Also, my existing extension used
panel.toolbar.insertAfter()
to insert the button after the codecell widget, but the button would not render. If instead usingpanel.toolbar.insertItem()
then the button appears, but again it is after the kernel widget.Reproduce
Expected behavior
The buttons should display next to the
codecell
widget as they do in Lab.Context
The text was updated successfully, but these errors were encountered: