notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Settings failed to load error in the dev tools console

Open jtpio opened this issue 2 years ago • 12 comments
trafficstars

Currently seeing this error on the dev tools console on the latest main:

image

Settings failed to load for (@jupyterlab/metadataform-extension:metadataforms) 

And

Settings failed to load for (@jupyterlab/cell-toolbar-extension:plugin)

jtpio avatar Sep 19 '23 06:09 jtpio

cc @brichet who might know more about this and whether this is related to a change upstream in JupyterLab

jtpio avatar Sep 19 '23 06:09 jtpio

The messages seem to originate from the following:

https://github.com/jupyter/notebook/blob/2b4b422f0f044994960803c48a7c3a9dc9abdb0a/packages/tree-extension/src/index.ts#L211-L227

jtpio avatar Sep 19 '23 06:09 jtpio

I can't find any related changes in Jupyterlab. Do you know if this warning was not present in previous versions ?

The settingRegistry.load function seems to fail when the plugin is not activated. For me it is expected, the Notebook plugins are not loaded in the tree view (so not the metadataform and cell toolbar either). But these plugins should probably not be in the pluginSet variable.

brichet avatar Sep 19 '23 12:09 brichet

For me it is expected, the Notebook plugins are not loaded in the tree view (so not the metadataform and cell toolbar either).

This logic was added so the plugins not activated on the tree page would still show up in the settings editor (which is only available on the tree page): https://github.com/jupyter/notebook/pull/6750

jtpio avatar Sep 19 '23 12:09 jtpio

I don't think it can work for plugins with a transformation function, since these functions are registered on plugin activation. Both warnings concern plugins with a transformation function. The only recent related PR I can see is https://github.com/jupyterlab/jupyterlab/pull/14990, but AFAIK it couldn't work before.

It seems that the message was already present with previous releases of Notebook:

brichet avatar Sep 19 '23 13:09 brichet

Thanks @brichet for the details :+1:

The only recent related PR I can see is jupyterlab/jupyterlab#14990, but AFAIK it couldn't work before.

Yeah I saw a couple of PRs on JupyterLab that could have been related, but they are not backported to 4.0.x so not used in Notebook 7 (for now).

jtpio avatar Sep 19 '23 17:09 jtpio

Maybe we should open the settings editor in one of the side panels instead of the file browser page (like the extension manager).

That way it would pick up the plugins loaded on the current page, and would not require having to load them explicitly.

jtpio avatar Sep 28 '23 12:09 jtpio

This should work for loading settings, but the panel is quite large with the current display. It can be difficult to navigate if it's in a side panel.

brichet avatar Sep 28 '23 15:09 brichet

In the latest version of Chrome devtools console:

I get 100s of the following: "Skipping this shortcut because there are no actionable keys on this platform" issued from 5649.bundle.js

Then I get the same messages as OP (except they are from 3768.bundle.js)

I am using: Windows 11 Python 3.12.x Used "pip3 install ..." to get Jupyter Jupyter Dark theme NO Anaconda

The result is the "increase/decrease font sizes" in the menus do not work. The color schemes for highlighting different data types and keywords also does not work.

Forgot to mention "auto-formatting" (eg. inserting a tab when needed), also does not work! :(

capey0 avatar Apr 12 '24 01:04 capey0

This morning I opened up Jupyter Notebook and the keyword colorization seems to be working and so does the indenting. However, I now see this in the dev window when I try to change the font size: image

I am still getting 100s of "Skipping ..." messages

capey0 avatar Apr 18 '24 18:04 capey0

Ok, frankly this sucks! The colorization has disappeared and so has the indenting.

Still getting all the above messages.

:(!

capey0 avatar Apr 24 '24 23:04 capey0

https://github.com/jupyter/notebook/issues/7322#issuecomment-2108477155

https://github.com/jupyter/notebook/issues/7322#issuecomment-2108575433

capey0 avatar May 13 '24 20:05 capey0