jupyterの紹介 #nds48
-
Upload
civicpg -
Category
Technology
-
view
244 -
download
1
Transcript of jupyterの紹介 #nds48
![Page 1: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/1.jpg)
私がみんなにおすすめするJupyter を使ったコードの記録#nds48 @civic
![Page 2: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/2.jpg)
Jupyter
![Page 3: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/3.jpg)
Jupyter とは?
![Page 4: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/4.jpg)
Jupyter とは?• コードを書いて• 実行できるノート• ブラウザ上• お手軽
![Page 5: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/5.jpg)
デモ
![Page 6: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/6.jpg)
ファイル一覧
ファイル一覧
フォルダ
![Page 7: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/7.jpg)
ノートブックの新規作成
ノートブックの新規作成
![Page 8: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/8.jpg)
ノートブックの編集
セル
![Page 9: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/9.jpg)
どのように使うのか?
![Page 10: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/10.jpg)
ちょっと試しにコードを実行したい
![Page 11: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/11.jpg)
ちょっとコード実行
ReadPrint
EvalREPL
![Page 12: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/12.jpg)
ちょこっとコード実行複数行の入力エリア
ちょっと癖があるけどコード補完
![Page 13: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/13.jpg)
ちょこっとコード実行
リファレンス閲覧
? で実行
![Page 14: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/14.jpg)
記録を残したい
![Page 15: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/15.jpg)
記録を残したい• ノートとして記録を残す• Markdown 形式で
リッチな表現が可能
![Page 16: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/16.jpg)
実行結果の見える化
![Page 17: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/17.jpg)
実行結果の見える化単純な式
コード断片
![Page 18: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/18.jpg)
実行結果の見える化
統計データ
![Page 19: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/19.jpg)
実行結果の見える化
グラフ
![Page 20: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/20.jpg)
実行結果の見える化
ノートブックはgithub で表示可能
![Page 21: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/21.jpg)
実行について
![Page 22: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/22.jpg)
いろいろなカーネル• 実行する言語を選択可能
https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
![Page 23: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/23.jpg)
Jupyter を使うには• ホスティングされた Web サービス
https://try.jupyter.org/• docker で用意
• $ docker pull jupyter/datascience-notebook• $ docker run -p 8888:8888 jupyter/datascience-
notebook• 自前で構築
• anaconda を使うと、もろもろの python 環境が揃ってて楽
• 参考 Vagrantfile https://github.com/civic/jupyter-vagrant-quickstart
![Page 24: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/24.jpg)
今日のおみやげ
![Page 25: jupyterの紹介 #nds48](https://reader036.fdocuments.net/reader036/viewer/2022062306/5876b9ba1a28abad1a8b68d7/html5/thumbnails/25.jpg)
おみやげ• Jupyter ノートブックというツール• Jupyter の概要• 導入の仕方