Send components to another browser tab or window
I have an application composed of 100 BIG dataframes. I can navigate through the dfs in one tab/window.
The users click on a row in a df to do a simulation, the result of the simulation is another df. I see how we can do this with solara.Dataframe.
We want the resulting df presented in a separate browser tab (or a separate window), because the user wants to see the results of several simulations side by side (not in solara.Tabs or grid).
Is there a way to open another browser window, running solara components that use python objects from the application, or send a df to the new browser window?
Opening a URL with a copy of the main app would not work well, because of the time required to load dfs again (and the RAM needed to load several copies side by side).
I do not like to save the result of the simulation to disk, and open it again from another browser's app, so is there an alternative?
2 Replies
Yes, take a look at https://github.com/widgetti/ipypopout
GitHub
GitHub - widgetti/ipypopout: Display parts of your ipywidgets or so...
Display parts of your ipywidgets or solara app in separate browser windows - widgetti/ipypopout
ipypopout is nice
It takes an element in the Page() and copies it to a new Window.
However, I do not need the element twice, I only need the info in the new Window.
Is there a test I can write in the element, so that it no longer displays in the Page() component, but only in the new Window? Or can I refer the PopoutButton to a widget in another component (that is not displayed)?