Click on file to open a custom react widget

I have a jupyterlab widget I built with react. There is a widget icon on the launcher, that opens the UI when clicked. But I am interested in opening the widget from the file explorer when double clicking a custom file named ‘widget.abc’. The command for opening the extension is ‘my-extension:open’. I will appreciate some guidance on this. I am using Jupyterlab v3.3.2.

Have a look at registering your widget as a “mimerenderer”:

1 Like