Deploying a PyScript App w/GitHub Pages | End-to-end PyScript Tutorial #2

  Рет қаралды 7,203

Samuel Chan

Samuel Chan

Күн бұрын

As a continuation to the last video where we dive into PyScript [PyScript Demo / Walkthrough]( • PyScript Demo / Tutori... ), we're now going to see how to combine that with GitHub Pages and GitHub Action to deploy a PyScript App, courtesy of Eduardo Bonet's NBLite project
00:00 Building apps with Pyscript (intro)
02:46 Project Setup
05:01 Hacking away at NBLite
07:49 Deploy pyscript app onto GitHub pages
11:05 How is pyscript used in NBLite
20:58 Deploying pyscript app w/ Github Pages
Live Demo link:
onlyphantom.github.io/nblite-...
github.com/onlyphantom/nblite...
Projects (fork from this):
- NBLite on GitLab: gitlab.com/eduardobonet/nblite
- NBLite on GitHub: github.com/eduardobonet/nblite
Watch Part 3 to learn how to create an interactive visualization dashboard with PyScript (and deploy it): • Build a PyScript inter...
We're not going to cover PyScript semantics in too much detail because the focus is on the end-to-end process of spinning up a PyScript app, tweaking it, and then deploying it to GitHub pages for free. Watch Part 1 for that instead: • PyScript Demo / Tutori...

Пікірлер: 19
@SamuelChan
@SamuelChan 2 жыл бұрын
Here's part 1: kzbin.info/www/bejne/h6CblYuvgL2sg6c: Focus on importing PyScript, its syntax and key usage patterns. A get started guide for anyone new to pyscript. Part 3 kzbin.info/www/bejne/q5i2c5SFiZWljKs will see us build a fully interactive analytics dashboard with Altair and PyScript. Part 4 kzbin.info/www/bejne/fmfVf62Hmtesh9E we'll build a CRUD (create read update delete) system in the form of a guest book using PyScript. This is something you'd do with Vue or React in the past, but now it's only a few lines of Python code.
@hello-lb3vf
@hello-lb3vf 15 күн бұрын
I've been searching how to do this... I couldn't find a solution until I stumbled across this video. Thank you :)
@sanjayplays5010
@sanjayplays5010 2 жыл бұрын
Awesome work man, good to see more tutorials on PyScript! You've got yourself a new sub ;)
@SamuelChan
@SamuelChan 2 жыл бұрын
Thank you my bro!
@shamaldesilva9533
@shamaldesilva9533 2 жыл бұрын
Finally a channel for pyscript tutorials 🤩 , subscribed 🤝🤝🤝
@SamuelChan
@SamuelChan 2 жыл бұрын
Go through the whole series! You’ll love it! Part 1 (intro to PyScript): kzbin.info/www/bejne/h6CblYuvgL2sg6c Part 2 (PyScript deployment): kzbin.info/www/bejne/pXnCo4eKec-ArK8 Part 3 (PyScript + Altair data dashboard): kzbin.info/www/bejne/q5i2c5SFiZWljKs Part 4 (PyScript Guest Book app, CRUD): kzbin.info/www/bejne/fmfVf62Hmtesh9E
@mr.gk5
@mr.gk5 2 жыл бұрын
Looking forward to see more of your tutorials on pycripts! Great video!
@SamuelChan
@SamuelChan 2 жыл бұрын
Thank you 🫶 comments like these keep me going!
@mr.gk5
@mr.gk5 2 жыл бұрын
@@SamuelChan It’d be great if you could make tutorials on how to make python script interactive like adding textbox, select box etc in pyscript!
@SamuelChan
@SamuelChan 2 жыл бұрын
Part 4 is what you want bro! :) Part 1 (intro to PyScript): kzbin.info/www/bejne/h6CblYuvgL2sg6c Part 2 (PyScript deployment): kzbin.info/www/bejne/pXnCo4eKec-ArK8 Part 3 (PyScript + Altair data dashboard): kzbin.info/www/bejne/q5i2c5SFiZWljKs Part 4 (PyScript Guest Book app, CRUD): kzbin.info/www/bejne/fmfVf62Hmtesh9E
@parsaosanlou3390
@parsaosanlou3390 10 ай бұрын
Excellent explanation.
@SamuelChan
@SamuelChan 10 ай бұрын
Thank you!
@PtolemySoter
@PtolemySoter 2 жыл бұрын
what about POST requests? only GET urls can be analysed this way?
@SamuelChan
@SamuelChan 2 жыл бұрын
If we’re gonna use a bit of javascript then yeah it’d be as simple as calling the Fetch API, and the corresponding GET, POST, PUT, PATCH etc will all work - we just wire it up to pyscript. If we’re doing form submission in pyscript without JS (only pyscript) then I’d suggest checking out part 4 of the series where we build a contact book / guest list application. That has no js at all. Form value to pyscript directly. kzbin.info/www/bejne/fmfVf62Hmtesh9E
@404errorpagenotfound.6
@404errorpagenotfound.6 2 жыл бұрын
I'm not sure why you would do this and not just use a Jupyter notebook??
@SamuelChan
@SamuelChan 2 жыл бұрын
Because you can now have these code notebooks to demonstrate your project, or accompany a blog post you write, or just anything since they’re all just html. No python server needed. And you can also run it offline / locally. Jupyter notebook runs on a python server and if you ever tried to integrate that into your programming blog you’re running a separate instance (and paying for) on AWS with python on it. :)
@404errorpagenotfound.6
@404errorpagenotfound.6 2 жыл бұрын
@@SamuelChan thanks Samuel, good explanation. I would like to see an app that will take input from the public side of a web page and returns something. Like a tkinter app except on a webpage or even anything that takes input from client does a calculation/function in python them renders the output on the client side webpage. That would be useful and would get more people interested to invest time learning. Also you are a good teacher, thanks for your content.
@SamuelChan
@SamuelChan 2 жыл бұрын
Thank you for your kind words 😀 I think Part 4 of this series covers that! We build a CRUD guestbook app using only pyscript! Build a PyScript guestbook webapp | PyScript Tutorial #4 kzbin.info/www/bejne/fmfVf62Hmtesh9E
@404errorpagenotfound.6
@404errorpagenotfound.6 2 жыл бұрын
@@SamuelChan subbed will check out the app.
PyScript Demo / Tutorial | End-to-end PyScript Tutorial #1
28:01
Samuel Chan
Рет қаралды 37 М.
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 23 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 26 МЛН
Climbing to 18M Subscribers 🎉
00:32
Matt Larose
Рет қаралды 36 МЛН
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 20 МЛН
PyScript - Run Python in the Browser! Will It Crush Javascript?!
10:07
Chris Laffra - PyScript - Python in the browser
33:01
PyData
Рет қаралды 1,6 М.
Best Platforms to Host Python Apps (for free!!)
9:50
Patrick Loeber
Рет қаралды 108 М.
Host your Database for Free on Github Pages
10:13
Bufferhead
Рет қаралды 81 М.
You should use LangChain's Caching!
25:37
Samuel Chan
Рет қаралды 7 М.
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 1,9 МЛН
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,2 МЛН
Lid hologram 3d
0:32
LEDG
Рет қаралды 8 МЛН
SSD с кулером и скоростью 1 ГБ/с
0:47
Rozetked
Рет қаралды 260 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1 МЛН