LoginSignup
1
1

More than 5 years have passed since last update.

jupyterlabのexternal extensionを作ってみた。

Last updated at Posted at 2018-04-10

概要

jupyterlabのextensionには2つのtypeがある。

1) jupyterlabの既定packagesだけ使うextension <- extensionだけbuildすればOkay
2) jupyterlabが提供するpackages以外のpackagesを必要とするextension <- extensionをjlpm run add:sibling <directory>してからjupyterlabをbuildする

私は1)番をexternal extension、2番をembeded extensionと呼ぶ。

この文書は1)番のextensionを作る基本的な手順を説明する。

referenceはここ http://jupyterlab.readthedocs.io/en/stable/developer/extension_dev.html

conda install cookiecutter

conda install cookiecutter
image.png

Proceed ([y]/n)? y

image.png

cookiecutter

cookiecutter https://github.com/jupyterlab/extension-cookiecutter-ts

image.png

jlpm install

image.png

Macで見るとこんなに面白いアイコンも出る(yarnが出すのですが。)
image.png

webstorm

image.png

jlpm run build

image.png

jupyter labextension install

jupyter labextension list
jupyter labextension install
jupyter labextension list

jupyter labextension list
jupyter labextension install
image.png
image.png
image.png
jupyter labextension list
image.png

jupyter lab

image.png
image.png

コード修正

image.png

jlpm run build && jupyter lab build

jlpm run build
jupyter lab rebuild (rebuild command was removed.)
jupyter lab build
image.png

jupyter lab

jupyter lab
image.png

reference

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