vscode-jupytext-sync icon indicating copy to clipboard operation
vscode-jupytext-sync copied to clipboard

Makes unwanted UI changes

Open td-anne opened this issue 6 months ago • 1 comments

When I simply install the extension, the "restart" button on notebook tabs seems to disappear from its usual place. Instead buttons appear showing "+Raw" and "Convert to Raw" appear in their place. I don't see how these UI changes have any relation to the function of the extension, and I do not want them. (In fact I use "restart" from the top bar all the time, and I have never wanted to work with raw notebook cells at all.) Is it possible for this extension to restrict its default behaviour to just that associated with jupytext? If necessary, configuration options could allow these unrelated UI changes.

Previous bar configuration:

Image

After installing the extension (and widening the window in an attempt to find the "restart" button):

Image

td-anne avatar Jul 02 '25 14:07 td-anne

Hi Anne,

Thank you for the feedback.

Making the Restart button disappear was not intentional of course. Looks fine in my Cursor (based on a recent VS Code version):

Image

Seems to me like some VS Code bug, perhaps a bug that has been fixed in more recent versions of the extension.


I don't see how these UI changes have any relation to the function of the extension, and I do not want them.

I understand your point. Ideally this functionality would be a separate extension, but I don't have the bandwidth to support another extension for that little functionality. And I do use it very often, people coming from JupyterLab are often used to it.


In fact I use "restart" from the top bar all the time

As a side note suggestion: my extensions comes with a keyboard shortcut for restarting the kernel, press esc to exit cell-editing mode, then press 0, 0 (press the 0 key twice).


Is it possible for this extension to restrict its default behaviour to just that associated with jupytext? If necessary, configuration options could allow these unrelated UI changes.

For now I do not want to change the default settings because it makes it harder for people to discover the raw cells functionality. But of course I don't want it to be annoying, that's why there is a setting to disable any of the UI button/menus that the extension inserts. Search for jupytextSync.enabledMenus and disable the toolbar button you don't want:

Image

New users can change the setting once at the User level and never be bothered by it again.

caenrigen avatar Jul 03 '25 15:07 caenrigen