komekichix’s diary

日々の仕事、生活でぶち当たった問題の解決策を書き残しています。あなたのお役に立てれば幸いです。

【Python】JupyterLab failed to buildの対処(jupyterlab_variableinspector)

Variable InspectorはJupyter Labで変数の中身が確認できる拡張機能です。
インストール中にエラーが出た際の対処方法をメモします。


インストール手順

>jupyter labextension install @lckr/jupyterlab_variableinspector

→エラーになりました。
RuntimeError: JupyterLab failed to build

→以下のようにバージョンを指定して実行
>jupyter labextension install @lckr/jupyterlab_variableinspector@3.0.7
 →無事にインストールできました。

(参考url:
    https://qiita.com/aikokushanojuu/questions/0a2eec735e9db11eb9ca
    https://teratail.com/questions/348800