ONLY DO WHAT ONLY YOU CAN DO

こけたら立ちなはれ 立ったら歩きなはれ

Jupyter notebook を 試してみた

ダウンロード

www.anaconda.com

インストール

f:id:fornext1119:20180526184253p:plain
f:id:fornext1119:20180526184344p:plain
f:id:fornext1119:20180526184438p:plain
f:id:fornext1119:20180526184706p:plain
f:id:fornext1119:20180526185227p:plain
f:id:fornext1119:20180526185608p:plain
f:id:fornext1119:20180526194118p:plain
f:id:fornext1119:20180526194252p:plain
f:id:fornext1119:20180526194336p:plain

起動

f:id:fornext1119:20180526195954p:plain
f:id:fornext1119:20180526200311p:plain
f:id:fornext1119:20180526202604p:plain

Jupyter で R を使えるようにする

↓こちらの記事を参考にさせていただきました
JupyterでRを使う。
f:id:fornext1119:20180526203234p:plain

install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))

f:id:fornext1119:20180526210835p:plain
f:id:fornext1119:20180526210848p:plain
f:id:fornext1119:20180526210941p:plain

devtools::install_github('IRkernel/IRkernel')

f:id:fornext1119:20180526211338p:plain

IRkernel::installspec()

なんかエラーになる
f:id:fornext1119:20180526211547p:plain
↓今度はこちらの記事を参考に
Jupyter notebookでRを使う:2017年1月版 - jnobuyukiのブログ
f:id:fornext1119:20180526212308p:plain
やはりエラーになる
f:id:fornext1119:20180526212410p:plain

R を最新の 3.5 にしてみたけど、変わらず。
どこのサイトで見たかわからなくなってしまったけど、インストール先を設定

devtools::install_github("IRkernel/repr",lib='C:/Program Files/R/R-3.5.0/library')
install.packages("stringi",lib='C:/Program Files/R/R-3.5.0/library')
devtools::install_github('IRkernel/IRdisplay',lib='C:/Program Files/R/R-3.5.0/library')
devtools::install_github('IRkernel/IRkernel',lib='C:/Program Files/R/R-3.5.0/library')

これでうまく行きました
f:id:fornext1119:20180527010014p:plain
同じ問題で困ってる人がいたら参考までに。