Convert Dash to executable file (.exe)

  • Copy server.py and setup.py to your project directory, assuming your dash app lies in app.py.
  • Add the requirements that are not in your requirements.txt
  • pip install -r requirements.txt
  • Change to setup.py.
    • setup(name=’’) -> put the name of your project, change version
    • executables targetName -> change to desired exe name.
  • python setup bdist_msi or python setup bdist_exe, I recommend msi.’
  • Install the msi on the desired computer.
  • Open the exe in a terminal: c:\program_files\dash_app> dash_app.exe
  • Open browser to localhost:8000, (you can change the port in server.py serve parameters.)
5 Likes