- Notifications
You must be signed in to change notification settings - Fork 25
Description
Describe the bug
I want to love this extension, but its still got Elyra disease. The first time I ever installed it in the original Elyra format it corrupted my system permanently, eventually requiring me to remove and re-install Anaconda.
Sometimes it works and other times it works for a while and then breaks (and leaves the following errors at the bottom of this post). I have installed it at least 10 times in different conda environments over the past 4 years and about 4-5 times it ends up getting corrupted for some reason I have not been able to determine.
This current installation has been throwing the same error (below) for months now. Tonight (again) I tried to eradicate it, and after uninstalling it completely using the recommended command "jupyter labextension uninstall jupyterlab-code-snippets", the error still persists. The uninstall command finishes as though it succeeded. I even tried "pip uninstall jupyterlab-code-snippets", which says that it no longer exists.
It shows up after removing it and restarting the server a few times. I thought all traces of an extension are supposed to disappear after they are uninstalled?
Where do I remove this from the Jupyter "System Defaults" configuration file?
####################
Configuration settings:
(base) C:\Windows\system32>jupyter --paths --json
{"runtime": ["C:\Users\PowerUser\AppData\Roaming\jupyter\runtime"], "config": ["C:\Users\PowerUser\.jupyter", "C:\Users\PowerUser\AppData\Roaming\Python\etc\jupyter", "C:\ProgramData\Anaconda3\etc\jupyter", "C:\ProgramData\jupyter"], "data": ["C:\Users\PowerUser\AppData\Roaming\jupyter", "C:\Users\PowerUser\AppData\Roaming\Python\share\jupyter", "C:\ProgramData\Anaconda3\share\jupyter", "C:\ProgramData\jupyter"]}
(base) C:\Windows\system32>
#####################################
(base) C:\Windows\system32>jupyter --version
Selected Jupyter core packages...
IPython : 8.12.0
ipykernel : 6.22.0
ipywidgets : 8.0.6
jupyter_client : 8.2.0
jupyter_core : 5.3.0
jupyter_server : 2.5.0
jupyterlab : 3.5.3
nbclient : 0.7.3
nbconvert : 7.3.1
nbformat : 5.8.0
notebook : 6.5.4
qtconsole : 5.4.2
traitlets : 5.9.0
Python 3.9.16
Windows 10 Professional
Browsers: Firefox
Chrome
Edge Version 112.0.1722.48 (Official build) (64-bit) (latest.)
#######################################
LabApp] Failed validating settings (jupyterlab-code-snippets:snippets): Additional properties are not allowed ('snippetPreviewFontSize' was unexpected)
Failed validating 'additionalProperties' in schema: {'additionalProperties': False, 'definitions': {'snippet': {'properties': {'code': {'type': 'array'}, 'description': {'type': 'string'}, 'id': {'type': 'number'}, 'language': {'type': 'string'}, 'name': {'type': 'string'}, 'tags': {'type': 'array'}}, 'required': ['id', 'name', 'language'], 'type': 'object'}}, 'description': 'Code Snippet Manager Settings', 'jupyter.lab.setting-icon': 'custom-ui-components:codeSnippetIcon', 'jupyter.lab.setting-icon-label': 'Code Snippet', 'jupyter.lab.shortcuts': [{'command': 'codeSnippet:save-as-snippet', 'keys': ['Accel Shift A'], 'selector': '.jp-Notebook'}, {'command': 'codeSnippet:save-as-snippet', 'keys': ['Accel Shift A'], 'selector': '.jp-FileEditor'}], 'properties': {'snippets': {'default': [{'code': ['import ' 'matplotlib.pyplot ' 'as plt', 'import numpy as np', '', 'x = np.linspace(0, ' '10, 100)', '', 'plt.plot(x, ' 'np.sin(x))', 'plt.plot(x, ' 'np.cos(x))', '', 'plt.show()'], 'description': 'Plotting ' 'code for ' 'sine graph ' 'using ' 'matplotlib.', 'id': 0, 'language': 'Python', 'name': 'Plotting_sine', 'tags': ['plot']}, {'code': ['import numpy as np', 'import scipy', 'import pandas as ' 'pd', 'import ' 'matplotlib.pyplot ' 'as plt', 'import seaborn as ' 'sns'], 'description': 'Import ' 'useful ' 'packages for ' 'data ' 'analytics', 'id': 1, 'language': 'Python', 'name': 'Importing packages ' 'for data analytics', 'tags': ['data analytics']}, {'code': ['import keras', 'import sklearn', 'import torch', 'import tensorflow ' 'as tf'], 'description': 'Import ' 'useful ' 'packages for ' 'machine ' 'learning', 'id': 2, 'language': 'Python', 'name': 'Importing packages ' 'for machine ' 'learning', 'tags': ['machine ' 'learning']}], 'description': 'The list of snippets.', 'items': {'$ref': '#/definitions/snippet'}, 'title': 'Code Snippets', 'type': 'array'}}, 'title': 'Code Snippet Manager', 'type': 'object', 'version': '1.0.0'} On instance: {'snippetPreviewFontSize': 3}
[W 2023-04-20 01:56:21.155 LabApp] Failed validating settings (jupyterlab-code-snippets:snippets): Additional properties are not allowed ('snippetPreviewFontSize' was unexpected)
Failed validating 'additionalProperties' in schema: {'additionalProperties': False, 'definitions': {'snippet': {'properties': {'code': {'type': 'array'}, 'description': {'type': 'string'}, 'id': {'type': 'number'}, 'language': {'type': 'string'}, 'name': {'type': 'string'}, 'tags': {'type': 'array'}}, 'required': ['id', 'name', 'language'], 'type': 'object'}}, 'description': 'Code Snippet Manager Settings', 'jupyter.lab.setting-icon': 'custom-ui-components:codeSnippetIcon', 'jupyter.lab.setting-icon-label': 'Code Snippet', 'jupyter.lab.shortcuts': [{'command': 'codeSnippet:save-as-snippet', 'keys': ['Accel Shift A'], 'selector': '.jp-Notebook'}, {'command': 'codeSnippet:save-as-snippet', 'keys': ['Accel Shift A'], 'selector': '.jp-FileEditor'}], 'properties': {'snippets': {'default': [{'code': ['import ' 'matplotlib.pyplot ' 'as plt', 'import numpy as np', '', 'x = np.linspace(0, ' '10, 100)', '', 'plt.plot(x, ' 'np.sin(x))', 'plt.plot(x, ' 'np.cos(x))', '', 'plt.show()'], 'description': 'Plotting ' 'code for ' 'sine graph ' 'using ' 'matplotlib.', 'id': 0, 'language': 'Python', 'name': 'Plotting_sine', 'tags': ['plot']}, {'code': ['import numpy as np', 'import scipy', 'import pandas as ' 'pd', 'import ' 'matplotlib.pyplot ' 'as plt', 'import seaborn as ' 'sns'], 'description': 'Import ' 'useful ' 'packages for ' 'data ' 'analytics', 'id': 1, 'language': 'Python', 'name': 'Importing packages ' 'for data analytics', 'tags': ['data analytics']}, {'code': ['import keras', 'import sklearn', 'import torch', 'import tensorflow ' 'as tf'], 'description': 'Import ' 'useful ' 'packages for ' 'machine ' 'learning', 'id': 2, 'language': 'Python', 'name': 'Importing packages ' 'for machine ' 'learning', 'tags': ['machine ' 'learning']}], 'description': 'The list of snippets.', 'items': {'$ref': '#/definitions/snippet'}, 'title': 'Code Snippets', 'type': 'array'}}, 'title': 'Code Snippet Manager', 'type': 'object', 'version': '1.0.0'} On instance: {'snippetPreviewFontSize': 3}
[I 2023-04-20 01:56:22.887 LabApp] Build is up to date
[W 2023-04-20 01:56:29.766 LabApp] Failed validating settings (jupyterlab-code-snippets:snippets): Additional properties are not allowed ('snippetPreviewFontSize' was unexpected)
Failed validating 'additionalProperties' in schema: {'additionalProperties': False, 'definitions': {'snippet': {'properties': {'code': {'type': 'array'}, 'description': {'type': 'string'}, 'id': {'type': 'number'}, 'language': {'type': 'string'}, 'name': {'type': 'string'}, 'tags': {'type': 'array'}}, 'required': ['id', 'name', 'language'], 'type': 'object'}}, 'description': 'Code Snippet Manager Settings', 'jupyter.lab.setting-icon': 'custom-ui-components:codeSnippetIcon', 'jupyter.lab.setting-icon-label': 'Code Snippet', 'jupyter.lab.shortcuts': [{'command': 'codeSnippet:save-as-snippet', 'keys': ['Accel Shift A'], 'selector': '.jp-Notebook'}, {'command': 'codeSnippet:save-as-snippet', 'keys': ['Accel Shift A'], 'selector': '.jp-FileEditor'}], 'properties': {'snippets': {'default': [{'code': ['import ' 'matplotlib.pyplot ' 'as plt', 'import numpy as np', '', 'x = np.linspace(0, ' '10, 100)', '', 'plt.plot(x, ' 'np.sin(x))', 'plt.plot(x, ' 'np.cos(x))', '', 'plt.show()'], 'description': 'Plotting ' 'code for ' 'sine graph ' 'using ' 'matplotlib.', 'id': 0, 'language': 'Python', 'name': 'Plotting_sine', 'tags': ['plot']}, {'code': ['import numpy as np', 'import scipy', 'import pandas as ' 'pd', 'import ' 'matplotlib.pyplot ' 'as plt', 'import seaborn as ' 'sns'], 'description': 'Import ' 'useful ' 'packages for ' 'data ' 'analytics', 'id': 1, 'language': 'Python', 'name': 'Importing packages ' 'for data analytics', 'tags': ['data analytics']}, {'code': ['import keras', 'import sklearn', 'import torch', 'import tensorflow ' 'as tf'], 'description': 'Import ' 'useful ' 'packages for ' 'machine ' 'learning', 'id': 2, 'language': 'Python', 'name': 'Importing packages ' 'for machine ' 'learning', 'tags': ['machine ' 'learning']}], 'description': 'The list of snippets.', 'items': {'$ref': '#/definitions/snippet'}, 'title': 'Code Snippets', 'type': 'array'}}, 'title': 'Code Snippet Manager', 'type': 'object', 'version': '1.0.0'} On instance: {'snippetPreviewFontSize': 3}
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.