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.
@adnaanmansuri61512 жыл бұрын
gonna i
@p13i2 жыл бұрын
LOL same feeling
@kingleo4292 жыл бұрын
Long live the king
@kingleo4292 жыл бұрын
Long live the king
@jakubkoj12 жыл бұрын
Its a cool project, but there is no way this is the future of web dev.
@dydufjfbfnddhbxnddj832 жыл бұрын
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!
@ryanchowdhary9652 жыл бұрын
It's like saying Javascript will end tomorrow.
@edmondmovsisyan22242 жыл бұрын
@@ryanchowdhary965 Definitely won't. JS was built from the ground up for browsers + the speed of JS is unmatched.
@soushi88852 жыл бұрын
@@weakspirit_ I think WASM is build in complementarity with JS, not with the idea to replace it. For example, you can do most of your front end app in JS and use WASM (with Rust for example) only for critical parts.
@hasnaindev2 жыл бұрын
I mean yeah but no. Any higher level language that you see is usually written in a medium or lower level language. PyScript is written in JS, nothing really surprising but imagine this, PyScript runs on JS, JS runs on V8, V8 is written in C++ and lets you do stuff. This is just an additional and unnecessary step. I really hope PyScript doesn't really become a thing. Right now, it's going to be slower even more than JS. For browsers to natively support this would take years if not a decade. Would've been better if the compiler was written in Web Assembly. Not sure how big or small the bundle size would be with Web Assembly though.
@RubixCubed32 жыл бұрын
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.
@neociber242 жыл бұрын
Is just like C, you can't het rip of C
@NoName-kt3ny2 жыл бұрын
@@neociber24 Yes, you can not, there are still a lot of things are coded in C.
@apuji75552 жыл бұрын
@@avid459 nope, web assembly isn't even meant to replace js, its means to work in performance-required places, and really only there.
@sparshgoyal2312 жыл бұрын
I see Full-stack developers with no dependecies on Java or JS
@rand0mtv6602 жыл бұрын
@@avid459 People have been saying WASM will replace JS for years now. It won't happen for many years (if ever), even with expanded capabilities of WASM (DOM and IO).
@StarOnCheek2 жыл бұрын
instead of they should have ideally used but i do see how that was not possible assuming that the py-script tag is probably a web component
@PeterWang992 жыл бұрын
This would be many more characters to type, for beginners/novices. And we have many other web components, e.g. , , etc.
@rafagd2 жыл бұрын
Well, is probably the most compliant way. Novices will be copying it anyway, number of characters is irrelevant.
@StarOnCheek2 жыл бұрын
@@rafagd true, I have not written raw html in a long time that I forgot about those. Can I edit my comment?
@unique-3172 жыл бұрын
is how brython does it, also idk why people so excited about py-script, brython brings python to the browser and has existed for years
@deaddoctor2 жыл бұрын
@Quezako I don't think it will ever be natively supported by browsers because Javascript and the huge economy of tools around it were developed over years and people tend to always just the most convenient way. Also, it's the professionals who change the industry and they already know how to use Javascript very well. At least that's my guess, but who knows?
@Ricardoromero44442 жыл бұрын
"The end of javascript" Is always coming according to everyone... but It's not going away anytime soon
@duckmasterflex2 жыл бұрын
Javascript will always be faster and leaner
@AndrewTSq2 жыл бұрын
@@duckmasterflex yeah, and python also eats alot of memory for me
@pliniojr952 жыл бұрын
I just started to learn JS to use it in front end. Imagine the frustration of learning a language and seeing it be replaced by another one within a short span of time.😂
@AmandeepSingh-cv5qz2 жыл бұрын
@@pliniojr95 same here
@Ricardoromero44442 жыл бұрын
@@pliniojr95 Don't worry man Js won't be replaced by anything anytime soon. Maybe in another 15 years... but by then we will all be coding in natural language or some weird visual interface
@Ma1ne22 жыл бұрын
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.
@zacharyelliott71612 жыл бұрын
I don't think many professionals will but as someone almost competent at python and not good with php or js this is great.
@heroe14862 жыл бұрын
For the same reasons tons of devs are using node on the backend while there isn't really any reason one would want his backend in JavaScript, they just want to only use one language for both be and fe. Well tons of people are still actually using python on the backend and switch to JS for the fe, if a framework like React with python was good enough I could see myself trying it. These days you actually write tons of logic in the front end so wanting python is natural and goes beyond the inability of some for writing js.
@Ma1ne22 жыл бұрын
@@heroe1486 The only difference being that JavaScript is tightly integrated and standardised in the browser. The APIs developed over years, as well as the frameworks and libraries around it. It will take Python years or decades to catch up with this. It is based on a compilation to WebAssembly which is fast and great but also these binding have to develop over time and improve to reach the level of flexibility JavaScript offers today. I am just saying there is a lot of work to do and no real upside for any current web developer to switch. As I wrote in my first comment, that is not the case for new python developers coming to the frontend, which is great. But for them it will be a long way to establish the kind of ecosystem JavaScript has today.
@barodrinksbeer74842 жыл бұрын
I sort of agree. However, I would rather use R and Python together if I'm using data manipulation and visualization packages. R also already has a good foundation for HTML presentation through markdown.
@themathforyou2 жыл бұрын
There is another reason if python game developers wants to import their games to the online web.
@simonmafanye.35372 жыл бұрын
Wish we could have a dedicated Python Frontend Framework..... Can't wait to experience that.
@SkyyySi2 жыл бұрын
React.py, Vue.py, AngularPy, ... Oh no
@ryanchowdhary9652 жыл бұрын
@@SkyyySi *everyone liked that*
@codingcrashkurse64292 жыл бұрын
@@SkyyySi Well we will see how this works out. React etc. are quite advanced technologies with virtual dom usage and had a large community growing over years backed up by large corporations. I don´t see python killing JS in the browser so quickly. But I see some nice opportunities for libraries or frameworks for maybe smaller projects and small corporations with no frontend and backend teams. Everybody knows the title is clickbait a bit ;-)
@lutfiikbalmajid31282 жыл бұрын
@@SkyyySi oh no, i must be ready replace to react.py
@RikThePixel2 жыл бұрын
0.0 Did I hear someone say Reacthon
@diegorocha21862 жыл бұрын
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!
@PutlerXLO2 жыл бұрын
Just imagine that you have been able to manipulate the DOM with normal JS for 25 years :D
@blendergaming15792 жыл бұрын
It's just what we need! To know vanilla javascript, typescript, html, css, scss, styled components, react, next, angular, sql, document dbs, rest, graphql, linux, docker, cloud providers, python or bash, and other programming languages! How about something that simplifies web development instead of adding complexity and more skills employers want to add to their 100 item lists for developer and cloud jobs?
@mstalcup2 жыл бұрын
@@PutlerXLO Thank you!
@brymstoner2 жыл бұрын
imagine if you could just reverse proxy any language to a web page; oh wait, you already can.
@realalphabet Жыл бұрын
It is already possible to retrieve a DOM node in Web Assembly from a JavaScript function. And native functions if you want, as long as there is a bridge to convert between data types. Allowing WebAssembly to execute native functions on its own would represent a technical security challenge. Not to mention the fact that it would be work for nothing. Because yes, the native functions would also have to be modified to support the WebAssembly equivalent, since these functions expect handles of JavaScript variables.
@k.chriscaldwell41412 жыл бұрын
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.
@admniyeokuyorsun...30442 жыл бұрын
Developers: we want webassembly and faster page loads to eliminate the need of desktop development Also developers: lets add even a slower scripting language in another py2js interpretion layer and also don't allow the code to be minified for production since python relies on indentation. Also developers: we hate javascript but it pays the bills Personally: typescript, sass, nextjs and mongodb atlas or cockroachdb cloud for the win
@Hopp3rTx2 жыл бұрын
scrolled down for this, 10/10
@7sete7772 жыл бұрын
Tho I'm a JS developer, that is sooo cool. It'l not replace JS, but i think it will bring more ingenious Python programs (not focused on speed) to run on the web. I didn't think of the minifying/identation issue, tho replacing identation with \t might do the trick
@hasnaindev2 жыл бұрын
"... and also don't allow the code to be minified for production since python relies on indentation." Damn!
@IvanRandomDude2 жыл бұрын
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
@randyt7002 жыл бұрын
i find your lack of faith disturbing.
@tommycard45692 жыл бұрын
@@randyt700 he's right tho... If someone is simply interested in "writing python", you can just use code mods to transform the python syntax to js. python has already been accessible to wasm for a while now, you don't see it often cuz it simply doesn't make sense for most things (especially at scale)...
@ehabaleid10932 жыл бұрын
Wow, very excited on what this becomes in a few years. Lot's of potential for big data visualizations.
@ivanbgp2 жыл бұрын
"It will take a few moments" ... I see we get the full python experience in the browser 😅
@lbb2rfarangkiinok2 жыл бұрын
Muhahahahaha
@miletadulovic5772 жыл бұрын
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.
@AtomicCodeX2 жыл бұрын
You said what I didn't feel like commenting
@dmsalomon2 жыл бұрын
This is just a proof of concept. If the browsers decide to support if properly the performance will be better. Will it replace JS? Obviously not, but it could be very useful in certain applications, i.e. data science on the web. And WASM seems to be the future, but that is also still a long way away
2 жыл бұрын
@@dmsalomon you can do data science on the web with JS.
2 жыл бұрын
@Marcus - python is faster than JS? Please tell me you're joking.
@epochshot5892 жыл бұрын
@ python is leagues faster in compilation speed then js, main because hoe the language is structured.
@krtirtho2 жыл бұрын
Congratulations, now I can execute my DOM code more slowly🙂
@nethsarasandeepaelvitigala1352 жыл бұрын
@Marcus - you know Python is far slower than JS right? tell me you're joking
@khgytd2 жыл бұрын
@@nethsarasandeepaelvitigala135 That actually depends, you can code modules using C python API that will increase speed close to compiled languages speed. Althought, i don't know if this is impacted, since this have a JS framework on the middle.
@realalphabet Жыл бұрын
"The end of Javascript". For educational purposes, if you remove the V8 runtime from your browser your script will no longer work. The video is intuitive despite the title, don't do this. It has already been demonstrated many times by many contributors of Python, Chromium and Mozilla that Python is not suitable for the Web. Anyway, people are used to using JS which is undoubtedly the language of the Web and will never be replaced simply because it would break more than 3/4 of the current Web. Also, the V8 JIT compiler performs better than the Python one, I base this on my own tests as a JIT compiler developer. And it is optimized for the web to reduce the memory footprint, unlike Python which was not designed with this in mind. If you want to use Python on the Web only because you miss Tensorflow and Keras, either follow the documentation and install them locally, or wait a few months until the GPU Web API and other machine learning APIs are available on Chrome. This will be much more efficient than using a port of the Python runtime in WebAssembly. At least 10 times more.
@G-33k2 жыл бұрын
This is very exciting, Thank you for informing us about it, now as pythonistas we must contribute and build a community about pyscript :D
@kibe21342 жыл бұрын
As someone who works with both JavaScript and Python, I can assure you that even though this is a nice proof of concept, no front-end developer in their right mind would ever touch something like this. The JavaScript ecosystem is just so much more mature than Python's that it's basically impossible to catch up at this point. Think about the different between NPM and PIP. One is a proper packages manager, the other doesn't even handle requirement files decently. Other example would be, say, the import systems in both languages; JavaScript's is concise, efficient and easy to understand, meanwhile, Python's is a mess. I understand that a lot of people will always try to use anything for the web but JavaScript in the same way that americans will measure with anything but the metric system, but at some point they will have to understand that it is, and will continue to be for the foreseeable future, the best language to build interfaces. Period. It's the language's purpose, and it's why people will use it everywhere. Web? JavaScript. Mobile? JavaScript with React Native or Cordova or Ionic. Desktop? JavaScript with Electron or Tauri or (who remembers?) NW.JS. I mean, if we're really being honest, the reason augmented reality is not mainstream os probably because there's no JavaScript frameworks for it. Don't get me wrong, I love Python, and as of now, it's my main source of income, but it's simply not meant to compete with JavaScript in the the things JavaScript is good at. TLDR; if I ever see a job offer from a company that has this in it's stack, I'll know to stay away from it, for they're clearly out of their minds.
@FilipCordas2 жыл бұрын
Even if this Python in the browser is years old you can make a case for this not as a UI thing but as running backed stuff in your app. Things seam to be going the web components way that means a lot of UI frameworks will be usable for Python in the browser. Don't get me wrong Python is the worst language out there to use for anything so the issue not being a good way to do things has never been a problem for Python dev's. This should just work in Electron and Cordova and tauri... since it's just WebAssembly. And mixing JS and Python is already done in notebooks since most of the charts are just wrappers for JS plotting libraries.
@FriedMonkey3622 жыл бұрын
The reason you probably get no bi1ches is because there is no JavaScript for it
@danielstill56252 жыл бұрын
What about just viewing this as a more flexible version of Jupyter notebooks? That was my impression when trying to today. The customisability HTML and CSS provides will enable a great UI for the output of python code.
@yukcoding41552 жыл бұрын
As data analyst starter with web development background this is the wonderful world just run your whole projects in html without need to js
@happywednesday67412 жыл бұрын
Cool rant. It will take a year or two to catch up if its adopted at python like scale. Not arguing if it's better, just arguing you underestimating just how popular python is.
@Netrole2 жыл бұрын
It is a nice idea and might be awesome for the hard core python fans. But my concern is that this sacrifices the user experience in exchange for dev experience, which is certainly the wrong way around. After all, each user has to download the python interpreter, and the code will run a lot slower than javascript, since python is not optimized by the browser. Additionally a lot of pythons performance comes from super fast packages like numpy that are written in C, however these are slowed down significantly through webassembly. Because under the hood webassembly uses the same VM code as javascript, so WebAssembly performance == JavaScript performance.
@benjaminscherrey11242 жыл бұрын
I think the point is that you can be a "full stack" web dev and need only code in Python. That's pretty amazing. No one is suggesting that all python apps should now run in a browser.
@I_Lemaire2 жыл бұрын
@@benjaminscherrey1124 No. You still need JS
@mohamedtrfnx66322 жыл бұрын
no not every user has to download the python interpreter what are you on about and wtf do you mean by WebAssembly performance == JavaScript performance LOL
@Netrole2 жыл бұрын
@Marcus - Yes and no, WASM has some performance benefits, but peak performance is the same as peak performance for JS. WASM is more consistent and it is easier to maintain peak performance, while javascript can have performance bailouts where it drops back to being interpreted which is a significant slowdown. WASM also has the performance benefit of compiler optimizations. Overall what i wanted to say though is, that WASM is significantly slower than the C implementations used in regular Python. And that a well written javascript implementation is just as fast. Actually a well written javascript implementation might be faster because it has access to the javascript "standard library" like Array.sort() which execute highly optimized assembler code in most browsers
@theaninova2 жыл бұрын
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.
@tomaslachmann1712 жыл бұрын
So basically you write python, that's translated into javascript. Sure thing, that this is future, because js is already so fast to easily compile code and we need one extra step.
@ieatthighs2 жыл бұрын
this is just stupid, it's basically a client side transpiller which is a horrible idea
@coffe71902 жыл бұрын
@@ieatthighs you know what is horrible? js, what a shit programming language
@antoniopena11832 жыл бұрын
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 ;)
@Diamond_Hanz2 жыл бұрын
oh.. i've been waiting for this!
@sovereignlivingsoul9 ай бұрын
i like the concept and will be attempting to implement it on my website in the near future, excellent introduction
@sadkebab2 жыл бұрын
The fact that we can run in the browser python through WASM is cool for trivial stuff but I don't know... There are already so many issues and concerns about bundle sizes and performance in all JavaScript frameworks that I can't imagine how messy it can get with PyScript if people will start to use it for general-purpose Web Development.
@hououinkyouma53722 жыл бұрын
They won't. Not yet anyway. This will give AI/ML guys something new to tinker with, but I definitely don't see it being professionally used in web dev anytime soon. Especially given how you have to download an entire CPython interpretor for WASM on every single page refresh :/
@theregionale2 жыл бұрын
@Hrishikesh Malviy not on web
@theregionale2 жыл бұрын
@Hrishikesh Malviy both JavaScript and python are interpreted languages
@alexandrecostadosim68472 жыл бұрын
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"
@swaggitypigfig84132 жыл бұрын
Not the end of JavaScript for sure, but a cool project nonetheless.
@swaggitypigfig84132 жыл бұрын
@@scott_itall8638 Same here, but I don’t believe that it would ever be as performant as JS. Decades of work has gone into making JavaScript run as fast as possible on modern web browsers. That amount of work is not something that can be outperformed even in a whole decade, in my estimation.
@JS-ys2uk2 жыл бұрын
@@swaggitypigfig8413 but I runs on webassembly, right? Have you ever seen the speed of a Blazor application?
@nonamepetko2 жыл бұрын
@@JS-ys2uk from what I have seen it gets parsed from python to JavaScript from JavaScript to wasm this takes a whole 3 minutes to generate the code for print("Hello world") it may be fast when compiled but the compilation will take an eternity with anything with more than 1000 lines of code and you need to wait till all the shit compiles so it doesn't have something JIT at least yet....
@redymotion99912 жыл бұрын
@@scott_itall8638 javascript > python idc
@mohamedtrfnx66322 жыл бұрын
@@nonamepetko no it gets compiled directly to wasm
@movieidiots55422 жыл бұрын
This is game changing. If i had this 3 years ago, my clients project would have been finished in 1 month instead of 6.
@hannad2 жыл бұрын
All the computation it does in runtime to transpile and run python is ridiculous. No production app will ever use it
@movieidiots55422 жыл бұрын
@@hannad Its a good point. I tested the pyscript library implementation. Its not that fast. it was good enough to send a message to the queue and process them. Nothing time sensitive was there.. We had to switch to webhook implementation to support python library to handle messages to devices. So adding extra server to handle the messeging queue was the effort which added our development time.
@AbinashAdhikari2 жыл бұрын
yeah it will be 10 times slower,
@hannad2 жыл бұрын
It’s a good project. But instead of runtime if there was a build step in between. Or server side rendering which runs python and outputs html and js that would still be a good option
@DanhWasHere2 жыл бұрын
Interesting find but the clickbait title is leading to a lot of dumb comments about Python replacing JS -it’s clear that this is a Python to JS compiler so JS will always be used as the end result. Just importing a bunch of Python files in the index.html file will get really hard to maintain and code-split which led to JS web frameworks and libraries being adopted and now widely used. So definitively JS is not being replaced by PScript and JS web development positions will not magically be replaced with Python. I know you understand it, it’s just for the annoying people always thinking there is some war of dominance for which language to rule them all. Best thing as usual to learn both JS and Python, and decide which one is best suited for your case. PScript will be super useful for Python data scientists wanting to create a website that is not just a hosted Jupiter notebook, and lots of other applications that will be exciting to see!
@underling-macha-greentea2 жыл бұрын
I believe it compiles to wasm/binary and not js, but correct me if I’m wrong. But you are right that WASM will not kill js, more and more web assembly projects come with functionality to fluidly use both together at the same time. This gives you the best of both worlds as you can leverage native js engines in the browser and wasm languages for complicated data science or physics engines (rust).
@astronemir2 жыл бұрын
It doesn’t compile to js! It complies to HTML! Then Webpack takes care of the rest.
@PeterWang992 жыл бұрын
This is NOT a Python-to-JS compiler. This is *actual CPython*, but compiled to WebAssembly.
@irustv76742 жыл бұрын
in not long future python kill js and react
@mansurhamidoff18532 жыл бұрын
@@irustv7674 It sounds very funny 🤣🤣🤣🤣🤣 Only one who have no idea what is web ui development and javascript can talk such nonsense... Even php which has so many alternatives is not dead yet... JS has no alternative in web front end development. This is great tool... It's really great tool without any joke, but it will be useful for lazy python developers who don't want to strain their asses to learn js
@benjaminscherrey11242 жыл бұрын
That's really great. Anaconda team keeps innovating!
@xpkareem2 жыл бұрын
I guess I'd like to see more focus on just making python compile to webassembly really well.
@amrendrakumar90182 жыл бұрын
All code showing in page source...can you tell me something about it..
@DocBobD2 жыл бұрын
I need to play with this. This is truly revolutionary if it does everything you say it does. Thanks for sharing
@wooden3ofclubs2 жыл бұрын
What color theme are you using?
@yuli20422 жыл бұрын
I'm a python developer. I really hope the python community can instead focus on those actual important issues such as adding a null-chaining operator or a a functioning type system.
@codingcrashkurse64292 жыл бұрын
Well, Anaconda is the behind this project and they are heavily in Data Science world and this projects suits perfectly. a type System is something also would also really like, but this actually has to be driven by "money" like TS for JavaScript. I am even not sure if that´s even a thing discussed.
@paulthomann55442 жыл бұрын
Hehe, nothing stopping you (as a member of the python community) from working on those.
@yuli20422 жыл бұрын
@@paulthomann5544 There is. PEP 505 has not been accepted.
@kambi33982 жыл бұрын
I use this code properly but in my browser the output is print("hello word") the problem is print function in also printed not only printed value
@dragonsage69092 жыл бұрын
Very cool, thanks for bringing this to my attention.. Digging in. Ty
@huseynmusayev2 жыл бұрын
i do same thing but i got loading runtime then i see errors. What can i do?
@THETRUTHZ Жыл бұрын
My question is... what can py do for me that java can't?
@temal322 жыл бұрын
I've been waiting so long for this!
@robbietorkelsonn85092 жыл бұрын
I think most of the people aren't understanding the true impact something like this would make possible: "In other words, PyScript allows you to use Python, with or without JavaScript, to build interactive websites that don’t necessarily have to communicate with a server. " In other words, you could have a photo sharing website, with nothing on the web server. Which means you don't need to login to flickr or instagram to do photo sharing, because there is no backend and the sharing could be done peer to peer (like torrents). Which also means you just need a directory on a server that just serves files, without any further intelligence. This has been an idea for a long time now.
@alexf08152 жыл бұрын
Super explained. Thank you. Just tried it out and it works.
@MdAlAmin-xj1km8 ай бұрын
I use wordpress custom html block to add calculator any other thing that I built using html, css and js code. Now can we use pyton code also in wordpress?
@b20lopez2 жыл бұрын
I am excited about this! I am trying to learn javascript but is having difficulties as there are so many variations on how to use Javascript
@jamblob32082 жыл бұрын
I feel a bit like this. I see Python code looks more obvious than javascript but couldn't see how it opened except through what appeared to be advance level intuition of how to already do a real large amount of successful coding.
@kwlt7061 Жыл бұрын
I'm interested in your demonstration codes. But I don't know how to get the exact code you typed in the video clip here. Please let me know if you have extra moments. I like your works.
@ankanbasu73812 жыл бұрын
cool informative video! what font and theme are u using in vs code ?
@ajinkyax2 жыл бұрын
A language you can't even write in Notepad where a wrong space can wreak havoc on your code, and for someone who have not heard of Typescipt or Dart, it is yes definitely Python is great
@anatolyanatoly80372 жыл бұрын
6:21 wow, it's jupiter, does the keras is available?))
@lone-warrior-132 жыл бұрын
it compiles to js in order to run, right?
@sparshgoyal2312 жыл бұрын
I have recently started working on a project that require ML integration into a website and was struggling with how to embed my ML model in the web page without going through the hassle of Django or Flask. This is a life - saver! The work Anaconda is doing for python and its developers is just amazing and highly commendable! Thank you Anaconda!
@RichardvanBemmelen2 жыл бұрын
Can we create Python GUI's in the web too? Like with PySimpleGUI...
@muhammadfuadbinhamzah1807 Жыл бұрын
do you know how to include other library that special means need to install first
@tahahuraibb58332 жыл бұрын
Do you think we will see any front end libraries like react for python?
@irustv76742 жыл бұрын
really it can be very cool
@deaddoctor2 жыл бұрын
My personal guess is no because of two reasons. 1. These libraries already exist for JS and were fine-tuned for years now. 2. They would need two be fast and small which isn't really possible with py-script at the moment. But who knows. ¯\_(ツ)_/¯
@ericchhun8116 Жыл бұрын
Can someone help me with this? Um... when I use pyscript with html and then run the program, it doesn't show the output, It just shows the python code. Like it will just display print ("hello world") instead of "hello world". If someone can help me fix this that would be great. I'm on windows.
@ighsight2 жыл бұрын
Bidirectional communication between Py and JS in the browser is intriguing. But, wondering how the vast speed superiority of JS over Py affects usability in the browser. Will say that the ability to use core Py libraries in the front end would also be really cool. All that being said, unless it is a special, required use case for a Py library in the browser a Py developer is better off learning and using JS. Factoring in being able to use Node compiled down to vanilla JS there is just no way you can replicate that speed and functionality with Py. Definitely a project to watch though.
@ighsight2 жыл бұрын
@Marcus - Are you confused? I said JS was much faster than Python. I know this for a fact from running the same serverless tasks in JS and Python. But was really thinking of the numerous speed tests on YT that prove that point. Maybe you misread?
@lua-nya Жыл бұрын
Python is slower in the browser to interact with the canvas because that's just how things are for Web assembly.
@archyt882 жыл бұрын
This is very cool, but what about security? If anyone can create shell inside your html like in jupyter, they probably also can get access to database by this methods. Hm..
@patloeber2 жыл бұрын
very good question! It's in a very early stage so this is for sure one important thing the developers have to work out!
@awdawd89792 жыл бұрын
Because it's built in JS/WebAssembly, even if you could get a shell, it's all client-side, so I wouldn't worry about getting access to databases and the like.
@puffin_0002 жыл бұрын
@@awdawd8979 This is even worse :D. Hackers can implement their malicious script in python code and run it on the client (something like xss, but the target is client instead of the server), this is an really BIG issue that needs to be working on more, also pyscript is not big enough to be used in a real project. Its really really new and in early stage but its still exiting.
@michaelbitzer72952 жыл бұрын
@@puffin_000 why is it a problem if someone writes something in python instead of js? Pyscript CANT do more than js because it is a mix of js/wasm running in the browsers sandbox.
@puffin_0002 жыл бұрын
@@michaelbitzer7295 Because problem is compiler, the python code is translate into javascript code and if somebody don't know how to write js they can't detect vulnerability.
@coinbotproduction24232 жыл бұрын
7:52 I love how your exebrowns go up when the sound plays
@patloeber2 жыл бұрын
haha
@tasmiatasrin99852 жыл бұрын
Thanks for sharing the basic ideas of Pyscript. Can you please also share how did you load Mario game environment using Pyscript?
@bufkinsmith76502 жыл бұрын
Why wouldn’t I just write my code in Python and then compile to WASM if I wanted this? Isn’t there going to be a significant difference in performance if it’s just straight Python?
@rattlehead9992 жыл бұрын
You can also run C# in the browser thanks to Blazor and I'm pretty sure Java had an alternative as well.
@simonmafanye.35372 жыл бұрын
This is the best thing I have seen so far. Thanks a lot for sharing.
@lhit6795 Жыл бұрын
my website asks to Download pyodide and it gets stuck there
@Tech-Overflow2 жыл бұрын
after downloading py script, I can't find pyscript.js
@torukobyte2 жыл бұрын
what's your color theme on vscode?
@mobilelegendbachaoibaba78752 жыл бұрын
Can you show video of an OpenCV example of it?
@cedricleblanc Жыл бұрын
I have a multi files script to run and I need to import pygame. Can I do it with this method ? In fact, I'm trying to make a chess game on my wordpress website, and I don't want to pay €40/month to use their python plugins
@133sjassson82 жыл бұрын
Does it uses Client-side or Server side CPU power? Is it possible to save server computation resource with this ?
@JS-ys2uk2 жыл бұрын
I don't know much about this stuff. Does this mean I can manipulate the DOM with python?
@AtomicCodeX2 жыл бұрын
Nope lol
@footballextra16612 жыл бұрын
I have an ai chatbot project with flask how or can i use it by pyscript thanks
@Redyf2 жыл бұрын
What's the name of the color theme on vs code?
@elektrikci28752 жыл бұрын
does this library not let to steal some datas ? I think it is little bit vulnerable.
@feechuong2 жыл бұрын
What is the theme that you used for for vscode?
@cloudpuncher46152 жыл бұрын
so it's Python compiled to Javascript server side and imported?
@barodrinksbeer74842 жыл бұрын
I took a look at it, its super interesting. However, right now it seems to much of a mixture of things, I still was using JS when I tried integrating a simple target practice game. I can see useful reasons to have Python integrated into HTML. However, I don't see this doing better then JavaScript.
@hououinkyouma53722 жыл бұрын
Naturally. This is a prime example of "doing it because you can". Besides, downloading a huge CPython interpretor on every page refresh is just not following any of the web dev practices. I suppose this will give AI/ML guys some new things to tinker with, but it'll definitely not be used for web dev. Not yet anyway.
@Idle8262 жыл бұрын
I have a question dear friends! Is there a way to create a downloadable file with pyscript? I would like to be able to do this because it would simplify what I am doing. Thanks!
@rondamon44082 жыл бұрын
Numpy is written in C. Do we lose performance when using on the browser?
@deaddoctor2 жыл бұрын
i think it would be slower because it would use webassembly
@egelbets2 жыл бұрын
Is it also possible to get data in a tag when rendering the HTML template? For example with Flask I can pass on variables into the render_template() function that I then can access in the template using Jinja. Can I also do this with pyscript?
@nickfla12 жыл бұрын
code inside a pyscript is interpreted once the page has been loaded, so yes, as long as it's server side rendered
@AxiomTutor2 жыл бұрын
This looks incredible!
@red_onex--x8082 жыл бұрын
Thx great info, just learning python and solidity / blockchain
@davies81832 жыл бұрын
The last time I did a python project, I had to implement most of my logic in C to make the performance bearable to users. I think python should just stick to data science. Wasm is here, I get it but with languages like GO, Rust, and C# on the web, it doesn't stand a chance for any serious web apps.
@davies81832 жыл бұрын
@Marcus - Don't be fooled by the hype. Most companies are using C++, C#, Go and Rust to run most of their core apps. We don't pick tools because they're easy. We pick the tools that get the job done and offer the best experience to the user.
@apuji75552 жыл бұрын
@Marcus - but its slower
@KesuTV2 жыл бұрын
Is this a SIGBOVIK 2022 entry?
@madhankumar20512 жыл бұрын
I can see this getting big , but def not replacing Java script
@jamblob32082 жыл бұрын
Very odd that those not able to learn how to use python stand alone can just use the functions and tools now yet apparently could not before. How was it appearing online before then? How did the code get results in browsers before? Any answers that might help me understand are great as I can see some simple code in Python but not otherwise how it operated except inside it's own environment.
@user-dm5qi4nb6l2 жыл бұрын
can this be used with other frameworks?? like react, vue? 🤔to have the power of javascript + python omg
@ok-hc4he2 жыл бұрын
This is a NoNo it only just prints python as text? Can you manipulate Dom?
@0xSolom2 жыл бұрын
i can use it with Onclick?
@commerceclassesbygoyalinst83732 жыл бұрын
Hello Sir , How To Use Py-Script with HTML Form And Lists ?
@programmingwithnick2 жыл бұрын
Pretty cool! The possibilities are endless. It will allow many more people to develop web apps more easily then ever before. Python is going to be used to build things from the Desktop to the embedded Raspberry Pi Pico to the web. Amazing ! Thanks for sharing.
@davies81832 жыл бұрын
Only problem is my 90 year old granny runs faster than it does
@johnrovasi45982 жыл бұрын
how can we import libraries like requests for example
@brancode4042 жыл бұрын
I'm the first viewer and pressed the liked button :) BTW this is great news :)
@phantom_stnd2 жыл бұрын
Why use if the tag has a perfectly usable 'language' attribute?
@nickfla12 жыл бұрын
Interesting but still skeptical. I wonder what performances could be achieved on real life application. Hope the web doen't take the wrong route once again
@nickfla12 жыл бұрын
@@codingcrashkurse6429 Had already looked at the code, pyodide is the actual engine behind pyscript. It's a wasm porting of CPython, performance might be quite ok but I can't see any benefits other then using _some_ of the Python ecosystem directly on the frontend. My biggest concern is that people start building applications with these libraries and create an even more bloated web
@nickfla12 жыл бұрын
Also we should really give the credits to pyodide's team! pyscript it's really just a component-based wrapper, useful but not the "ground breaking" technology here
@d.sherman85632 жыл бұрын
@@codingcrashkurse6429 This is not true, the python is compiled to web assembly and executed as that.
@sultanmaghfuri2 жыл бұрын
where can i find mario game in html ?
@jorge18692 жыл бұрын
Excellent video. I have a question, how will new packages be installed in pyscrit with pip?
@petersilva34222 жыл бұрын
I didn't try it yet, but what about the speed?
@patloeber2 жыл бұрын
still a bit slow but it's in a very early stage
@einstein_god2 жыл бұрын
Web assembly bro.
@jorge18692 жыл бұрын
It use web asembly.
@52hands2 жыл бұрын
Python is one of the slowest languages so I'm not going to expect much in terms of performance.
@Summersault6662 жыл бұрын
@@52hands that's not true! Python is faster than JavaScript crunching numbers...
@Heheh017372 жыл бұрын
bro please please help me with this can you make a video how to use pytube youtube video downloader with pyscript because when i do it in any of the ways it shows me a long error will be waiting for your reply
@김시진-g5j2 жыл бұрын
How can I check type ? print(type(a)) ?
@7k_0oe682 жыл бұрын
Can you import other modules with pyscript?
@Daviddd102 жыл бұрын
what theme are you using on vscode?
@SkyFly198532 жыл бұрын
But does it have security vulnerabilities? Just like Javascript?