How to Convert a Streamlit App to an .EXE Executable

preview_player
Показать описание
Yuichiro (a.k.a whitphx, also the creator of streamlit-webrtc) is a Streamlit Creator who singlehandedly implemented stlite, a port of Streamlit to WebAssembly powered by Pyodide/ This enables us to use Streamlit in a web page without installing Python locally.
With this + Electron, it is possible to build a Desktop Executable out of this Pyodide-powered project! This currently makes it the easiest way, literally 3 commands, to bundle a Streamlit project into an executable to send to your friends and family!

👉 Links

My tools (Affiliate links to support me!)

______

🪶 Hello DataFans! This month has been brutal, and next is a meetup I need to record and edit, and then I'll be going to PyconFR in Bordeaux! May I meet you there?

👍 On this channel, we love building a lot of small yet smart Streamlit apps to improve our Python chops, and recall our stories around Data Science and Content Creation. Like & Subscribe if you would like to see more videos!

⚠️ Disclaimer: This video is not sponsored, I receive no compensation by any brand quoted in this video. Views are my own and do not represent my employer's.
Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. Thank you for supporting my channel so I can continue providing you with free content!

#streamlit #python #datascience #dataapps
Рекомендации по теме
Комментарии
Автор

Hey y’all! One fix that made the altair issue work for me was —> running the following in the powershell visual studio code command (windows):
~> npm outdated
And then
~> npm update

Please note, there’s no need for the altair<5 in the requirements.txt file
Hope it helps!

nopewtopieafterzippingafly
Автор

Brother, I just discovered your channel on YT, I'm working on a streamlit project and you're helping me like you can't imagine, thank you so much.

luis-ntfm
Автор

Top notch content, I always wanted to make one on this topic. But this is quite amazingly done video!

littlecoder
Автор

I've created my very first stlite program. Highly appreciated because my graduate students will love it.

AhmetAnilDindar
Автор

Tired this out my self a few weeks back and it really is a great step forward!

Unfortunately, I couldn’t persist a local database due to Electron security restrictions. I also tried MongoDB and Firebase for cloud storage, but I believe the imports included C-extensions, preventing it from working.

Great video by the way 👍🏼

Jay-jeen
Автор

Love your videos. You're a streamlit wizard, and a fun wizard on top of that. Keep up the good work.

csswork
Автор

You look good, bro! This is the third video I’m seeing and couldn’t stop🤗

robel_asefa
Автор

Streamlit needs to work harder to simplify this. what a nightmare.

fluffykitties
Автор

Hello, I'm getting just a blank canvas when I use the servewindows

enzobustosdasilva
Автор

very insightful and fun to watch, enjoying your content, Fanilo!

neno
Автор

The finale was so exciting that I need to recover first. Don't you want to be a Marvel screenwriter?

Sonntagssoziologe
Автор

can i say i love you??? cause damn dude, your explanation is perfect!!!!

smiley
Автор

I like your videos. Very funny, simple and easy to understand all things. Keep going.

gugaucb
Автор

Nice more reasons to use streamlit 🥳🥳🔥

shamaldesilva
Автор

Unfortunately this doesn't work if your code contains modules/packages that written other languages than python, and/or if it can't find .whl package of that module
my issue was the first one. I have bunch of module that written in other languages such as c++ etc on my python-streamlit project. Any suggestion for this will be appreciated.

ege.the.engineer
Автор

Could you please make a slow speaking and step by step detailed description guide video for noobs like me.

amargaikwad
Автор

Hello, When executing the command 'run npm servewindows, the error is returned: "ModuleNotFoundError: No module named 'ssl'". Does anyone know the solution?

devpgmpgm
Автор

Hi and thanks for the useful implementation. Following your procedure, at the point where I run the command "npm run serve" I obtain an ENOENT error saying that a file is missing in the stlite-manifest.json. Any idea what could be the issue?

aleksandardimovski
Автор

Great video!
However it is not working for me (stlite-manifest.json is missing).
Do you know if the steps are the same if large files are in the repo? I built an LLM chatbot (locally downloaded open-source model). Would be cool to see a wallthrough!

maxlgemeinderat
Автор

Hey, Fanilo, great video!! It worked for me as long as the packages are supported by Pyodide. Unfortunately, in my case Pyodbc isn't :( I'm looking for another way to generate an exe Any ideas are very welcome :D

greciaguerrero