25
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

JupyterLabでコード補完(jupyterlab-kite)

Last updated at Posted at 2020-08-10

JupyterLabとは

JupyterLabの課題

  • デフォルトではTabを押さないとコード補完(autocomplete)されない
  • そのため、いくつかコード補完のextentionが提案されている
  • ここでは、jupyter-kiteについて紹介する

jupyterlab-kiteとは

image.png

jupyterlab-kiteのインストール方法

概要

  • CUIだとエラーが出るが無視しても動作する
  • アカウント作成やログインをしなくとも動作する

検証環境

  • ubuntu (Windows10 WSL)
  • anaconda
  • python(3.8)
  • jupyterlab(2.2)

インストール方法

conda環境の準備

conda create -n jupyter_test python=3
conda activate jupyter_test

kiteのインストール

bash -c "$(wget -q -O - https://linux.kite.com/dls/linux/current)"

ここで、以下のエラーが出るが無視する

[installer] error enabling kite-updater.timer. exit status 1, output: 'Created symlink /home/xxxx/.config/systemd/user/basic.target.wants/kite-updater.timer → /home/xxxx/.config/systemd/user/kite-updater.timer.
Failed to connect to bus: No such file or directory
'
ROLLBAR error failed to enable updater service [install error enabling kite-updater.timer exit status 1 Created symlink /home/xxxx/.config/systemd/user/basic.target.wants/kite-updater.timer → /home/xxxx/.config/systemd/user/kite-updater.timer.
Failed to connect to bus: No such file or directory
 Linux DESKTOP-HDE6IOT 4.4.0-18362-Microsoft #836-Microsoft Mon May 05 16:04:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
]
dropping rollbar event due to filtering
[installer] registering kite:// protocol handler
[installer] error installing kite protocol handler. exec: "xdg-mime": executable file not found in $PATH, output: ''
ROLLBAR error failed to enable kite:// protocol handler [install error running 'xdg-mime default kite-copilot.desktop x-scheme-handler/kite' exec: "xdg-mime": executable file not found in $PATH  Linux DESKTOP-HDE6IOT 4.4.0-18362-Microsoft #836-Microsoft Mon May 05 16:04:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
]
dropping rollbar event due to filtering
[installer] kite is installed! launching now! happy coding! :)
[installer] run /home/xxxx/.local/share/kite/kited
[installer]     or launch it using the Applications Menu
Removing kite-installer

jupyterlab,jupyter-kiteのインストール

conda install -c conda-forge jupyterlab nodejs
pip install jupyter-kite
jupyter labextension install "@kiteco/jupyterlab-kite"

jupyterlabの起動

jupyter lab
25
21
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
25
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?