cygwinにjupyterlabを入れる

表題の通りです
詰まったのでメモです

素直に入れるとpyzmqのインストールでコケます

1$ pip install jupyterlab
2    bundled/zeromq/src/signaler.cpp:62:25: 致命的エラー: sys/eventfd.h: No such file or directory
3     #include <sys/eventfd.h>
4                             ^
5    コンパイルを停止しました。
6    error: command 'gcc' failed with exit status 1

なのでソースから入れます

1$ wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz
2$ tar -zxvf zeromq-4.2.1.tar.gz
3$ cd zeromq-4.2.1
4$ ./configure
5$ make
6$ make install

ここまで入れたら再度入れ直します

1$ pip install jupyterlab

入ってので終わりだけど一応動作確認

1$ jupyter lab --no-browser
2[I 09:13:01.480 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
3[C 09:13:01.482 LabApp]
4
5    Copy/paste this URL into your browser when you connect for the first time,
6    to login with a token:
7        http://localhost:8888/?token=hogehoge

ブラウザからアクセスして確認する

参考記事