gpt4 book ai didi

python - SublimeREPL 和 IPython

转载 作者:行者123 更新时间:2023-11-28 22:45:23 25 4
gpt4 key购买 nike

当我尝试将 IPython 与 SublimeREPL 结合使用时,我失败了。

我的设置是:

- Windows 8.1
- Sublime Text 3
- C:\Python34
- C:\Python27
- C:\Anaconda3\Scripts -> Here it's where Ipython is

我的 PYTHONPATH 和 PATH 是正确的,我在 SublimeREPL 设置中写了 - 用户:

{
"default_extend_env": {"PATH": "{PATH};C\\Anaconda3\\Scripts"}
}

最佳答案

解决了。我在文件夹 Sublime Text 3\Packages\User\SublimeREPL\config\Python

中创建了一个名为 Main.sublime-menu 的文件
[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "r",
"id": "SublimeREPL",
"children":
[
{
"caption": "Python",
"id": "Python",

"children":[
{
"command": "repl_open",
"caption": "IPython - Anaconda",
"id": "repl_python_ipython",
"mnemonic": "p",
"args": {
"type": "subprocess",
"encoding": "utf8",
"autocomplete_server": true,
"cmd": ["C:/Anaconda3/Scripts/ipython", "--colors=NoColor"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python"

}
}
]
}
]
}]
}
]

关于python - SublimeREPL 和 IPython,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28664989/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com