feat(els): suggest external python libs

This commit is contained in:
Shunsuke Shibayama 2023-06-21 20:09:07 +09:00
parent 798f22afa4
commit 7ba874a85c
2 changed files with 111 additions and 29 deletions

View file

@ -530,6 +530,24 @@ pub const BUILTIN_PYTHON_MODS: [&str; 165] = [
"zlib",
"zoneinfo",
];
pub const EXT_PYTHON_MODS: [&str; 7] = [
"matplotlib",
"numpy",
"pandas",
"requests",
"setuptools",
"tqdm",
"urllib3",
];
pub const EXT_COMMON_ALIAS: [&str; 7] = [
"mpl",
"np",
"pd",
"requests",
"setuptools",
"tqdm",
"urllib3",
];
pub fn opt_which_python() -> Result<String, String> {
let (cmd, python) = if cfg!(windows) {