概要

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

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

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

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

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

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
image.png

webstorm

image.png

jlpm run build

image.png

jupyter labextension install

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

jupyter lab

image.png

コード修正

image.png

jlpm run build && jupyter lab build

image.png

jupyter lab

image.png

reference