PyScript - Run Python in the Browser! Will It Crush Javascript?!

preview_player
Показать описание
In this video we'll look at PyScript to run Python on a Webpage!

PyScript is a very cool project from the people at Anaconda that allows you to run Python straight on a webpage without any backend frameworks!

It's very early days, and there are a lot of problems with the project...but you can still check it out and play with it while they work on buidling out a stable version!

#pyscript #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:40 - Use PyScript on a Webpage
2:40 - Using The py-script Tag
3:30 - Install PyScript On Your Computer?
5:22 - Use Variables With PyScript
6:42 - Use Lists With PyScript
7:29 - Use Logic With PyScript
8:35 - Conclusion
Рекомендации по теме
Комментарии
Автор

Wow, this sounds awesome. Can't wait to follow along with your upcoming videos about it.

benlong
Автор

The Heisenberg of Python...

As always, great video man

carlosnavamat
Автор

Really forward to watch your pyscript courses

pragyanprabhu
Автор

Pretty cool! Can’t wait to see what we can really do with it

MobbyG
Автор

But why? anything python can do but javascript can't?
the main concern is how the python work with html and css. What's the method to get element id/class? can we directly write html content into the html page with python?
I see it can work with numpy, matplotlib. Would like to see a tutorial or demo on those module work.

stefenleung
Автор

If you dl it you need to compile the typescript which will create the pyscript js file, probably in a build/ directory, but it should be in the same folder as src/ is in

Tntpker
Автор

do you think you could run tkinter inside? and possibly actualyl running an app that way? lol i do worry about cross site scripting though

MrChrisLia
Автор

Wow exciting, it's gonna be a game changer!

timonnjuhigu
Автор

Hi, so i have a python file that executes a game and a html file with button. So i want it like when the button is clicked my python game file will be executed and one can play the game, vut i tried a lot of tutorial and evertime i got an error pls help me 😢

anilgupta
Автор

How can I use it to take an input and like use the python script though it?

arijitkumarkhanra
Автор

I guess, When the page show in the browser, Actually is the browser send the script to the server then server run the script return the result send to the browser.

chuang
Автор

is it JavaScript that allows you to run Python, or actual Python? I also didn't see documentation on the website but I've seen example of it connecting to the DOM, which is pretty neat

kevincodes
Автор

I think I see a python version of Electron in our future

CharlesStarbuck
Автор

There's also Brython which I long ago somehow forgot to check out.

ThankYouESM
Автор

I have seen a few tutorials but none show any functionality from the client side ie interactivity on the rendered web page. That is the whole point of using js so the web page viewer can directly interact with the page and change it. I can't find a single example of pyscript having that functionality so the question is what is it for? Not trying to be negative.

errorpagenotfound.
Автор

How to save things on tkinter like example: You typed words on entry, and if you close the app and open it again, it will save the words

Rshers
Автор

Hi do you have any intructions to setup pyscript from my local machine without any external call? I mean, I need pyscript not calling to any other URL, just running from local files

acs
Автор

can we import opencv or tkinter or paho with pyscript

darknights
Автор

yes super interested in this, would it be possible to use with django?

matex
Автор

can we use tkinter in html?
using pyscript

technoloop