Python In The Browser! PyScript First Look

preview_player
Показать описание
In this video, we will look at the brand new PyScript framework, which uses Web Assembly and Pyodide to write Python and use Python Packages right in our HTML. And no, it will NOT replace JavaScript.

🐍 PyScript Website & Examples:

📘Check out my 300 page Web Dev Guide:

💻 All Courses

💖 Show Support

👇 Follow Me On Social Media:

Timestamps:
0:00 - Intro
1:45 - How it works
4:18 - Getting Started
5:17 - Disable formatOnSave
6:06 - Writing Python in HTML
6:37 - Mixing JavaScript
7:02 - Targeting DOM elements
8:15 - REPL
8:54 - Math module
9:18 - Env & 3rd party packages
11:10 - Using a separate .py file
13:16 - Handling events
14:45 - Shuffle array
16:04 - Using Element()
18:00 - Using multiple files
20:22 - Wrap up
Рекомендации по теме
Комментарии
Автор

Remember, this is in Alpha, so it is very very new. It also will never replace JS. In my humble opinion, It will simply bring some great Python packages and tasks to the browser environment. Which I think is pretty damn cool. Anyone saying it will replace JS is fear-mongering or trying to get clicks.

TraversyMedia
Автор

console.log from inside a Py script took my breath away. Obviously the the ability to use Py packages in the browser is great but the bi-directional link between Py and JS to me is the most fascinating thing about this innovation.

ighsight
Автор

The new intro is so modern and fire!!!

nalinipathak
Автор

Finally a video that clarifies pyscript. I think it's just the beginning but it could be bigger later on. But sure it doesn't replace JAVASCRIPT, let's not exaggerate. They are always two different things and I say this from Js-React dev, which is learning Python. They are both extraordinary

universecode
Автор

Can't wait to see a full course from you, when Pyscript is ready. Thanks very much

m.lamintamba
Автор

That's wicked, thanks for the small review video, I've got so many tools programmed in Python on so many machines, I already see some potential for moving a few of them online and accessing them via some neat user interface. I had no idea something like that existed, plus it looks super intuitive. So thanks for that :)

kleczekr
Автор

Funny, been learning JS for the past month or so. Just today decided to switch over for a bit to Python for various reasons...then I come across this video. How perfect a timing!

opopopop
Автор

very nice. as a web dev and a slytherin, i really love the idea of adding Python to my applications.

firelordkushroll
Автор

I can already see myself invested in this and creating something as I love python. Thanks for the video!

akshaypendyala
Автор

Thank you so much for making this video. You saved me from getting a low c on my final project.

sqlyoutuber
Автор

Wow that was incredible! 🤯 The ability to use Python packages in the browser!!! That's huge 💯
Thanks for putting this video together Brad 👍🏻

petecapecod
Автор

This PyScript will be extremely helpful using with IoT. Simple project: You can have an Arduino/ESP32/Raspberry Pi, Python in the middle and PyScript on the Front-end and create really nice Dashboard, for instance.

fvgoya
Автор

This seems great! I have a question, about the practicality of it. Considering that the heavy computational operations that python would be doing, isn't that going to make any large scale website even more ram hungry? React + AI powered by Python sounds amazing, but the end user might disagree. I am just a junior, sorry if I'm missing something obvious.

teodortodorov
Автор

I started coding 6 years back had a job for 5 years they getting ready to fire me soon. I written a ton of different things for them and now I understand the true power of these programs after using them in real work examples. Anyways thanks and cheers to the futuree

t-qz
Автор

Thats cool I bet you can make python and JS interoperate using the dom as a messaging service

OneCSeven
Автор

20:35 really hit the frontend developers's thought!

wilsonwang
Автор

This is so cool! Wonder if it could also display data visualisations created in Python within the browser, imagine being able to display seaborn graph without having to learn an entirely new data vis. framework like d3.js to display data in front-ends.

pieterdebaere
Автор

I m realy excited to use python on the front end I was struggling with Js for months, and finally python for the rescue .Thank you for sharing knowledge with the community.You earned +1 subscriber❤❤

bootstrapsimplified
Автор

As a Python developer... this is wild!

jennitogo
Автор

Kjo është videoja më e mirë ndonjëherë

BCTAHbKA