Matplotlib:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
 
第3行: 第3行:
== 安裝 ==
== 安裝 ==


 在[[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>:
 在[[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">
<syntaxhighlight lang="bash">

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

参考资料

  1. pipx and Jupyter Qt console. 2022-03-28 [2023-05-19] (English). 

外部链接