Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
PyScriptの話
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
2bo
July 11, 2023
Technology
350
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PyScriptの話
Python東海 第43回勉強会 発表資料
2bo
July 11, 2023
More Decks by 2bo
See All by 2bo
おっきなガジェットの回線事情
2bo
1
250
おたく監視してみた
2bo
0
120
巨大ガジェット買ってみた
2bo
0
720
ZabbixAPIをつんつんした
2bo
0
510
名古屋とお菓子🍪
2bo
0
520
名古屋 勉強会 会場 選定 2019
2bo
2
240
お城Pythonの作り方/OshiroPython
2bo
1
730
Python勉強法
2bo
0
900
Python 環境構築方法 2016
2bo
2
1.9k
Other Decks in Technology
See All in Technology
全社共通データ基盤をつくる。ソニーのDatabricks活用とデータガバナンス設計の裏側
sony
0
100
セルフサービスのオブザーバビリティ基盤をOpenTelemetryで作る / Building a Self-Service Observability Platform with OpenTelemetry
ymotongpoo
3
380
spanner-autoscalerに学ぶ CRD設計パターン 〜自動化と緊急時対応を両立する Kubernetesコントローラーの作り方〜
tkuchiki
0
180
ボードゲームの遊び相手をFoundation Modelsで作る / iOSDC Japan 2026
genda
0
200
なぜAI任せのゲームは面白くならないのか?
hirohasuyoutube
0
170
データ_AIの事業の勝敗をわけるもの
nek0128
1
480
AI Agent入門〜今更聞けないAgentの話〜
hiromimaganuma
0
120
GoのInterface内部構造から学ぶ!最高パフォーマンスを出すコード設計
yappli_developers
1
300
Hermes Agentで、AIが調べて記事を書くブログを作った話
blueb
0
110
TiDBファミリーにDWHが新登場!! TiDB最新情報 / TiDB update 202609
yoshiakiyamasaki
0
120
「どのログを見ればいい?」 から始めた サーバーレス障害解析
y_waka1
1
150
SREへの勘違いに気づいた後の話
tomodakengo
0
170
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.3k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
560
Automating Front-end Workflow
addyosmani
1369
210k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
740
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
340
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
470
How to make the Groovebox
asonas
2
2.5k
Claude Code のすすめ
schroneko
67
230k
A designer walks into a library…
pauljervisheath
211
25k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
500
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Transcript
͓લ୭Α • ͓ࣄ αʔόʔNWΠϯϑϥԂࣇʹ͋ • झຯ ञɺຊɺϘʔυήʔϜ •
ॅΜͰΔͱ͜ ذෞʢ໊ݹͷ২ຽʣ • ίϛϡχςΟɿPython౦ւɺRaspberryPiUGɺଞ • Twitterɿ@2box2bo (΄΅͍ͳ͍) • ကɿ@
[email protected]
(͍͍ͩͨͬͪ͜) • Python౦ւୈ20ճ͘Β͍?͔ΒࢀՃ
ͳΜͱ͔GPTͱ͔ྲྀߦͬͯΔͷͰ
ڈͪΐͬͱʹͳͬͨ PyScriptͷͰ͠·͔͢
PyScriptͷ͓ Python౦ւ ୈ43ճษڧձ 2023/7/8 @2box2bo
PyScript ͬͯ·͔͢?
PyScriptͬͯԿऀ? • PyCon US 2022ͷΩʔϊʔτͰAnaconda͕ൃ දͨ͠ϒϥβͰಈ͘Python • ʮRun Python in
Your HTMLʯ • https://pyscript.net/
ϒϥβͰಈ͘ʁ
ϒϥβͰಈ͘ • WebαʔόʔͰಈ࡞ͰPythonΛಈ͔͢Θ͚Ͱ ͳ͘ɺWebϒϥβͰPythonΛಈ͔͢ • Python࣮ߦڥͷΠϯετʔϧWebϒϥ βͰಈ͔͢ͷͰෆཁ • WebAssemblyΛ༻
ͳΜͷͬͪ͜Ό? ͬͯͳΔͷͰ Ұͭͮͭઆ໌͍ͯ͘͠
WebAssemblyͬͯ? • ݩʑWebϑϩϯτΤϯυͷߴԽٕज़ͱͯ͠ ੜ • ུশWasm • RustC++ͷιʔεΛWasmʹίϯύΠϧͯ͠ JavaScriptΑΓߴʹಈ͔ٕ͢ज़ •
Disney+ͱ͔AmazonPrimeVideoͰΘΕ͍ͯΔ • PythonͷιʔείʔυWasmίϯύΠϧͰ͖ͳ ͍
Python͑ͳ͍͡ΌΜ
PyodideͬͯͷͰ͑Δ
Pyodide? • Pythonͷιʔείʔυ͕WasmίϯύΠϧͰ͖ͳ ͍ͷͰɺPython࣮ߦڥ(PythonΠϯλϓϦλ)Λ WasmίϯύΠϧͨ͠ͷ • PythonιʔείʔυΛPyodideͰ࣮ߦ͢Δ • ࠷৽0.23.3ͰPython3.11.2ΛWasmίϯύΠϧ •
…ಡΈํʮͺ͍͓͍ͩͲʯ…ʁ • ৄࡉͪ͜Β https://pyodide.org/en/stable/
Pyodided͚ͩͰPython࣮ߦ • Pyodided͚ͩͰPythonΛಈ͔ͤΔʂ • ʮpyodide.runPython(`Pythonίʔυ`);ʯ • ࢼͯ͠ΈΔͱΘ͔Γ·͕͢ɺ͜Εॻ͖ͮΒ ͍…
͜͜·Ͱͷ·ͱΊ • WebAssembly(Wasm)Λ͏ͱWebϒϥβ Ͱ৭ʑͰ͖Δ • PythonΛWasmίϯύΠϧ͢Δ͜ͱͰ͖ͳ͍ • Python࣮ߦڥΛWasmίϯύΠϧͨ͠ Pyodided͕͋Δ͕ͪΐͬͱ͍ʹ͍͘
Α͏͘PyScriptͷʹΔ
ͰɺPyScriptͬͯʁ • WebϒϥβͰಈ͘Python࣮ߦڥ • PyodidedΛ͍ͨ͘͢͠ͷ͕PyScript • PyScriptΛಡΈࠐΜͰɺ<py-script>λάͰғΜ ͩதʹPythonίʔυॻ͚ಈ͘ • ϒϥβίϯιʔϧݟͳͯ݁͘Ռදࣔ͞ΕΔ
• ͪΖΜJavaScriptͱ࿈ܞͰ͖Δ
ಈ࡞Πϝʔδ͕… • ͜Μͳײ͡Ͱಈ͍͍ͯΔ • https://anaconda.cloud/pyscript-python-in-the-browser •
ͱ͍͏͜ͱͰσϞ
σϞ • σϞίʔυ https://github.com/2bobo/PyScript-demo • ެࣜαϯϓϧ https://pyscript.net/examples/ •
·ͱΊ
PyScript·ͱΊ • Webϒϥβ্ͰPythonΛಈ͔͢͜ͱ͕Ͱ͖Δ • Python࣮ߦڥͷΠϯετʔϧෆཁʂ • (ͨΓલ͚ͩͲ)ಈ࡞͍ • ·ͩ·ͩ։ൃத͚ͩͲࠓޙظ͍ͯ͠Δ •
Կʹ͑Δ͔ʁ·ͩ·ͩ͜Ε͔Β • Anaconda͕ؔΘ͍ͬͯΔͷਖ਼…
͓ΘΓ