PyScript First Impressions - Run Python in HTML Document - RIP JavaScript

  Рет қаралды 69,898

Python Simplified

Python Simplified

2 жыл бұрын

In this stream we will talk about a HUGE milestone for Python - The brand new PyScript framework! We will see a demonstration of how to use PyScript, how to combine it with HTML, CSS and JavaScript, and we will also test some of the features in this fun First Impressions tutorial.
Please keep in mind that PyScript is so new that they don't even have documentation at this point of time, so prepare to be extra creative and adventurous as we will try to figure everything out on our own.
After the demonstration I will of course stick around for some viewer questions and comments :)
PyScript Repository on Github:
github.com/pyscript/pyscript
List of Available Packages/Libraries with PyScript:
github.com/pyodide/pyodide/tr...

Пікірлер: 159
@katbryce
@katbryce 2 жыл бұрын
How does it compare with Brython?
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Great question, Katrina! 😀 Brython is much faster and much more established at this point of time. The speed is similar to CPython and there's a really nice documentation with lots of code examples and tutorials: brython.info/static_doc/en/intro.html With that said, Brython is a bit limited in terms of combining Python libraries. It can only use libraries that are completely written in Python, so Pandas, NumPy, OpenCV and Matplotlib are not even an option unfortunatley 🙃 On the other hand, PyScripts' main focus is on those CPython libraries as it's the perfect combo for data science... it's just extremally slow at the moment and no one really knows how to properly use it! hahaha There's still lots of work ahead - but I'm really looking forward to see how it turns out! 😉
@JaveGeddes
@JaveGeddes Жыл бұрын
@@PythonSimplified Where is your Rumble link? I couldn't find you there.
@PythonSimplified
@PythonSimplified Жыл бұрын
@@JaveGeddes you can find me here 😃: rumble.com/user/PythonSimplified
@fabiopliger
@fabiopliger Жыл бұрын
That's a great question. I'd like to give you a different answer than​ @Python Simplified :) "Quoting from it's own page (pyscript.net) PyScript is a framework that allows users to create rich Python applications in the browser using HTML's interface and the power of Pyodide, WASM, and modern web technologies. " It uses Pyodide (a Python implementation on top of WebAssembly) to run Python on the browser. Brython is another implementation of Python and in that sense, it's more fitting to compare Brython to Pyodide rather than Brython and PyScript. (one could actually try to make PyScript run on top of Brython rather than Pyodide but, imho, the cons would outweigh the pros) Now, to compare Brython and Pyodide: Brython transpiles Python code to JavaScript, so can handle some pure-Python libraries only. It does not have any features to support running binary code. Pyodide is a full CPython implementation in WebAssembly, and can use existing Python libraries (including those written in or backed by C), like NumPy, Pandas, and MatPlotLib. From the next release, it should actually be fully based on top of the main official CPython on WASM project (github.com/python/cpython/tree/main/Tools/wasm ), which means it'll basically be able to remove a lot of the patches it had to do. Both Pyodide and Brython are great projects just different and for different audiences. Brython is older iirc, but I wouldn't consider it faster or most established than Pyodide at this point. PyScript is higher level Framework on top of one of them and, yes, it's very very new. Hope this helps 🙂
@mornemarais4198
@mornemarais4198 Жыл бұрын
it is 10times slower than javascript in the browser......
@KeyserTheRedBeard
@KeyserTheRedBeard Жыл бұрын
phenomenal upload Python Simplified. I crushed that thumbs up on your video. Maintain up the amazing work.
@New_Video_Games
@New_Video_Games 2 жыл бұрын
The training was excellent, and at the same time, you are a good teacher, and kind and cheerful. Thanks for this video and i like many like this 💖🙂
@Solaar_Punk
@Solaar_Punk 2 жыл бұрын
Ooh, cool news. Thanks for bringing it to our attention.
@CharlesSmall
@CharlesSmall 2 жыл бұрын
Thank you for the video, i am still learning . New in the programming world. I learn from videos.
@Tom-wm4gy
@Tom-wm4gy 2 жыл бұрын
Thanks, thanks, thanks, thanks, thanks, thanks, thanks,....x1000 For this amazing stream/video! You are really our Python Guru!
@pythonixed4448
@pythonixed4448 2 жыл бұрын
Missed the live stream but exciting to see your thoughts on this.
@digigoliath
@digigoliath 2 жыл бұрын
OMG!! Fun times are here! I think we have found our playground!
@jay_wright_thats_right
@jay_wright_thats_right 2 ай бұрын
You're smoking something good aren't you?
@alexandermcalpine
@alexandermcalpine 2 жыл бұрын
Great Videos! Keep up the great work
@linuxrobotgeek
@linuxrobotgeek 2 жыл бұрын
I'm going to give this a try. Thank you for the stream
@rizkydermawan408
@rizkydermawan408 Жыл бұрын
Congratulations for your 100.000 subs 🎉🎊
@PythonSimplified
@PythonSimplified Жыл бұрын
Thank you so much! :)
@rizkydermawan408
@rizkydermawan408 Жыл бұрын
@@PythonSimplified you're welcome. I'm your new fan
@kingsofgeek
@kingsofgeek 2 жыл бұрын
I can’t believe it. I’ve been wanting to do this outside of Django. I have so many app ideas that I’ve written in python that I want to bring to the web. Thanks 1000x
@manusoftar
@manusoftar Жыл бұрын
please don't... they will run owfuly slow...
@bahodirrajabov7964
@bahodirrajabov7964 2 жыл бұрын
JS TOP and it will never die
@Y4nkStyle
@Y4nkStyle 2 жыл бұрын
Future looks bright for python users. I love python and wish/hope that it will get there. I do believe that this is the future tho.
@jay_wright_thats_right
@jay_wright_thats_right 2 ай бұрын
This isn't the future.
@savantofillusions
@savantofillusions Жыл бұрын
I’ve been waiting for this
@alexkatsanos8475
@alexkatsanos8475 2 жыл бұрын
Thanks for the info!
@skwaweruKE
@skwaweruKE Жыл бұрын
Bravo. You are really amazing.
@edwardchifike396
@edwardchifike396 2 жыл бұрын
Great tutorial
@pythondz7901
@pythondz7901 2 жыл бұрын
Thank you Mariya
@jorge1869
@jorge1869 2 жыл бұрын
PyScript is game changer.
@sumudunethmina669
@sumudunethmina669 2 жыл бұрын
Grate video 👍❤️
@GabrielScindian
@GabrielScindian 2 жыл бұрын
This is AMAZING
@cuongt42184
@cuongt42184 Жыл бұрын
It's gonna be YUUUUGE!! 🤣
@gersonadr2
@gersonadr2 2 жыл бұрын
Wh-wh-whaaaat?? OMG this will change my life
@solido888
@solido888 2 жыл бұрын
Interested to see where this goes
@bel5ebra_zone
@bel5ebra_zone Жыл бұрын
i loved it (big type)
@vcool
@vcool Жыл бұрын
Вялікі табе дзякуй!
@arijanrahimic3210
@arijanrahimic3210 2 жыл бұрын
Try Restreamer by Datarhei 😎💪 nice one THX
@kishorekumarjorige
@kishorekumarjorige 9 ай бұрын
hello thank you so much
@shoshanamofaz3012
@shoshanamofaz3012 2 жыл бұрын
Dell has me using Typescript for the client side. I have fewer errors at runtime than regular JavaScript. I have done full stack with python using anvil. It has html.5
@christopherchang1714
@christopherchang1714 Жыл бұрын
Wonderful! This is kind of ‘Breaking The Pandora’s box.’ Now what? What’s next? Demise of JavaScrpit and PHP? I don’t know.
@Debianz
@Debianz 2 жыл бұрын
Wake me up when this project becomes actually useful to professional web developers that deal with complex web applications. I can't see this being practical in even the smallest of projects.
@youaremad1736
@youaremad1736 Жыл бұрын
Thank youuuu!!!
@youaremad1736
@youaremad1736 Жыл бұрын
It’s *not* gonna replace js, that simple
@ribeiro4642
@ribeiro4642 2 жыл бұрын
Rip Javascript? 😂 😂 😂 😂
@dhawalparmar7117
@dhawalparmar7117 Жыл бұрын
Hey listen javascript never die
@hagopboghossian6841
@hagopboghossian6841 2 жыл бұрын
Respect to javascript
@waytospergtherebro
@waytospergtherebro 2 жыл бұрын
That sounds like an excellent idea that will never lead to any fork bombs or privilege escalations.
@ElbahethAmrSrour
@ElbahethAmrSrour 3 ай бұрын
Great
@johannesreyem5376
@johannesreyem5376 Жыл бұрын
RasPi ? i set up a 'PC' with a Pi 4B in my parents place, in case i am there. performant enough to the web or programing. rasp is rare right now, because of chip shortage
@djladieslove1
@djladieslove1 Жыл бұрын
If my mentor was this beautiful and smart I’ll be on campus Sunday crying why don’t we have class 😢
@goodluckoriuwa1669
@goodluckoriuwa1669 Жыл бұрын
Do we need to hold on to control key to effect change?
@rscodeboy
@rscodeboy Жыл бұрын
But mam JavaScript is never die anything or anywhere.. It is always ultimate...
@francislambert5189
@francislambert5189 2 жыл бұрын
1000 Likes...Your welcome. I can't wait to see. Peace : )
@russellwalsh6502
@russellwalsh6502 2 жыл бұрын
nice
@GGGGGGGGGG96
@GGGGGGGGGG96 2 жыл бұрын
I am sure in 10 years they will be also youtube-videos with the title "RIP JavaScript" ;)
@AndrewTSq
@AndrewTSq 2 жыл бұрын
there have been those videos since like 10 years back. But JS in latest version is my fav language, so I dont care if something else is more popular. I would love to program in some Pascal even :)
@diwakar_tsn
@diwakar_tsn 2 жыл бұрын
Lol! I sleep before live 😆 See ya ✌️
@manusoftar
@manusoftar Жыл бұрын
I can already invision lots of "slow like f*" websites based on this, unfortunately. The two main reasons why this approach for making websites is slow like f* are: 1.- Python itself is slow like f* 2.- Browsers don't offer nativa support for running Python code, this is some js library (which IS run natively on the browser) that somehow manages to run Python code, my best guess is that it uses some sort of cloud computing solution to emulate a headless terminal with Python where it runs the code and then captures the output and sends it back to the website. Like a virtual machine that has Python installed and does the execution of the code to then return the output of the execution to the js library which in time outputs it into the innerhtml of the py-script tag... I will definately stick to old and trusty JS!!
@samferrer
@samferrer 2 жыл бұрын
The future is not about any specific language ... it is about freedom of choice ...
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Agree a 100%!!! When it comes to options - the more the merrier! 😃😃😃 Now, finally, client side Python is also an option!
@gronki1
@gronki1 Жыл бұрын
do you stream on twitch?
@omaralasad8117
@omaralasad8117 2 жыл бұрын
❤❤❤❤❤❤❤
@dinimueterihrhurene2772
@dinimueterihrhurene2772 Жыл бұрын
cool
@bootstrapsimplified4698
@bootstrapsimplified4698 Жыл бұрын
do you know how to change background colour when I clicked on a button using pyscript ? Please help me with this
@youaremad1736
@youaremad1736 Жыл бұрын
Learn Java script
@sirahmedabdelaziz8399
@sirahmedabdelaziz8399 Жыл бұрын
i have a problem I can't run it in my browser i installed it in my Linux Ubuntu i'm using in the browser can you tell us more about syntax
@neuraspike
@neuraspike Жыл бұрын
Amazing video. Where did you get the background on your screen from?
@PythonSimplified
@PythonSimplified Жыл бұрын
It's the ROG aura wallpaper 😃 It's synced with my keyboard/mouse/computer RGBs so it's extra nice when most of your gear is with Asus ROG 😉
@CebolaDeLed
@CebolaDeLed 9 ай бұрын
I love Pyscript, slow, heavy and more, more, more... Lazy js "loader" 😂😂😂❤
@KestutisJanuskevicius
@KestutisJanuskevicius 2 жыл бұрын
I've got an idea - Django + Django Rest Framework and pyscript with requests on the frontend, and jinja2 to output... hmm
@KestutisJanuskevicius
@KestutisJanuskevicius 2 жыл бұрын
"I don't know C#, I only know C++" made me to subscribe to this gal, keep it up! Microsoft languages are crap, python and C++ all the way :)
@JustAn0therSoul
@JustAn0therSoul 2 жыл бұрын
C# is the best programming language on this planet and not a java clone. # # # According to microsoft.
@MrTruthAndFacts
@MrTruthAndFacts 2 жыл бұрын
RIP JavaScript? LOL 🤣🤣🤣
@ahmed-developer
@ahmed-developer Жыл бұрын
How can I design pyscript's Riple? by using css
@AvinashSewpersadh
@AvinashSewpersadh 2 жыл бұрын
Lol@ the RIP JS title
@fickthissut
@fickthissut 2 жыл бұрын
It would be nice, if pyscript html tag was little shorter.
@Martin-xf8be
@Martin-xf8be Жыл бұрын
So, 10 months in. What are your thoughts on it now?
@PythonSimplified
@PythonSimplified Жыл бұрын
Will post a full tutorial on it in the next few weeks 😉
@Martin-xf8be
@Martin-xf8be Жыл бұрын
@@PythonSimplified Cheers! :)
@knowledgedoctor3849
@knowledgedoctor3849 2 жыл бұрын
Cool Wanna to Collaborate With You.. Great
@naveenkariyappa
@naveenkariyappa 2 жыл бұрын
it would be great if i can call a python function from js and return result from python back to js . i can get 10000 use case for the same
@bruhlickd
@bruhlickd 7 ай бұрын
Can I build an entire site with pyscript?
@cybersecurityexpert477
@cybersecurityexpert477 2 жыл бұрын
Ma'am can we create app or website in python with mobile
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Yup, I was able to do so with Wayscript, they provide you a bash runtime even if you access their service through your phone - your code will run on their clouds rather than on Android 😊 And if you follow my most recent Flask tutorial: kzbin.info/www/bejne/rGSmhIShha-nd8U I also show you how to host your site with Wayscript there... but the only caveat is that you may not have enough free runtime to build an entire site, you may need to select a plan instead of using only the free features. Another option if you have a modern Samsung phone is to use DeX which turns your phone into a computer (I believe you get a Linux environment with it). Other than that, it's a bit difficult to create websites on the phone with code... but you can always go for Wordpress or Wix if everything else fails 🤷‍♀️
@pwang99
@pwang99 Жыл бұрын
Yes, pyscript runs on mobile Safari and android. You can even add pyscript apps/pages to your iOS Home Screen as an app, bc iOS thinks It’s just a web page. 😀
@emilfilipov169
@emilfilipov169 Жыл бұрын
I can't wait to host pygame projects on random websites on the internet xD
@yanko694
@yanko694 2 жыл бұрын
I am no fan of js however you can create desktop and mobile apps with JavaScript... why do people make it sound like this is some huge innovation... you can run almost anything with wasm in browser at this point...
@sumudunethmina669
@sumudunethmina669 2 жыл бұрын
A person with your logo is browsing your youtube channel and he tells the fans that he has won the giveaway and gets their details. I'm caught him by my mistake too.🙏
@ahmed-developer
@ahmed-developer Жыл бұрын
I Just Came here to learn pyscript. But i Got chatting here.
@vikashkumarupadhyay2538
@vikashkumarupadhyay2538 Жыл бұрын
Hey please start Django complete web development tutorial for project
@nathanrangel4040
@nathanrangel4040 2 жыл бұрын
Sudo(capture+heart)1+00)) function
@sammyay-man2754
@sammyay-man2754 5 ай бұрын
Didnt work for me. Please help me
@mamaafrica2512
@mamaafrica2512 2 жыл бұрын
Guys try Golang
@hakis1010
@hakis1010 2 жыл бұрын
hehe rip javascript feels so 2006
@AndrewTSq
@AndrewTSq 2 жыл бұрын
funny thing is that python is 4 years older than JS :-)
@j1351209
@j1351209 2 жыл бұрын
what about rustpython?
@marcelchaloupka
@marcelchaloupka 2 жыл бұрын
Not sure how this is a JS replacement when it requires JS to implement. What am I missing?
@GGGGGGGGGG96
@GGGGGGGGGG96 2 жыл бұрын
It is not a replacement for JavaScript, it is more like an "extension" at the moment.
@AndrewTSq
@AndrewTSq 2 жыл бұрын
JS is way faster than python, and maybe this implementation might give python some speed? Not sure since I have not tried this pyscript yet.
@jasonlegi
@jasonlegi 2 жыл бұрын
Lol python is already awfully slow can you imagine this?
@apuji7555
@apuji7555 Жыл бұрын
@@AndrewTSq No, this is terribly slow
@frikkievandermerwe
@frikkievandermerwe 2 жыл бұрын
Brython still seems faster...
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Yup! I 100% agree with you, Frikkie! 😀 Brython is as fast as CPython, while PyScript is nowhere near that at this point of time! With that said - Brython cannot be combined with libraries such as NumPy, Pandas, OpenCV, Matplotlib, etc. ironically, anything written in CPython is not gonna work 😅 So Brython CPython in terms of speed but no CPython functionality. While PyScript has all the CPython functionality but zero the speed hahahahaha on well...🙃
@frikkievandermerwe
@frikkievandermerwe 2 жыл бұрын
@@PythonSimplified wow thanks for clearing that up. I am playing around with both and now get the main difference. In that case, my mind is blown! Excited for where Python is heading!
@SajidAli-wy1zs
@SajidAli-wy1zs 2 жыл бұрын
please replace javascript. please do it
@AliHassan-wc6nb
@AliHassan-wc6nb 2 жыл бұрын
Hahahaha I also want JavaScript to be replaced with something new, so that we all will be on the same level and learn new things from scratch! Vanilla Js, angular 1, angular 2, react, react native, Vue Js, next Js. Node Js...... tons of libraries and frameworks!!! I will leave everything!!! And will learn pyscript with peace of mind!!!
@rayankhan12
@rayankhan12 Жыл бұрын
JavaScript will *never* be replaced by py-script. Stop daydreaming.
@illegalsmirf
@illegalsmirf 2 жыл бұрын
Hallo pretty lady!
@danhansson666
@danhansson666 Жыл бұрын
Javascript is as easy as python, sure it is a little bit more to write but not that much!
@Gcc195
@Gcc195 6 ай бұрын
Get fellow canadian
@City__Walker
@City__Walker 2 жыл бұрын
Ha but Pyscript not create SPA and Components it just nice library for Js😆
@mounirben9370
@mounirben9370 2 жыл бұрын
It's just a javascript extension that reads python and displays it on the browser 😁
@tanero23
@tanero23 2 жыл бұрын
RIP Javascript? 🤣
@cyrilledibi7624
@cyrilledibi7624 2 жыл бұрын
callbel
@skycloud4802
@skycloud4802 2 жыл бұрын
Please replace JavaScript. Please please do
@ceroluselazurin6842
@ceroluselazurin6842 2 жыл бұрын
JavaScript is a devilspawn 👿 It is known.
@AlexStefan-vs2dj
@AlexStefan-vs2dj 2 жыл бұрын
never muhahahahhaa
@Michael-Martell
@Michael-Martell 2 жыл бұрын
I’m a junior JS web developer. React/Next. Idk any other language yet but I’m wondering… why?
@viallymboma9874
@viallymboma9874 2 жыл бұрын
it can never be replaced...beside...pyscript is slower than JavaScript...
@ceroluselazurin6842
@ceroluselazurin6842 2 жыл бұрын
@@viallymboma9874 may your soul be punished with eternal js coding with no code completion.
@jay_wright_thats_right
@jay_wright_thats_right 2 ай бұрын
I'll pass on this. I'll stick with JavaScript. Enterprises and medium sized companies will NOT be porting their code to Python just because it's something to do.
@PythonSimplified
@PythonSimplified 2 ай бұрын
I thought Instagram/Facebook/Spotify have been using Django for quite a while... 🤔 (but I guess Django's front end interactions are still JavaScript based for the most part, it's the backend that's using Python) I suggest looking into Taipy if you're looking for a scalable, enterprise-grade Pythonic solution 😉
@CebolaDeLed
@CebolaDeLed 9 ай бұрын
Brython or Pyodide, simple... Rest in rest Pyscript 😂
@qlebevillon
@qlebevillon 2 жыл бұрын
Yes but why ? Just learn JS, why do one thing at a time with python when you can do multiple with JS, i don't get it. If language is too chaotic for you, then learn typescript.
@plutus4047
@plutus4047 2 жыл бұрын
JavaScript won't RIP though
@DreadArsenol
@DreadArsenol Жыл бұрын
Bro wtf is the point of pyscript if it’s just JavaScript html and cad lmao
@user-jl7et8gx5u
@user-jl7et8gx5u 2 жыл бұрын
SLAVA UKRAINE !
@franciscokloganb
@franciscokloganb 2 жыл бұрын
PyScript == JavaScript in 1995. A waste o time really.
@samferrer
@samferrer 2 жыл бұрын
You can not compare javascript with python. Their respective communities will decide what can be done. Nobody has the upper hand anymore since webassembly (the one behind pyscript) showed up.
@progaymer.69
@progaymer.69 2 жыл бұрын
Bruhh it is like using lua for making games when you have unreal engine
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Was anybody even using unreal engine before it was officially released? 🤔 Pyscript is still in beta, there is no documentation, nobody knows how to use it at this point of time... how is that a fair comparison?
@progaymer.69
@progaymer.69 Жыл бұрын
@@PythonSimplified but why to use something that's still in development when you have like 25 years old technology
@giuliomarcolin6292
@giuliomarcolin6292 2 жыл бұрын
another bad solution to facilitate people that can't learn a better language..... those kind of stuff should be banned to me. optimized code and languages should be the rule for every program, it optimizes energy consumption and slows down then need of better hardware therefore deecreesing waste.
@PythonSimplified
@PythonSimplified 2 жыл бұрын
Banned? 🤔 You don't have to use it if you don't want to... but why do you want to prevent other people from using it? If we don't try new things - there won't be any progress with anything. Banning new ideas is not a solution for a society that wants to grow and get better... live and let live
@BobAg_
@BobAg_ 2 жыл бұрын
This is weird and pointless. Good video, though!
@coolpot
@coolpot 2 жыл бұрын
rip js? python sucks! good luck!!
@user-jl7et8gx5u
@user-jl7et8gx5u 2 жыл бұрын
СЛАВА УКРАИНЕ !
@colinmaharaj
@colinmaharaj Жыл бұрын
I hate python for too many reasons, the biggest one is because it's very very very slow. And the world has spent decades optimizing JavaScript.
Simple Machine Learning GUI App with Taipy and Tensorflow
30:52
Python Simplified
Рет қаралды 163 М.
Simple Web App with Flask and Heroku - Python GUI for Beginners
25:07
Python Simplified
Рет қаралды 213 М.
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 24 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 64 МЛН
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 33 МЛН
Learn Docker Quickly - Machine Learning Project for Absolute Beginners
25:31
PyScript - Run Python in the Browser! Will It Crush Javascript?!
10:07
Cloud Computing for Beginners - The Ultimate Guide
21:34
Python Simplified
Рет қаралды 19 М.
How to Learn Javascript in 2023 (From ZERO)
8:04
Andy Sterkowitz
Рет қаралды 274 М.
Build a mobile popover menu with Svelte & OpenProps
12:44
Josh Nussbaum
Рет қаралды 385
So I removed lags from Minecraft... (SATISFYING)
9:38
Element X
Рет қаралды 63 М.
How to MASTER Javascript FAST in 2023
12:49
Internet Made Coder
Рет қаралды 330 М.
Когда вышел гулять с детьми и она пишет «как там дети?» @super.brodyagi
0:17
Супер Бродяги - Семейство бродяг
Рет қаралды 1,4 МЛН
Перевоспитал школьников 😂 #сериал #топ
0:45
Топ по Ивановым
Рет қаралды 6 МЛН
Рисую свою семью
1:00
Штукенция
Рет қаралды 2,9 МЛН
Do you have a friend like this? 🤣#shorts
0:12
dednahype
Рет қаралды 28 МЛН