voila icon indicating copy to clipboard operation
voila copied to clipboard

Add double-click default action in jupyterLab

Open dhirschfeld opened this issue 3 years ago • 2 comments

In JupyterLab it would be great if voila could register a handler for .voila types and allow users to choose the action - e.g. open dashboard in a new browser tab.

A user who wanted to opt-in could then save (/distribute) their notebook with a .voila extension.

So a user could run the dashboard as a normal notebook, an "Open with Notebook" context menu for .voila files should also be registered.

dhirschfeld avatar Jun 23 '21 01:06 dhirschfeld

Thanks @dhirschfeld.

This sounds like it would be quite useful indeed.

Otherwise it should also be possible to specify the default renderer for a file (the preferred widget factories) in JupyterLab users. So users could choose to open .ipynb files with the voila preview.

jtpio avatar Jun 23 '21 09:06 jtpio

I'm not sure you'd want to open all notebooks with voila preview by default which is why I suggested letting the user opt-in by renaming it with a .voila extension.

A user can already choose to open a notebook with voila using either the button or the Open With menu:

image

If you want to distribute it as a dashboard application though, it's a bit awkward to tell a user to first open the notebook and click the voila button (or to open with voila gridstack in the context menu) which is why I think there's a lot of value in some way of making a voila notebook open by default (double-clicking) with voila... without changing the behaviour for all other notebook (.ipynb) files

dhirschfeld avatar Jun 23 '21 10:06 dhirschfeld