両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
python:jupyterlab [2024/03/26 02:43] – [JupyterLab Desktop の conda 環境 (jlab_server) の日本語化] ともやん | python:jupyterlab [2025/02/19 14:53] (現在) – [付録] ともやん |
---|
| |
=== conda 環境 (jlab_server) 内の JupyterLab の更新 === | === conda 環境 (jlab_server) 内の JupyterLab の更新 === |
<html><code>mamba</code></html>、<html><code>conda</code></html>、<html><code>micromamba</code></html> の何れかで conda 環境の JupyterLab を更新する(<wrap em>※要再スタート</wrap>)🤔\\ | <html><code>mamba</code></html>、<html><code>conda</code></html>、<html><code>micromamba</code></html> の何れかで conda 環境の **jupyterlab** を更新する(<wrap em>※要再スタート</wrap>)🤔\\ |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre> | <WRAP color_command><html><pre> |
=== jupyterlab-drawio === | === jupyterlab-drawio === |
[[https://www.drawio.com|]]\\ | [[https://www.drawio.com|]]\\ |
| [[git>QuantStack/jupyterlab-drawio|GitHub - QuantStack/jupyterlab-drawio: A standalone embedding of the FOSS drawio / mxgraph package into jupyterlab]]\\ |
| <WRAP round important 90%> |
| [[git>QuantStack/jupyterlab-drawio/issues/120|JupyterLab 4 support tracking issue · Issue #120 · QuantStack/jupyterlab-drawio · GitHub]]\\ |
| </WRAP> |
| |
<WRAP round tip 90%> | <WRAP round tip 90%> |
jupyterlab-drawio を inject すると jupyterlab のバージョンが最新ではなくなる場合がある😝\\ | jupyterlab-drawio を inject すると jupyterlab のバージョンが最新ではなくなる場合がある😝\\ |
injected package <b>ipyparallel</b> into venv <b>jupyterlab</b> | injected package <b>ipyparallel</b> into venv <b>jupyterlab</b> |
done! ✨ 🌟 ✨ | done! ✨ 🌟 ✨ |
| </pre></html></WRAP> |
| </WRAP> |
| |
| === jupyterlite-core jupyterlite-pyodide-kernel === |
| [[.:jupyterlab:jupyterlite|JupyterLite]]\\ |
| [[git>jupyterlite/jupyterlite|jupyterlite/jupyterlite: Wasm powered Jupyter running in the browser 💡]]\\ |
| [[rtd>jupyterlite.readthedocs.io/|How-To Guides — JupyterLite 0.2.3 documentation]]\\ |
| [[git>jupyterlite/demo|jupyterlite/demo: JupyterLite demo deployed to GitHub Pages 🚀]]\\ |
| |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">pipx</font> inject jupyterlab jupyterlite-core jupyterlite-pyodide-kernel |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| injected package <b>jupyterlite-core</b> into venv <b>jupyterlab</b> |
| done! ✨ 🌟 ✨ |
| injected package <b>jupyterlite-pyodide-kernel</b> into venv <b>jupyterlab</b> |
| done! ✨ 🌟 ✨ |
| </pre></html></WRAP> |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">mkdir</font> jupyterlite <font color="#12488B"><b>&&</b></font> <font color="#26A269">cd</font> jupyterlite <font color="#12488B"><b>&&</b></font> <font color="#26A269">mkdir</font> <u style="text-decoration-style:single">content</u> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">jupyter</font><font color="#999999"> lite build </font><font color="#A347BA">--contents</font><font color="#999999"> </font><font color="#999999"><u style="text-decoration-style:single">content</u></font><font color="#999999"> </font><font color="#A347BA">--output-dir</font><font color="#999999"> dist</font> |
| </pre></html></WRAP> |
| <WRAP color_result_hlong><html><pre> |
| static:jupyter-lite.json |
| . pre_status:static:jupyter-lite.json |
| tarball: jupyterlite-app-0.2.3.tgz 9MB |
| output: /home/tomoyan/work/jupyterlite/dist |
| lite dir: /home/tomoyan/work/jupyterlite |
| apps: |
| sourcemaps: True |
| unused packages: True |
| archive:archive |
| contents:contents |
| icons:icons |
| jupyterlite-pyodide-kernel-pyodide:pyodide |
| lite:jupyter-lite.json |
| mimetypes:jupyter-lite.json |
| serve:contents |
| settings:overrides |
| translation:translation |
| . status:archive:archive |
| [LiteBuildApp] No archive (yet): jupyterlite-jupyterlite.tgz |
| . status:contents:contents |
| contents: 0 files |
| . status:icons:icons |
| favicon files: 0 files |
| . status:jupyterlite-pyodide-kernel-pyodide:pyodide |
| URL: None |
| archive: [] |
| cache: 0 files |
| local: 0 files |
| . status:lite:jupyter-lite.json |
| [LiteBuildApp] jupyter-lite.(json|ipynb): 0 files |
| . status:mimetypes:jupyter-lite.json |
| filetypes: 26 |
| . status:serve:contents |
| url: http://127.0.0.1:8000/ |
| server: tornado |
| headers: |
| . status:settings:overrides |
| overrides.json: 0 |
| . status:translation:translation |
| translation files: 0 files |
| static:output_dir |
| -- pre_init:static:output_dir |
| static:unpack |
| . init:static:unpack |
| /home/tomoyan/.local/pipx/venvs/jupyterlab/lib64/python3.12/site-packages/jupyterlite_core/addons/base.py:294: UserWarning: install libarchive-c for better performance when working with archives: No module named 'libarchive' |
| return has_optional_dependency( |
| federated_extensions:copy:ext:jupyterlab_pygments |
| federated_extensions:copy:ext:nbdime-jupyterlab |
| federated_extensions:copy:ext:jupyterlab-drawio |
| federated_extensions:copy:ext:ipyparallel-labextension |
| federated_extensions:copy:ext:@jupyterlab/git |
| federated_extensions:copy:ext:@jupyter-widgets/jupyterlab-manager |
| federated_extensions:copy:ext:@jupyter-lsp/jupyterlab-lsp |
| federated_extensions:copy:ext:@jupyter-ai/core |
| federated_extensions:copy:ext:@jupyterlite/pyodide-kernel-extension |
| . pre_build:federated_extensions:copy:ext:jupyterlab_pygments |
| . pre_build:federated_extensions:copy:ext:nbdime-jupyterlab |
| . pre_build:federated_extensions:copy:ext:jupyterlab-drawio |
| . pre_build:federated_extensions:copy:ext:ipyparallel-labextension |
| . pre_build:federated_extensions:copy:ext:@jupyterlab/git |
| . pre_build:federated_extensions:copy:ext:@jupyter-widgets/jupyterlab-manager |
| . pre_build:federated_extensions:copy:ext:@jupyter-lsp/jupyterlab-lsp |
| . pre_build:federated_extensions:copy:ext:@jupyter-ai/core |
| . pre_build:federated_extensions:copy:ext:@jupyterlite/pyodide-kernel-extension |
| icons:copy |
| translation:copy |
| . build:icons:copy |
| . build:translation:copy |
| federated_extensions:patch |
| federated_extensions:settings |
| jupyterlite-pyodide-kernel-piplite:patch |
| mimetypes:patch |
| . post_build:federated_extensions:patch |
| . post_build:federated_extensions:settings |
| . post_build:jupyterlite-pyodide-kernel-piplite:patch |
| . post_build:mimetypes:patch |
| </pre></html></WRAP> |
| Or |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">jupyter</font> lite serve <font color="#A347BA">--contents</font> <u style="text-decoration-style:single">content</u> <font color="#A347BA">--output-dir</font> <u style="text-decoration-style:single">dist</u> |
| </pre></html></WRAP> |
| <WRAP color_result_hlong><html><pre> |
| static:jupyter-lite.json |
| . pre_status:static:jupyter-lite.json |
| tarball: jupyterlite-app-0.2.3.tgz 9MB |
| output: /home/tomoyan/work/jupyterlite/dist |
| lite dir: /home/tomoyan/work/jupyterlite |
| apps: |
| sourcemaps: True |
| unused packages: True |
| archive:archive |
| contents:contents |
| icons:icons |
| jupyterlite-pyodide-kernel-pyodide:pyodide |
| lite:jupyter-lite.json |
| mimetypes:jupyter-lite.json |
| serve:contents |
| settings:overrides |
| translation:translation |
| . status:archive:archive |
| [LiteServeApp] No archive (yet): jupyterlite-jupyterlite.tgz |
| . status:contents:contents |
| contents: 0 files |
| . status:icons:icons |
| favicon files: 7 files |
| . status:jupyterlite-pyodide-kernel-pyodide:pyodide |
| URL: None |
| archive: [] |
| cache: 0 files |
| local: 0 files |
| . status:lite:jupyter-lite.json |
| [LiteServeApp] jupyter-lite.(json|ipynb): 0 files |
| . status:mimetypes:jupyter-lite.json |
| filetypes: 26 |
| . status:serve:contents |
| url: http://127.0.0.1:8000/ |
| server: tornado |
| headers: |
| . status:settings:overrides |
| overrides.json: 0 |
| . status:translation:translation |
| translation files: 3 files |
| static:output_dir |
| -- pre_init:static:output_dir |
| static:unpack |
| -- init:static:unpack |
| federated_extensions:copy:ext:jupyterlab_pygments |
| federated_extensions:copy:ext:nbdime-jupyterlab |
| federated_extensions:copy:ext:jupyterlab-drawio |
| federated_extensions:copy:ext:ipyparallel-labextension |
| federated_extensions:copy:ext:@jupyterlab/git |
| federated_extensions:copy:ext:@jupyter-widgets/jupyterlab-manager |
| federated_extensions:copy:ext:@jupyter-lsp/jupyterlab-lsp |
| federated_extensions:copy:ext:@jupyter-ai/core |
| federated_extensions:copy:ext:@jupyterlite/pyodide-kernel-extension |
| -- pre_build:federated_extensions:copy:ext:jupyterlab_pygments |
| -- pre_build:federated_extensions:copy:ext:nbdime-jupyterlab |
| -- pre_build:federated_extensions:copy:ext:jupyterlab-drawio |
| -- pre_build:federated_extensions:copy:ext:ipyparallel-labextension |
| -- pre_build:federated_extensions:copy:ext:@jupyterlab/git |
| -- pre_build:federated_extensions:copy:ext:@jupyter-widgets/jupyterlab-manager |
| -- pre_build:federated_extensions:copy:ext:@jupyter-lsp/jupyterlab-lsp |
| -- pre_build:federated_extensions:copy:ext:@jupyter-ai/core |
| -- pre_build:federated_extensions:copy:ext:@jupyterlite/pyodide-kernel-extension |
| icons:copy |
| translation:copy |
| . build:icons:copy |
| -- build:translation:copy |
| federated_extensions:patch |
| federated_extensions:settings |
| jupyterlite-pyodide-kernel-piplite:patch |
| mimetypes:patch |
| . post_build:federated_extensions:patch |
| -- post_build:federated_extensions:settings |
| . post_build:jupyterlite-pyodide-kernel-piplite:patch |
| -- post_build:mimetypes:patch |
| serve:tornado |
| . serve:serve:tornado |
| [LiteServeApp] WARNING | |
| |
| Serving JupyterLite Debug Server from: |
| /home/tomoyan/work/jupyterlite/dist |
| on: |
| http://127.0.0.1:8000/index.html |
| |
| *** Exit by: *** |
| - Pressing Ctrl+C |
| - Visiting /shutdown |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
| |
===== 参考文献 ===== | ===== 参考文献 ===== |
| [[https://gist.github.com/parente/b6ee0efe141822dfa18b6feeda0a45e5|Jupyter Tidbit: IPython's ! returns an SList]]\\ |
| [[so>questions/59973053/jupyter-ipython-slist-obtaining-non-tokenized-output-from-the-shell-execute|python - Jupyter / IPython SList :: Obtaining non-tokenized output from the shell execute operator "!" - Stack Overflow]]\\ |
| |
[[git>spyder-ide|Spyder IDE]]\\ | [[git>spyder-ide|Spyder IDE]]\\ |
[[https://ipython.readthedocs.io/en/latest/install/kernel_install.html|Installing the IPython kernel — IPython 8.0.0.dev documentation]]\\ | [[https://ipython.readthedocs.io/en/latest/install/kernel_install.html|Installing the IPython kernel — IPython 8.0.0.dev documentation]]\\ |
[[md>towards-data-science/4-little-known-magic-commands-that-boost-your-productivity-af1ba4268c57|4 Little Known Magic Commands That Boost Your Productivity | by Lukas Frei | Towards Data Science]] [[gtr>https://medium.com/towards-data-science/4-little-known-magic-commands-that-boost-your-productivity-af1ba4268c57|翻訳]]\\ | [[md>towards-data-science/4-little-known-magic-commands-that-boost-your-productivity-af1ba4268c57|4 Little Known Magic Commands That Boost Your Productivity | by Lukas Frei | Towards Data Science]] [[gtr>https://medium.com/towards-data-science/4-little-known-magic-commands-that-boost-your-productivity-af1ba4268c57|翻訳]]\\ |
==== 付録 ==== | ==== 付録 ==== |
| <WRAP minfont_11> |
[[tw>tomoyan596/status/1405944815250935810|Spyder IDE ❓って初めて知りましたけど、有名なのでしょうかねぇ🤔 / Twitter]]\\ | [[tw>tomoyan596/status/1405944815250935810|Spyder IDE ❓って初めて知りましたけど、有名なのでしょうかねぇ🤔 / Twitter]]\\ |
[[tw>tomoyan596/status/1407378026988412931|これもJupyterLab用のPowerShell Kernelの実装ですが、dotnet公式で対応していて以前はプレビューリリースの状態だったようですが、今はこちらが主流になって来ているのかな🤔 .NET Interactive / Twitter]]\\ | [[tw>tomoyan596/status/1407378026988412931|これもJupyterLab用のPowerShell Kernelの実装ですが、dotnet公式で対応していて以前はプレビューリリースの状態だったようですが、今はこちらが主流になって来ているのかな🤔 .NET Interactive / Twitter]]\\ |
[[tw>tomoyan596sp/status/1751614466683539552|この拡張機能はもう維持されません😨😇 やっぱり?😅なんかJupyterLabがビルドしなさい言ってくるし、ビルドしてもcodemirrorがModule not found言われるし、エクステンションをアンインストールしようね😉]]\\ | [[tw>tomoyan596sp/status/1751614466683539552|この拡張機能はもう維持されません😨😇 やっぱり?😅なんかJupyterLabがビルドしなさい言ってくるし、ビルドしてもcodemirrorがModule not found言われるし、エクステンションをアンインストールしようね😉]]\\ |
[[tw>tomoyan596sp/status/1763688165603525113|誰だよ Javascript Error: jQuery is not defined 言ってるのは🤣 jupyter_bokehがElectron版のJupyterLab Desktopでエラー吐いてるんだよね🤔 Webブラウザーではエラー吐いても動いてるけど...😅 なんだろうこれ🤔]]\\ | [[tw>tomoyan596sp/status/1763688165603525113|誰だよ Javascript Error: jQuery is not defined 言ってるのは🤣 jupyter_bokehがElectron版のJupyterLab Desktopでエラー吐いてるんだよね🤔 Webブラウザーではエラー吐いても動いてるけど...😅 なんだろうこれ🤔]]\\ |
| [[tw>tomoyan596sp/status/1774989551620292981|これSListには.nや.sや.lや.pや.grepとかが生えてるの、意外と知られてない気がする🤔 |
| SListが返ってくると書いてる日本語文献はあるけど、じつは便利に使える🤔 |
| いや、知ってる人は知ってるよね😅]]\\ |
| </WRAP> |