-
Notifications
You must be signed in to change notification settings - Fork 25
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
Saving snippets does not work #247
Comments
Hi @asteppke, if I understand correctly, I had the same problem a few weeks ago and was able to fix it thanks to this answer in #237. Once an initial snippet with an ID of 1 exists, you should be able to use the standard interface as usual. |
@meli-lewis: Thank you for the hint. I checked and there were three snippets with ID 0, 1, and 2 already defined. Removing them did not solve the issue either. Upon checking the developer console I find this error message: A |
So, I got to the bottom of this thanks to @meli-lewis hint. In the slightly older version (2.1.0 from conda-forge) the saving issue as above appears. In the current version (2.2.1 from pip) the extension does not work here because of #237, which does not seem to be fixed in 2.2.1. The workaround indicated there to add an empty snippet to the user preferences works though and saving is also working. |
I have the same problem! Right click to save as code snippets doesn't work, no matter how i try. Also, click plus botton on panel, then clicking the 'Creat&Close’ button doesn't work either.It just can't creat a new snippet. That is weird. I found this extension very useful, but seems like it still have lots of bugs unsolved :( |
I also had the same problem, my installation process went well, and the plugin icon appeared, but it just couldn't be saved |
Did you try adding an initial snippet through the JSON settings editor, as suggested by this answer? At the risk of explaining something you already know, you can do that either by
So, to start, the settings will probably look like this:
Try replacing
Then, try adding a snippet as you'd expect to, e.g. through right-clicking. |
When running
jupyterlab-code-snippets
(version 2.1.0 fromconda-forge
) it looks like it is running fine, I get the side tab and can insert snippets into notebooks. When using the right-click "Save As Code Snippet" function though nothing happens. I do not see a popup window, an error message or any other indication.Is there anything I can do to diagnose this better?
My JupyterLab setup looks as follows (running on Windows with Chrome browser):
The text was updated successfully, but these errors were encountered: