PyScript - Run Python in the Browser! THE END of JavaScript???

preview_player
Показать описание
PyScript is a framework that allows users to create Python applications in the browser using HTML. In this video we have a look at it and I show you how it works:

Resources:

Get my Free NumPy Handbook:

📓 ML Notebooks available on Patreon:

If you enjoyed this video, please subscribe to the channel:

~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

#Python

----------------------------------------------------------------------------------------------------------
* This is an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏
Рекомендации по теме
Комментарии
Автор

The fact that its made by the Anaconda team puts me at ease that its here to stay and will only improve with time. Pretty awesome, the future of web dev is changing so fast.

vectoralphaSec
Автор

I dont think js is ever going away. There is just too much dependency on it. But the fact that this is even possible is very exciting. It will be interesting to see how this evolves. I see full stack Python webapps in the future.

RubixCubed
Автор

i cant believe this, neither can i imagine the complexity of the code in the pyscript's CSS and JS files. These guys are real legends!

dydufjfbfnddhbxnddj
Автор

instead of <py-script> they should have ideally used <script lang="python"> but i do see how that was not possible assuming that the py-script tag is probably a web component

StarOnCheek
Автор

"The end of javascript" Is always coming according to everyone... but It's not going away anytime soon

Ricardoromero
Автор

Wish we could have a dedicated Python Frontend

Can't wait to experience that.

simonmafanye.
Автор

Absolutely great video! Thanks.

Thanks to the PyScript team, and associated, as well. This will be big down the road. And what an easy implementation.

k.chriscaldwell
Автор

This is a really cool project, but honestly the only reason I can see for using it is bringing awesome python libs like matplotlib, pandas, sympy etc. to the browser. For the rest I see no reason or need to use it, the javascript ecosystem is huge and powerful. Why would any frontend developer switch to the python apis if he or she is comfortable in the js apis? Only thing is that this makes the web more accessible for python developers and lowers the threshold to get started with frontend development for them. That's a good thing for sure, but it won't change the industry imo.

Mane
Автор

They should invest more time in improving wasm so you can use wherever kind of language you're confortable with. Imagine if you could easily manipulate the DOM through wasm, this will really change web development!

diegorocha
Автор

This is very exciting, Thank you for informing us about it, now as pythonistas we must contribute and build a community about pyscript :D

G-k
Автор

Congratulations, now I can execute my DOM code more slowly🙂

krtirtho
Автор

WASM has been around for years and there are even Rust, C#, Kotlin etc. front end frameworks... and they did shit to JS. So short answer is no

IvanRandomDude
Автор

I mean... I get it, for use cases where you really need specific Python packages...

But not without some SERIOUS performance issues.

This comes from just the Hello World Example

1. 290 kb of CSS and 300 kb of JS dependencies
2. 7 *MB* for the Python interpreter
3. 1.2 *MB* for dependencies

Just for a Hello World example.

Unless this gets built into browsers natively, you're absolutely gonna KILL your site's performance. Almost 9MB you can't get rid of is an INSANE amount of data, and on top you're running a Python interpreter in webassembly.

Use sparingly when you have no alternatives left.

theaninova
Автор

"It will take a few moments" ... I see we get the full python experience in the browser 😅

ivanbgp
Автор

Wow, very excited on what this becomes in a few years. Lot's of potential for big data visualizations.

ehabaleid
Автор

Guys, before talking about how it can replace JS please check PyScript-s performance. Python by itself is kinda slow, and this makes it even slower. For example, it tasks about 1s to print current datetime.

Also, why would data scientist need library for web? No, I don't think it will replace JS any time sooner, if ever. Also, I don't want to think about XSS attacks and similar stuff.

miletadulovic
Автор

Incredible. It's one of the best news I have had in these last two months. And it's also backed by a big and professional team, like Anaconda's one! Hope this video is watched by more ;)

antoniopena
Автор

When I think about python front end, components as objects comes to mind. PyScript reminds me Kivy in some ways, a great project that is always "experimental"

alexandrecostadosim
Автор

Amazing tutorial, I spent 30 mins finding a tutorial that actually works. You are immensely underrated.

rayanbilal
Автор

I guess I'd like to see more focus on just making python compile to webassembly really well.

xpkareem