ipyvuetify icon indicating copy to clipboard operation
ipyvuetify copied to clipboard

Any ways of integrating these widgets into a dash app?

Open minasouliman opened this issue 3 years ago • 5 comments

I wanted to start off by saying that I love this library! It really lends itself well to creating interactive UIs while not having to worry about super convoluted callback syntax. I've also been loving the power you get from being able to load vue templates directly. That makes it super easy to load up more complex examples that are not super possible with the python api.

I was also able to use both voila and panel for deployment, which I think offers great flexibility when it comes to deploying this in a prod environment. I did have a question though, is there any way that ipyvuetify or ipywidgets can be deployed on a dash/flask app? Not so much worried about having an integrated callback structure between the two or anything like that, but even just simply being able to load up a page that's fully made in ipyvuetify and not have to run a separate voila/panel server just to serve up that specific page.

Any pointers would be appreciated :)

minasouliman avatar Feb 17 '22 18:02 minasouliman

Thanks for the kind words, fully agree with you :)

Does it need to be flask, or would fastapi or starlette also work?

maartenbreddels avatar Feb 17 '22 20:02 maartenbreddels

The ask is specifically about flask because I'm looking at what the workflow would be like for integrating a page created using ipyvuetify within an existing dash app that is deployed using flask. Though starlette would be an interesting example as well...I have yet to delve into the JustPy project, but hooking into an existing starlette server would allow integration there as well.

I'm not married to flask, but the existing project is at least semi-set on Dash, and I couldn't really find any other ways of deploying Dash. I've looked at this example of mounting Dash components inside of a fastapi server -- https://github.com/rusnyder/fastapi-plotly-dash, and that could also be an interesting pattern to explore.

minasouliman avatar Feb 17 '22 20:02 minasouliman

I created https://github.com/maartenbreddels/flask-ipywidgets a long time ago, but I want to move that to fastapi/starlette. If that dash on fastapi works, great!

maartenbreddels avatar Feb 17 '22 22:02 maartenbreddels

I send you an invite for a private repo we are working on, feel free to try it out and give it feedback.

maartenbreddels avatar May 13 '22 10:05 maartenbreddels

In theory this can be done with https://github.com/widgetti/solara/

maartenbreddels avatar Jun 01 '23 18:06 maartenbreddels