Open notebooks by default with voila preview through extensions/plugins and not through settings

Hi , I am new to jupyterlab extensions ,any help is appreciated.
If i want a simple extension where my notebooks( on double clicking on notebooks in file browser) by default opens with voila preview, how should i do it?

Working code to add in index.ts will be really helpful
Thanks

I guess that you probably already know that you can configure Default Viewer in settings. You can take this to next level by changing settings programatically. See for some other extensions like jupyterlab-execute-time for how they do this.

1 Like

@krassowski Thank you very much for the prompt response. And yes iā€™m aware of the Default Viewer in settings . So yeah i will check out your suggestion and respond accordingly.