Run Python in HTML/Browser - Pyscript is Ridiculous

preview_player
Показать описание
If you don't know already! Python can now run in the browsers and it's actually very easy to integrate with HTML and start working with a single script tag and you can start writing python code immediately on your browser! In this video we'll explore Pyscript, is it that good or just crap? and will it replace javascript soon?! Also, we'll go through the setup process to get started with Pyscript and some advanced/basic examples that Pyscript is capable of doing in the browser...

⭐ Timestamps ⭐
00:00 Intro
01:22 The Art behind Pyscript (Architecture)
04:26 Pyscript Cons (What I didn't like)
05:21 Working with Pyscript
08:37 Pyscript Demos/Examples (Mario & Graphs)
09:57 I Created an e-commerce Products website using Pyscript
12:47 Will Pyscript/Python replace Javascript in the browser?

🧭 Turn Design into React Code | From prototype to Full website in no time

🧭 Watch Tutorial on Designing the website on Figma

🧭 Watch Create a Modern React Login/Register Form with smooth Animations

🧭 Debug React Apps Like a Pro | Master Debugging from Zero to Hero with Chrome DevTools

🧭 Master React Like Pro w/ Redux, Typescript, and GraphQL | Beginner to Advanced in React

🧭 Learn Redux For Beginners | React Redux from Zero To Hero to build a real-world app

🧭 Build Login/Register API Server w/ Authentication | JWT Express AUTH using Passport.JS and Sequelize

🧭 Introduction to GraphQL with Apollo and React

Made with 💗 by Coderone
Рекомендации по теме
Комментарии
Автор

as long as there is not a full front end python web development framework like react/vue/angular, this won't replace javascript & as a python aficionado i will wait for one

ambig
Автор

OPINION TLDR:

This has the potential to be really good for people (like me) who are primarily web developers but also have a data-science background and wanna do some cool computations on the frontend. Javascript works for advanced computations, but python is an even simpler scripting language. Then again, typescript with tests, while more verbose than either of the two, is excellent for writing dependable algorithms.

STORY TIME:

One funny story for how I got into web development is that I had math ideas concerned with applications of using a generalized basis to perform spectral analysis on Maxwell's equations (a set of E&M PDEs that work predict light and other things in physics) but no one could understand me. So I started writing python scripts, but they weren't accessible, cuz most everyday people aren't willing to configure their computer to support my pyscripts' or run my code in docker containers. Eventually, I realized that it would help if I could render visualizations of my math in a website, and that's what led me into web development. I'd already dabbled in html/css/js as a noob, but this need really pushed me into the field. And, unsurprisingly, it took me a while to get good at building things on the web, doing backend stuff (cuz you don't wanna run simulations on a phone if you don't have to) and stuff like that.

This was years ago, and the joke is that I still haven't built those sims 😂😂. I'm fully invested in full stack at this point. Also, my math is kinda hard to figure out, so its taken a back seat for now. All this to say, if pyscript existed at the time, I could have simply transplanted my python code into an html document, made a few(?) changes, and deployed my site to netlify or Heroku, or some such, for everyone to access. So yeah, I think this will be well received by people in the data science and computational analysis community that do heavy math, but need their work to be accessible. They don't care about having an ultra-polished react app with seo, code-splitting, efficient renders, etc. they just want a quick thing that works. This is awesome!

CONCLUSION:

I must say, at this point, my instinct is actually that you could run a python server on the backend to generate results on the backend, then forward your results to your web app or mobile app or whatever. Granted, at that point, you might as well just do the backend with node or go, setup your computations there, and be done with it. Ofc that implies you do backend stuff, which is kinda what pyscript is trying to solve, even if it means taking a massive performance hit. Anyway, this is an interesting piece of tech! Probably not something I'll be using anytime soon, but I definitely understand the appeal for some. If it helps you make progress, by all means ☮️

ozzyfromspace
Автор

Legend has it that every 2min someone wants to kill JavaScript

kasper
Автор

it will be an evolutionary gift to the web development field... hats off to those guys behind this idea. ❤️

sqlislivepubgbgmi
Автор

How performant is this? Can find anything. Was just curious

rodrigofernandes
Автор

What is the advantages and disadvantages of pyscript?
Is Pyscript replace the Javascript?
When to use pyscript....

mdsafikulislam
Автор

now who are going to jump into web development field have to learn more and more,
even today there is so many tool and langeage/framework for web developement area which has so many cofuse for beginner.

ek-
Автор

I having a problem with pyscript and didn't work at all. I need help

sammyay-man
Автор

Hello. Where can I download the code shown in the video? In the archive from the author of the script, there are no paths to local files and the code is different there.

АлександрК-ш
Автор

did you upload the html-pyscript code?

joshwelchez
Автор

I cannot wait for what comes from this

naturally_rob
Автор

I love JavaScript, but I welcome PyScript with open arms!

Louisianish
Автор

I don't want to learn JS ... I tried and got bored the first two weeks!!

sheikhakbar
Автор

Hey Coder, why did you write in the title "Pyscript is Ridiculous"? It doesn't match with your review where you say that's amazing, many times...
Anyway, thanks for sharing this nice video.

jdaniele