「Matplotlib」:修訂間差異
跳至導覽
跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
(创建页面,内容为“'''Matplotlib'''是一套Python寫的繪圖工具。 == 外部連結 == * {{Official|https://matplotlib.org/}} {{en}}”) |
(→安裝) |
||
(未顯示同一使用者於中間所作的 6 次修訂) | |||
行 1: | 行 1: | ||
'''Matplotlib'''是一套[[Python]]寫的繪圖工具。 | '''Matplotlib'''是一套[[Python]]寫的繪圖工具。 | ||
== 安裝 == | |||
在[[Ubuntu]] 22.04下,[[Python]] 3的版本是3.10,版本算是還可以,所以我使用系統的Python搭配[[pipx]]安裝<ref>{{Cite web |url=https://gist.github.com/lboulard/e22b5603deb38413e1340ccd22728ede |title=pipx and Jupyter Qt console |language=en |accessdate=2023-05-19 |date=2022-03-28}}</ref>: | |||
<syntaxhighlight lang="bash"> | |||
pipx install --include-deps jupyterlab; pipx inject jupyterlab matplotlib numpy jupyter-console scipy simpy sympy arrow pandas tabulate isort black jupyterlab_code_formatter PyQt5 qtconsole drawSvg CairoSVG | |||
</syntaxhighlight> | |||
這個安裝方式會發現不會把<code>jupyter-qtconsole</code>連結到<code>.local/bin</code>下面,所以需要自己指定完整路徑執行,或是用一個symbolic link放到<code>$PATH</code>搜的到的地方: | |||
<syntaxhighlight lang="bash"> | |||
~/.local/pipx/venvs/jupyterlab/bin/jupyter-qtconsole | |||
</syntaxhighlight> | |||
== 參考資料 == | |||
{{Reflist|2}} | |||
== 外部連結 == | == 外部連結 == | ||
* {{Official|https://matplotlib.org/}} {{en}} | * {{Official|https://matplotlib.org/}} {{en}} |
於 2023年5月19日 (五) 01:26 的最新修訂
Matplotlib是一套Python寫的繪圖工具。
安裝
在Ubuntu 22.04下,Python 3的版本是3.10,版本算是還可以,所以我使用系統的Python搭配pipx安裝[1]:
pipx install --include-deps jupyterlab; pipx inject jupyterlab matplotlib numpy jupyter-console scipy simpy sympy arrow pandas tabulate isort black jupyterlab_code_formatter PyQt5 qtconsole drawSvg CairoSVG
這個安裝方式會發現不會把jupyter-qtconsole
連結到.local/bin
下面,所以需要自己指定完整路徑執行,或是用一個symbolic link放到$PATH
搜的到的地方:
~/.local/pipx/venvs/jupyterlab/bin/jupyter-qtconsole
參考資料
- ↑ pipx and Jupyter Qt console. 2022-03-28 [2023-05-19] (English).
外部連結
- 官方網站 (英文)