Quansight / ragna

RAG orchestration framework ⛵️
https://ragna.chat
BSD 3-Clause "New" or "Revised" License
177 stars 22 forks source link

Re-enable the option to open the browser when UI is started #430

Closed pmeier closed 3 months ago

pmeier commented 3 months ago

Feature description

This feature already exists main, but was removed with #418 while doing the deploy rework (https://github.com/Quansight/ragna/pull/418#discussion_r1635333975). In contrast to panel, uvicorn does not have an option to open a browser on startup.

We might be able to use the lifespan functionality to do this. However, we should survey the panel code first to see how they do it.

Value and/or benefit

Opening the browser when running ragna deploy is a good UX when trying Ragna.

Anything else?

No response

pmeier commented 3 months ago

TIL that there is module in the standard library (!) to open a browser: webbrowser. So I guess this is not too hard to do. This is what bokeh / panel use internally as well.