jupyterの紹介 #nds48

25
私私私私私私私私私私私私 Jupyter 私私私私私私私私私私 #nds48 @civic

Upload: civicpg

Post on 12-Jan-2017

244 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: jupyterの紹介 #nds48

私がみんなにおすすめするJupyter を使ったコードの記録#nds48 @civic

Page 2: jupyterの紹介 #nds48

Jupyter

Page 3: jupyterの紹介 #nds48

Jupyter とは?

Page 4: jupyterの紹介 #nds48

Jupyter とは?• コードを書いて• 実行できるノート• ブラウザ上• お手軽

Page 5: jupyterの紹介 #nds48

デモ

Page 6: jupyterの紹介 #nds48

ファイル一覧

ファイル一覧

フォルダ

Page 7: jupyterの紹介 #nds48

ノートブックの新規作成

ノートブックの新規作成

Page 8: jupyterの紹介 #nds48

ノートブックの編集

セル

Page 9: jupyterの紹介 #nds48

どのように使うのか?

Page 10: jupyterの紹介 #nds48

ちょっと試しにコードを実行したい

Page 11: jupyterの紹介 #nds48

ちょっとコード実行

ReadPrint

EvalREPL

Page 12: jupyterの紹介 #nds48

ちょこっとコード実行複数行の入力エリア

ちょっと癖があるけどコード補完

Page 13: jupyterの紹介 #nds48

ちょこっとコード実行

リファレンス閲覧

? で実行

Page 14: jupyterの紹介 #nds48

記録を残したい

Page 15: jupyterの紹介 #nds48

記録を残したい• ノートとして記録を残す• Markdown 形式で

リッチな表現が可能

Page 16: jupyterの紹介 #nds48

実行結果の見える化

Page 17: jupyterの紹介 #nds48

実行結果の見える化単純な式

コード断片

Page 18: jupyterの紹介 #nds48

実行結果の見える化

統計データ

Page 19: jupyterの紹介 #nds48

実行結果の見える化

グラフ

Page 20: jupyterの紹介 #nds48

実行結果の見える化

ノートブックはgithub で表示可能

Page 21: jupyterの紹介 #nds48

実行について

Page 22: jupyterの紹介 #nds48

いろいろなカーネル• 実行する言語を選択可能

https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages

Page 23: jupyterの紹介 #nds48

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

今日のおみやげ

Page 25: jupyterの紹介 #nds48

おみやげ• Jupyter ノートブックというツール• Jupyter の概要• 導入の仕方