flexx
flexx copied to clipboard
Best way to implement flexx in flask?
Hello, I would like develop a drag and drop module (ussing flexx) in a webapp written using flask. I tried to use the server side approach published in howtos directory (serve_with_flask.py) but I coudnt merge with flask in an ambient with headers, footers, ccs normally used in flask with render_templates. How is the best way to implement flexx in a flask implementation. Regards.
I am not familiar with Flask, but I think you're asking to embed a Flexx front-end app into a flask-specific template? Can you explain a bit more what this should look like?
Hi Almarklein. That is exactly that I would like to do. I need make some interactive form with buttons and graphs. For engineering calculation and embedded it in a webapp.
Flexx is able to embed itself in a larger web app, but the App.dump()
method does not take this option into account yet. So for the time being, you'd either have to make Flexx the full page, or perhaps use an iframe.
thanks!
Here is another way using a reverse proxy implementation in Flask. You can use this solution if you implemented some PyWidget for server side tasks: https://github.com/ceprio/flask_reverse_proxy_for_flexx