LoginSignup
1
3

More than 1 year has passed since last update.

JupyterLabのインストール

Last updated at Posted at 2022-09-26

Anacondaと一緒にJupyterLabをインストール

1. Anaconda Installersまでスクロールし、該当リンクを押下

  • M1Macの場合64-Bit (M1) Graphical Installer (316 MB)

2. 「続ける」を押下しインストール

スクリーンショット 2022-09-26 21.31.37.png

3. コマンドで起動

$ jupyter lab
(base) sample@SampleMBP ~ % jupyter lab
NumExpr defaulting to 8 threads.
[I 2022-07-09 17:40:06.008 ServerApp] jupyterlab | extension was successfully linked.
[I 2022-07-09 17:40:06.094 ServerApp] nbclassic | extension was successfully linked.
[I 2022-07-09 17:40:06.094 ServerApp] panel.io.jupyter_server_extension | extension was successfully linked.
[I 2022-07-09 17:40:06.114 ServerApp] nbclassic | extension was successfully loaded.
[I 2022-07-09 17:40:06.115 LabApp] JupyterLab extension loaded from /opt/anaconda3/lib/python3.9/site-packages/jupyterlab
[I 2022-07-09 17:40:06.115 LabApp] JupyterLab application directory is /opt/anaconda3/share/jupyter/lab
[I 2022-07-09 17:40:06.116 ServerApp] jupyterlab | extension was successfully loaded.
/panel-preview/ /panel-preview
[I 2022-07-09 17:40:06.117 ServerApp] panel.io.jupyter_server_extension | extension was successfully loaded.
[I 2022-07-09 17:40:06.118 ServerApp] ローカルディレクトリからノートブックをサーブ: /Users/username
[I 2022-07-09 17:40:06.118 ServerApp] Jupyter Server 1.13.5 is running at:
[I 2022-07-09 17:40:06.118 ServerApp] http://localhost:8888/lab?token=866a58aef7189a70be07e944b9dc8194ce21c8eefb085669
[I 2022-07-09 17:40:06.118 ServerApp]  or http://127.0.0.1:8888/lab?token=866a58aef7189a70be07e944b9dc8194ce21c8eefb085669
[I 2022-07-09 17:40:06.118 ServerApp] サーバを停止し全てのカーネルをシャットダウンするには Control-C を使って下さい(確認をスキップするには2回)。
[C 2022-07-09 17:40:06.121 ServerApp]

 To access the server, open this file in a browser:
     file:///Users/username/Library/Jupyter/runtime/jpserver-86004-open.html
 Or copy and paste one of these URLs:
     http://localhost:8888/lab?token=866a58aef7189a70be07e944b9dc8194ce21c8eefb085670
  or http://127.0.0.1:8888/lab?token=866a58aef7189a70be07e944b9dc8194ce21c8eefb085670
[I 2022-07-09 17:40:08.980 LabApp] Build is up to date

4. コマンドを実行するとブラウザ上で立ち上がる

スクリーンショット 2022-09-26 21.37.56.png

5. ファイルを作成する場合はNotebookのPython 3をクリック

先にディレクトリをクリックしておくと、そのディレクトリ配下にファイルが作成される

基本操作

ショートカット

  • モードの切り替え

    • y(Codeモードになる)
    • m(Markdownモードになる)
    • r(Rawモードになる)
  • 実行

    • shift + enter
    • command + enter
  • セル

    • a(選択状態のセルの上に追加)
    • b(下に追加)
    • c(コピー)
    • v(貼り付け)
    • x(切り取り)
    • dd(セルの削除)
  • 保存

    • command + s
  • JupyterLabの終了

    • terminalでcontrol + c
      • 5秒以内にyを入力

関連

1
3
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
1
3