techrah / jupyterext-text-shortcuts

A Jupyter Lab extension for keyboard text shortcuts
MIT License
50 stars 11 forks source link

Distribute via PyPI #32

Open flying-sheep opened 1 year ago

flying-sheep commented 1 year ago

jupyter labextension install is deprecated, extensions should be pre-built and distributed via PyPI

$ jupyter labextension install @techrah/text-shortcuts
(Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.

Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages 
[…]

The tutorial is here: https://jupyterlab.readthedocs.io/en/stable/extension/extension_dev.html#developer-extensions

The template is pretty complex, so you might want to just set up new files using cookiecutter, paste in your code, and go from there: https://github.com/jupyterlab/extension-cookiecutter-ts/tree/3.0/%7B%7Bcookiecutter.python_name%7D%7D