====== JupyterLab memo ====== ===== jlpm ===== jlpm の実行には node.js が必要である🤔\\ [[linux:anyenv|anyenv - rbenv スタイルのオールインワン環境マネージャー]] および\\ [[linux:anyenv#nodenv|nodenv - anyenv - rbenv スタイルのオールインワン環境マネージャー]]\\ jlpm は yarn のロックされたバージョンである🤔\\ [[rtd>jupyterlab.readthedocs.io/en/latest/developer/contributing.html#installing-jupyterlab|Contribute — JupyterLab 4.1.2 documentation]] [[gtr>https://jupyterlab.readthedocs.io/en/latest/developer/contributing.html#installing-jupyterlab|翻訳]] より\\
The jlpm command is a JupyterLab-provided, locked version of the yarn package manager. If you have yarn installed already, you can use the yarn command when developing, and it will use the local version of yarn in jupyterlab/yarn.js when run in the repository or a built application directory.
jlpm コマンドは、JupyterLab が提供する、yarn パッケージ マネージャーのロックされたバージョンです。すでに yarn がインストールされている場合は、開発時に yarn コマンドを使用できます。また、リポジトリまたはビルドされたアプリケーションディレクトリで実行するときに、jupyterlab/yarn.js 内のローカルバージョンの yarn が使用されます。
$ jupyter --version
Selected Jupyter core packages...
IPython          : 9.1.0
ipykernel        : 6.29.5
ipywidgets       : 8.1.6
jupyter_client   : 8.6.3
jupyter_core     : 5.7.2
jupyter_server   : 2.15.0
jupyterlab       : 4.4.0
nbclient         : 0.10.2
nbconvert        : 7.16.6
nbformat         : 5.10.4
notebook         : 7.4.0
qtconsole        : not installed
traitlets        : 5.14.3
$ bat -p $(which jlpm)
#!/home/tomoyan/miniforge3/envs/jupyterlab/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyterlab.jlpmapp import main
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())