Это видео недоступно.
Сожалеем об этом.
Python Eel - Create and Package Desktop Apps | Modern GUIs with HTML and JavaScript
HTML-код
- Опубликовано: 15 авг 2024
- In this video, I demonstrate how to use the Python package Eel to create applications that have a Web UI with a Python backend.
"Eel is a little Python library for making simple Electron-like offline HTML/JS GUI apps, with full access to Python capabilities and libraries.
Eel hosts a local webserver, then lets you annotate functions in Python so that they can be called from Javascript, and vice versa.
Eel is designed to take the hassle out of writing short and simple GUI applications. "
Source Code: github.com/Sou...
Eel: github.com/Chr...
"this app uses a nice polished frontend, which i stole from the internet, because i can't design frontends"
that's the best quote i have ever heard in my entire life.
😂
yap...the most honest statement from a developer. That's why he's not a politician.
1:03
i lost it when i heard that. finally, someone being real about development
So this means I could use my HTML/JS to create an .exe by simply using eel & py installer and no Electron??? This is what I've been looking for!!! *Salute 2 u*
same here
OMG! I literally spent 1 month on searching how to create .exe applications with modern gui's with python as backend and found nothing. And when I thought this is not possible, RUclips recommended this to me. BRUH, I AM VERY HAPPY. THANKS MAN!!!! YOU ARE LITERALLY A LIFE SAVER
"I was looking for copper and I found GOLD"
Oh my god! No words for you bro just a life saver👍🏻👍🏻👍🏻
It was amazing I've been looking for something just like this!
This was such a great video! You should create an eel series where you delve a deeper into such other "bell-ands-whistles" like interfacing with sqlite3, input forms, login screens, navigating between views / screens, etc. Awesome stuff!!!
I think now its not working it gives me erroe while i run py code
Expected 144 drim c header got 152 from pyobject
finally no tkinter, no QT and no electronJS . You're amazing mate
shit you're the best, i need to do some UI with my python program for school and i hate Qt or tkinter etc, huge respect and thanks !
I already clicked the subscribe button. I hope you will focus on topics like this. I can only see few youtube videos about Python Modern GUI. I hope you will create more videos
Mann, thank you so much. This is GOLD
Great stuff, Sourav! Thanks for sharing this. I‘ll definitely have a look for the eel ;)
Btw: the design looks professionally „stolen from the internet“ :P
I love your videos your one of the only macOS developers out there
THIS. IS. AWESOME!!! THANK YOU SO MUCH! This is what I needed SO BADLY! I have been trying to make apps in tkinter but they all look like I took a dump on my computer screen, but with this I can use CSS and make it look great! THANKS!
This what I was looking for. Thanks a lot for posting bro. I really like your channel and I start clicking on like even before I start watching the videos. Please post more on python 👍👍
This is amazing, please do more.
Finally someone that actually makes a tutorial on a nice clean GUI
Awesome explanation, I have been searching for this a long time. Thanks a lot
Bro, You are super awesome !!!....EEL definitely made my life so easy ....Kudos ......
Bro. I'm from simple snippets. Please bro teach us python in the best way.
Thank you.
I think now its not working it gives me erroe while i run py code
Expected 144 drim c header got 152 from pyobject
No one's gonna ask where he got the UI snippet from? That looks so cool!
hello buddy i m facing a problem . i am a kali linux user and im getting this error "This site can’t be reached" when i m running these codes can someone help me???????? plzzzzzz
Just what I was looking for. Thank you.
I think now its not working it gives me erroe while i run py code
Expected 144 drim c header got 152 from pyobject
Hi came over from simple snippets to checkout your videos
This is so interesting ive been using dash from plotly to make my dashboards but now its much simple thanks!!
My question . Do we have yo use tkinter module for this ??
Nope
Question regarding Eel Python
I have a simple code in python which returns random. numbers and its is exposed to eel
i have a simple html page where i want to display this data
I am able to get the first sample but the the next sample are updating on python shell but not on the website i have to manually left click and refresh it
can someone help with this issue
import eel
import random
eel.init('web')
@eel.expose
def random_data():
data = random.randint(0, 20)
print(data)
return data
eel.start('JumBo.html', size=(800, 800), block=False) # Start
while 1:
random_data()
eel.sleep(4)
===============================
eel.random_data()(my_func);
function my_func(x){
console.log(x);
var par = document.querySelector('.data');
par.innerHTML = "Data" + x ;
}
This looks very promising. Ill give it a go!
This is awesome! Thanks for a great tutorial
Thank god I found this tutorial, we honestly can use this!
@@ramko685 Thats what I used when I made the original application
I love you and your indi accent. Love from Italy
I think now its not working it gives me erroe while i run py code
Expected 144 drim c header got 152 from pyobject
i tried hello world program given on Eel documentation but the problem is its not able to find my hello.html any fixes?
Great stuff man! thanks for sharing! :D
Can you make photo editing software with electronjs and python
Hey brother, I really need your help on urgent basis, please can you tell me how to make executable file for electron-python application???
I am using electron & python for my Final Year Project
and there is nothing on the internet excepts a medium article which tells a little bit about packaging electron-python application but I want to learn from you, please tell me as soon as possible..!!!!
thanks for this modern ui designs
Please upload more on this topic
after doing all things , my python file is running fine in the terminal but i am not getting the UI
Does anyone know how to get rid of the title bar and disable right clicks or getting into the code.. It doesnt really look or give a feeling like a native desktop app.
why icon not working in doc on macos? it's showing for 2-3 sec and showing google icon instead
My dist folder is empty and I get *Failed to execute script* error message on Windows 7...HELP!!!
I have a simple html opened through a python script using os.startfile('index.html')
How to stop the execution of a method in the python file when a button is clicked on the html page?
Does anyone know how to get fixed window size - through html\css or eel?
Cuz I don't want the user will resize the window after I'm converting my project into exe file
Thanks, I don't understand the docs and you help a lot
this is not working in latest version of python , what version of python will support it
Sourav, i need help. I was trying to create the application nad i run into this error "RecursionError: maximum recursion depth exceeded while calling a Python object". How can i solve this?
Can we stop user from resizing the app once it's packaged into desktop app?
Dude. Good presentation
Thanks this is really unique .
Hey I am getting this error OSError: Can't find Google Chrome/Chromium installation . How do I resolve this? I am trying to use eel in a venv on pop os . Is that a issue?
this is nice man, thanks
I think now its not working it gives me erroe while i run py code
Expected 144 drim c header got 152 from pyobject
Eel is an alternative to tkInter and nothing more. The electron is invincible to this day, despite all the criticism. But Tauri will change that. When 1.0 is released, Tauri will become the best electron replacement
getting OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted: ('localhost', 8000)
Hey thanks for the tutorial is very helpful, I am wondering if it possible to disable the option of window resizing ?
I was wondering the same thing, but I fear it's not possible, as browsers such as Chrome and Mozilla Firefox don't want to limit the freedom of the user and hence always allow resizing.
failed to execute script main. what should i do?
I got an error while trying to open the python file (the error is html file does not exist ) help me please
I DONT KNOW WHY ehenever i run the app it says
Sorry, the requested URL 'localhost:8000/index.html' caused an error:
even on the examples
Same here
What will the commands be to package in windows
Hey Sourav
It was really useful for me to create py application
But am finding difficulty in converting EEL to exe application
Please help me with this
Thanks
are you getting this error too?
Traceback (most recent call last):
File "site-packages/PyInstaller/loader/rthooks/pyi_rth__tkinter.py", line 28, in
FileNotFoundError: Tcl data directory "/var/folders/yp/j5_n1vdn4sl4phw8smsp392r0000gn/T/_MEIHli3WN/tcl" not found.
[14489] Failed to execute script pyi_rth__tkinter
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
What app did you for editing & coding in this video it looks so clean
How to disable resizable ???
thank you broo .. really useful
Hi, nice channel, and nice video. I went through this one and the electronJS one. To dev an multiplateform python app, which one of Eel or ElectronJS would you recommend ? Wich are the main diff between both ?
Many Thanks! - excellent work!
I tried this and I couldn't make it work on other computers..
After I builted the '.exe' I passed everything in my project folder because I figured if it works in my PC, it should work,
but in the other computer, I could run the application and execute all front-end code (html+css+js works correctly) yet the Python code is not running.
Anyone else had this problem? Help!
Thanks a lot sir for teaching me this.
Guys.. I need some help. The app.py file runs perfectly, but once I make an .exe out of it, I get a small window that pops out saying 'fatal error: failed to execute script app'.. I have no idea how to get the logs or anything. Any help please?
I think now its not working it gives me erroe while i run py code
Expected 144 drim c header got 152 from pyobject
From snippet . Keep doing bro
¡Muchas gracias! Has sido de ayuda.
after doing all things , my python file is running fine in the terminal but i am not getting the UI
How to solve eel.js not found? Pls!
So, what would I chose in electron vs eel? Let's say I need basic numpy functionality like matrix multiplication, interpolation, regression fitting etc. which I can code in JavaScript spending a few hours. Then what should I do. Do I write them in JS and use electron? or do I use numpy with python and use Eel? Make an electron vs eel video
Great video! Thank you :) There aren't many video tutorials about Eel.
I made a login page. When the user clicks on the Submit button I check username and password in python. After that how can I switch from the login form to the application GUI?
Thanks in advance ;)
If username and password are correct, pass a Boolean value from python to JavaScript.
If true, change the html page via hyperlink.
@@canvaapplessons1224 Hey dude, a quick help? In my code, (I'm building a similar program, but it has a instead of ) I set .src to .value in Jscrippt, but it doesn't change anything.. Please help
I can use python packages like voice changer.. all that also with eel..I used only tkinter but it's not having attractive design
When I build the package, the app opens up and closes immediately. What should I do?
Hey did you tried your deep learning model in it?? If yes how the performance of the program?
after running the py code I got :
Error: 404 Not Found
Sorry, the requested URL 'localhost:8000/index.html' caused an error:
File does not exist.
Im facing an issue. PyInstaller is stuck at Loading module hook "hook-gevent.py" since forever. Any solution to this
How to generate a popup or open a new window???
really very thank full to you ....can you please let us know from where you learned ...i need to now the source to learn for betterment of my college project please please guide us.
thanks again.
Guys, instead of an Image, I want to set a to the value.. So, I used .value in place of .src in my code, it doesn't work. Please help..
Try .innerHTML = *your text*
@@SouravJohar Oh I found the fix, nvm, but great video.. Thanks a lot.
when i execute python file, the browser shor an error 500, internal server error, did anyone know how to fix this?
Can we make headless or say frame with no titlebar , windows ?
Thank you so much for the tutorial. But I just can´t figure out how to change the icon on the app. Please help!
use --icon with last command
what IDE/Editor are you using?
Good stuff, have you tried it with any front end frameworks like vuejs ?
Can i use it for django app? I want to use my django app as a desktop app.
But will it be able to create heavy apps such as a social network app?
Can we use python entirely (I mean, for backend and frontend)?
This is very timely, gracias
I think now its not working it gives me erroe while i run py code
Expected 144 drim c header got 152 from pyobject
Mini Tip: You can add your our website and icon instead of the default one or the website the person is using.
It appears blurry on taskbar, do you know any solve for that?
eel not working python 3.8
Thank you for the tutorial. BTW how did you make the app without an address bar?
when I run the exe it's tell me that is No such file or dirctory \\\\\eel.js
Thats great. Can we use eel for a large project like an erp project or will we have to use electron for it?
I think now its not working it gives me erroe while i run py code
Expected 144 drim c header got 152 from pyobject
my .exe its take too long to open do you know a way to open faster?
Any one solved let me know
its it possible to disable resize on eel?
Do we needed to install electron?
Just the right ui and functionality I needed for my project. Thanks man.
Can you please let me know where can I find code for gui/ HTML that you used for ui? Thanks in advance
Sourav nice video. Brother I need a help. when I click on the submit button I actually need to see the console output in the same browser window. E.g.I have a python script which I map with your js & html file. Now once I click on submit I am getting the python console output. I want the same output to be displayed on the web browser
How can we use eel in django ?