jupyterlab / jupyterlab

JupyterLab computational environment.
https://jupyterlab.readthedocs.io/
Other
14.13k stars 3.36k forks source link

Failed validating settings #14594

Open Firestar-Reimu opened 1 year ago

Firestar-Reimu commented 1 year ago

All my jupyterlab settings and plugins do not work. I use Jupyterlab 4.0.0-2 in Archlinux

[W 2023-05-26 08:13:09.678 LabApp] Failed validating settings (@jupyterlab/notebook-extension:tracker): Additional properties are not allowed ('experimentalDisableDocumentWideUndoRedo', 'numberCellsToRenderDirectly', 'observedBottomMargin', 'observedTopMargin', 'remainingTimeBeforeRescheduling', 'renderCellOnIdle' were unexpected)

    Failed validating 'additionalProperties' in schema:
        {'additionalProperties': False,
         'definitions': {'kernelStatusConfig': {'additionalProperties': False,
krassowski commented 1 year ago

The settings listed:

are no longer present in @jupyterlab/notebook-extension:tracker package in JupyterLab 4.0 as there is a new implementation of windowed notebooks. You should remove them to resolve the warning.

We could discuss how to improve user experience here - it is not optimal, but probably better than just removing the settings. I imagine that prompting user to remove all invalid settings with a press of a button could be useful, but there is a number of edge cases where settings are not actually writable by the user and the system administrator would need to act anyways (so said prompt could only annoy users who do not have a control over specific settings).

JasonWeill commented 1 year ago

This seems like a good issue to improve our documentation. After an upgrade, we should do a better job of communicating to users what (if anything) they can do to remove configuration keys that are no longer supported.

fsoubelet commented 7 months ago

Hi @krassowski ,

Sorry to dig this up, but I've been running into the exact same issue after upgrading my JupyterLab to version 4, with the same fields.

I wanted to go and remove these entries manually, however when I launch jupyterlab then go to the settings it is impossible to find these names anywhere. Would you have some pointers on where to look or what to change?

Cheers

krassowski commented 7 months ago

@fsoubelet did you try going to "JSON Settings Editor"? You can access it from command palette or by clicking this button in the default "Settings Editor":

image

fsoubelet commented 7 months ago

Hi again,

Yes I had tried that. It turns out wiping existing configurations from ~/.jupyter/lab/user-settings fixed this for me. Thanks again for the quick response!

timdiller commented 7 months ago

@fsoubelet 's comment was helpful to me. My problem was that I use Jupyter Lab from multiple venvs, and they were all pointing to the config file at ~/.jupyter/lab/user-settings. Thanks to this SO post I learned a good way to deal with this is to set JUPYTER_CONFIG_DIR in the activation script. In Python venv virtual environments, you can add

export JUPYTER_CONFIG_DIR=/your/custom/config/dir

to venv/bin/activate to solve the problem.