wowwwn
April 13, 2023, 2:18am
1
I’ve heard that There is Electron project which converts a web app created with Node.js into a desktop app.
Is there a method to convert a Dash app into a desktop GUI using electron? or is there any way to
make dash app to standalone executable app or (not using web for gui) ?
Thank you.
1 Like
stu
April 15, 2023, 9:37am
2
FYI
Hi there,
“I don’t know Python, can you give me a file and let me open it, as is the way I open an Excel worksheet, to view your report?”
Here you are.
[dash71]
You know, there are always sometimes.
Let’s make an offline file that looks like it can be opened at any time.
from dash import Dash
from flaskwebgui import FlaskUI
app = Dash(__name__)
server = app.server
if __name__ == "__main__":
#app.run_server(debug=True)
FlaskUI(server).run()
By changing these line…
However, I have to say that this is not a good idea, I wrote this guide only for very limited use cases, and only as a temporary solution.
Maybe you can describe your scenario briefly so that others can help you better.
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
It’s better to use FlaskUI than webview. I got some issue with pywebview on a Surface Tablet Windows