文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== JupyterLab memo ====== ===== jlpm ===== <WRAP round tip 90%> 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|翻訳]] より\\ <WRAP group> <WRAP half column><html><pre> The <code>jlpm</code> command is a JupyterLab-provided, locked version of the yarn package manager. If you have <code>yarn</code> installed already, you can use the <code>yarn</code> command when developing, and it will use the local version of <code>yarn</code> in <code>jupyterlab/yarn.js</code> when run in the repository or a built application directory. </pre></html></WRAP> <WRAP half column><html><pre> <code>jlpm</code> コマンドは、JupyterLab が提供する、yarn パッケージ マネージャーのロックされたバージョンです。すでに <code>yarn</code> がインストールされている場合は、開発時に <code>yarn</code> コマンドを使用できます。また、リポジトリまたはビルドされたアプリケーションディレクトリで実行するときに、<code>jupyterlab/yarn.js</code> 内のローカルバージョンの <code>yarn</code> が使用されます。 </pre></html></WRAP> </WRAP> </WRAP> <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">jupyter</font> <font color="#A347BA">--version</font> </pre></html></WRAP> <WRAP color_result><html><pre> 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 </pre></html></WRAP> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">bat</font> <font color="#A347BA">-p</font> <font color="#A347BA">$</font><font color="#2A7BDE"><b>(</b></font><font color="#26A269">which</font> jlpm<font color="#2A7BDE"><b>)</b></font> </pre></html></WRAP> <WRAP color_result><html><pre> <font color="#75715E">#!/home/tomoyan/miniforge3/envs/jupyterlab/bin/python</font> <font color="#75715E"># -*- coding: utf-8 -*-</font> <font color="#F92672">import</font><font color="#F8F8F2"> re</font> <font color="#F92672">import</font><font color="#F8F8F2"> sys</font> <font color="#F92672">from</font><font color="#F8F8F2"> jupyterlab.jlpmapp </font><font color="#F92672">import</font><font color="#F8F8F2"> main</font> <font color="#F92672">if</font><font color="#F8F8F2"> __name__ </font><font color="#F92672">==</font><font color="#F8F8F2"> </font><font color="#E6DB74">'__main__'</font><font color="#F8F8F2">:</font> <font color="#F8F8F2"> sys.argv[</font><font color="#AE81FF">0</font><font color="#F8F8F2">] </font><font color="#F92672">=</font><font color="#F8F8F2"> re.sub(</font><font color="#66D9EF">r</font><font color="#E6DB74">'(-script</font><font color="#AE81FF">\.</font><font color="#E6DB74">pyw</font><font color="#F92672">|</font><font color="#AE81FF">\.</font><font color="#E6DB74">exe)</font><font color="#F92672">?$</font><font color="#E6DB74">'</font><font color="#F8F8F2">, </font><font color="#E6DB74">''</font><font color="#F8F8F2">, sys.argv[</font><font color="#AE81FF">0</font><font color="#F8F8F2">])</font> <font color="#F8F8F2"> sys.exit(main())</font> </pre></html></WRAP> </WRAP> python/jupyterlab/memo.txt 最終更新: 2025/04/24 10:29by ともやん