jupyterlab / extension-cookiecutter-ts

A cookiecutter recipe for JupyterLab extensions in Typescript
BSD 3-Clause "New" or "Revised" License
183 stars 88 forks source link

Make the dependency on `jupyter_server` optional #166

Closed jtpio closed 3 years ago

jtpio commented 3 years ago

It looks like the cookiecutter current requires jupyter_server:

https://github.com/jupyterlab/extension-cookiecutter-ts/blob/ae2a726a1dc6d83016de7b471ae0d40b878d59fc/%7B%7Bcookiecutter.python_name%7D%7D/setup.py#L53

Probably this is only useful when the lab extension also has a server extension. So we could guard this with has_server_extension like in other places.