Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
VSCodeとPythonでいい感じの分析環境を作る
Search
tree__and__tree
July 03, 2024
Technology
0
36
VSCodeとPythonでいい感じの分析環境を作る
tree__and__tree
July 03, 2024
Tweet
Share
More Decks by tree__and__tree
See All by tree__and__tree
ペルソナマーケティングにおけるAI活用の取り組み
yusukehayashi
0
6
LLMで議事録を作ってみた ~GPT-4o vs Gemini1.5 Pro vs Claude 3 Opus、三つ巴の戦い~
yusukehayashi
0
210
SPCS(Snowpark Container Services)×OpenAI API×Streamlitでアプリ作成
yusukehayashi
0
130
Other Decks in Technology
See All in Technology
【shownet.conf_】3Dアプローチで守るセキュリティ
shownet
PRO
0
280
テストコードの品質を客観的な数値で担保しよう〜Mutation Testのすすめ〜
ysknsid25
7
1.4k
LeSSはスクラムではない!?LeSSにおけるスクラムマスターの振る舞い方とは / Scrum Master Behavior in LeSS
toma_sm
0
130
PREEMPT_RT over the years
ennael
PRO
0
310
【shownet.conf_】多様化するネットワーク環境を柔軟に統合するルーティングテクノロジー
shownet
PRO
0
280
業務ヒアリングと知識の呪い
tamai_63
0
130
SQLによるオブザーバビリティの進化とClickHouseの実力
mikimatsumoto
0
150
How CERN serves 1EB of data via FUSE
ennael
PRO
0
16k
Create Inquiry via Bedrock / 生成 AI で問い合わせ品質は変わるのか?思いついてぱっと作ったものを供養してみる
kazzpapa3
1
200
トークナイザー入門
payanotty
2
560
つよつよリーダーが 抜けたらどうする? 〜ナビタイムのAgile⽀援組織の変遷〜
navitimejapan
PRO
22
13k
【swonet.conf_】NOCメンバーが語るSTMの実態!! ~ShowNetから若者への贈り物~
shownet
PRO
0
230
Featured
See All Featured
Happy Clients
brianwarren
97
6.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.8k
Bash Introduction
62gerente
608
210k
Practical Orchestrator
shlominoach
185
10k
Making the Leap to Tech Lead
cromwellryan
130
8.8k
Robots, Beer and Maslow
schacon
PRO
157
8.2k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Documentation Writing (for coders)
carmenintech
65
4.3k
Fireside Chat
paigeccino
32
2.9k
A Tale of Four Properties
chriscoyier
155
22k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
25
640
Transcript
VSCodeとPythonでいい感じの分析環境を作る はやし ゆうすけ
作ったもの この分析環境のいいところ Dev Containersとは 環境構築 アジェンダ はやし ゆうすけ 2
林 佑亮(新卒4年目) マーケティングリサーチの会社でデータ 分析をしています 最近はLLM関係の仕事が多め 自己紹介 はやし ゆうすけ 3
作ったもの 構築〜分析が全てVSCodeで完結するPythonの分析環境 はやし ゆうすけ 4
業務の品質向上と効率化:誰でも簡単に分析環境を再現できる VSCodeで全部完結:環境構築、分析実行、git管理が全てVSCodeで完結する この分析環境のいいところ はやし ゆうすけ 5
開発環境をコンテナで管理するVSCode の拡張機能 必要なライブラリ、ランタイムのバージ ョン、拡張機能などを定義するだけで、 開発環境を再現できる Dev Containersとは はやし ゆうすけ 6
1. 必要なファイルを.devcontainer配下に 準備 Dockerfile docker-compose.yml devcontainer.json requirements.txt 2. Dev Containersでコンテナを起動
環境構築 はやし ゆうすけ 7
Dockerfile コンテナの基本イメージを定義 はやし ゆうすけ 8
docker-compose.yml コンテナ名やマウント、ポートを管理 はやし ゆうすけ 9
devcontainer.json VSCode上でコンテナを立ち上げ、接続するための設定を記載 はやし ゆうすけ 10
requirements.txt 必要なライブラリを記載 はやし ゆうすけ 11
コマンドパレットを開き、 「コンテナー で再度開く」を選択 .devcontainerの一つ上のディレクトリ を指定して開く コンテナ起動 はやし ゆうすけ 12
VSCodeとPythonで完結する分析環境 Dev Containersを使ってサクッと環境構築 まとめ 簡単に便利な分析環境を再現できる はやし ゆうすけ 13