Scotty Kwok: 玩轉 Python 與 Javascript

  Рет қаралды 72

PyCon Hong Kong

PyCon Hong Kong

Күн бұрын

Python 同 Javascript 從來都存在喺兩個平行時空,這兩大程式語言各自有大量開發者社群:做 data science 嘅人學寫 Python,做 web 嘅人學寫 Javascript,幾乎係定律。如果有一日兩者可以互通互用,咁應該幾好玩!
Pyodide/PyScript 嘅出現,就正好就提供咗一個初型,讓兩者可以有某程度上嘅 interoperability。今次我哋會展示 Python 點樣可以同瀏覽器互動,如何操作 DOM,如何利用坊間各種 Javascript libraries。我哋會用幾個例子去試吓玩轉 Python 同 Javascript 之間的無限可能性:
如何使用 Python 與 Web frontend/DOM tree 互動
如何使用 Python 在瀏覽器上產生 SVG animated graphics
使用 Python 和 ThreeJS 在瀏覽器上玩 3D
將你的 Python 程序變成 Chrome Extension
使用 Electron 將你的 Python 程序打包成跨平台應用程式…等
Python and Javascript have been the two most popular programming language, but they are like existence in their own universe: data scientist/ML developers learn to write Python, whereas web developers learn to write Javascript. But what if the two languages become interoperable? Wouldn’t it be fun?
Pyodide/PyScript is probably by far the closest attempt to exploit this opportunity.
In this talk, by using Pyodide/Pyscript, we will illustrate how Python can interact with the browser, how Python can manipulate the DOM, and how Python can leverage the power of existing Javascript libraries. With some funny examples, we will dive into the many possibilities between Python and Javascript:
How to interact with Web frontend/DOM tree using Python
-How to create interactive SVG graphics on browsers using Python
-Use Python and ThreeJS to play with 3D objects on browsers.
-Run your Python program as Chrome Extension.
-Package your Python project into cross-platform app using Electron…etc
Slides:
bit.ly/3SxbkWg
Code:
github.com/sco...
#pyconhk
#pyconhk2023
#pyscript
#Pyodide
#webdevelopment
#sebit

Пікірлер
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 4,2 МЛН
Cool Parenting Gadget Against Mosquitos! 🦟👶
00:21
TheSoul Music Family
Рет қаралды 6 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 97 МЛН
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 639 М.
Cheuk Ting Ho: Security 101 for package maintainers
14:47
PyCon Hong Kong
Рет қаралды 22
How To Master Frontend Development | Get a Job in 2024
10:45
Levi Okoye
Рет қаралды 17 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 41 МЛН
10月12日,理解一下财政部的新闻发布会吧
10:01
大刘说说
Рет қаралды 86 М.