Code snippet extension for current version (v4.5.6) of JupyterLab?

Is there a usable extension for current versions of JupyterLab (I have v4.5.6, with Python 3.13) which allows the saving and retrieval of code snippets?

I previously used this one: GitHub - jupytercalpoly/jupyterlab-code-snippets: Save, reuse, and share code snippets using JupyterLab Code Snippets! · GitHub

but this has not been updated for some time, and does not work with the current versions of JupyterLab.

I have tried to install elyra-code-snippet-extension - but mamba comes up with several screenloads of explanation ending with critical libmamba Could not solve for environment specs

Edit: this one Quantstack jupyterlab-snippets also no longer has a version for latest JupyterLab GitHub - QuantStack/jupyterlab-snippets: Snippets Extension for JupyterLab · GitHub

AFAIK nothing very unusual about my current install.

Advice appreciated, thanks.

1 Like

I think we should migrate one to jupyterlab-contrib and maintain it, but in the meantime, I had a success getting one implemented in GitHub - jupyterlab/plugin-playground: A dynamic extension loader for JupyterLab · GitHub (on lite deployment):

It likely does not have a very good UX but might be a starting point. I uploaded the gist here: Code snippets demo created in plugin-playground · GitHub

1 Like