How to convert a dash app into a standalone Desktop application

Hiya people,

I want to share my efforts in converting a dash app into a standalone desktop application. In short, Dash / Flask publish a server as usual, a pywebview window is automatically opened to access it, and Nuitka is used to bundle it into an executable (.exe on windows, .app on mac, .bin on Linux). The executable can simply be double clicked without a need to install python or use a browser.

I’ve created a template for this procedure here: GitHub - Ivorforce/Dash-Standalone-Boilerplate: A boilerplate repository for standalone dash apps, using nuitka.

Let me know if you have any questions!

7 Likes

Awesome stuff and impressive resume! Great idea and contribution, kinda just skimmed it but ill be sinking my teeth into this in a bit and test it out more indepth.

1 Like

Yeah you can do it pretty easily in Windows with pywebview and autopytoexe.

You can see an example here with a Flask server inside a Dash APP to show a live stream video + an explanatation how to make your .exe

I got some issue with pywebview. It’s better to use FlaskUI. I will edit my code with a flaskui Version