ryantam626 / jupyterlab_code_formatter

A JupyterLab plugin to facilitate invocation of code formatters.
MIT License
822 stars 52 forks source link

Use `importlib.utils.find_spec`, allow to cache results #297

Closed krassowski closed 1 year ago

krassowski commented 1 year ago

Fixes https://github.com/ryantam626/jupyterlab_code_formatter/issues/293

Switches to importlib.util.find_spec which is slightly faster than reloading packages.

Exposes a new user setting allowing to cache the formatter information:

Screenshot from 2023-03-20 04-23-33

ryantam626 commented 1 year ago

Thank you so much for this, I have just been swamped with work and personal things and haven't got the time to work on this, this is tremendously appreciated, thank you again!

ryantam626 commented 1 year ago

Also I realised I left the dev env is somewhat broken state without properly fixing it (apologies for that!), kudos to working this out with/without a dev env!

ryantam626 commented 1 year ago

FYI I will release a version with this change this weekend so I have the time to properly monitor its release, thanks again!