LoginSignup
31
28

More than 5 years have passed since last update.

JupyterlabでRとJavascriptを使う

Last updated at Posted at 2018-10-13

JupyterLabの短い紹介

JupyterLabは新しいデータサイエンスのためにアプリケーションです。Jupyter Notebookの後任です。JupyterLabをインストールするとPythonだけ使えます。Pythonは悪くないけど、ほかの言語も使えるようにできます。この記事にJupyterLabをインストール仕方、またはJupyterLabでRとJavascriptを使え方について書きます。

私はUbuntu 16.04を使えるからほかのシステムの仕方はたぶん違います。

JupyterLabをインストールしましょう

まずは、JupyterLabの自体をインストールしなければならない。Pythonのpipかcondaでインストールできます。
condaを使ったら:conda install -c conda-forge jupyterlab
pipを使ったら:pip install jupyterlab

よし。今JupyterLabにPythonでコーディングをできます。インストールの確認ためにこののコードを入力しましょう:jupyter lab
新しいタブでJupyterLabは開くはずです。

Rを可能にしましょう

まず、devtoolsというRパケージをインストールします:
install.packages("devtools")

そして新しいdevtoolsでGithubからIRkernelをインストールします:
devtools::install_github("IRkernel/IRkernel")

最後にIRkernelとJupyterLabがつながるために:
IRkernel::installspec()

おめでとう。今JupyterLabにRを使えます。

Javascriptを可能にしましょう

npmnodeは必要です。

npmからijavascriptをインストールします:
npm install -g ijavascript

そして:ijsinstall

確認

jupyter labをターミナルを入力して、ブラウザでこんなことを見るといい:

Screenshot from 2018-10-13 23-43-16.png

31
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
31
28