python - 在 WinPython 中设置 IPython Qt Console 启动位置

标签 python ipython

我想知道有人能帮我在 WinPython 中设置 IPython Qt 控制台启动位置吗?我认为在ipython中做到这一点的方法是修改ipy_user_conf.py并添加os.chdir(my_path),但是我在WinPython中找不到ipy_user_conf.py。

非常感谢!

-肖恩

最佳答案

Locating configuration files

$ ipython locate

Startup files documentation

If you want some code to be run at the beginning of every IPython session with a particular profile, the easiest way is to add Python (.py) or IPython (.ipy) scripts to your <profile>/startup directory.

关于python - 在 WinPython 中设置 IPython Qt Console 启动位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18794884/

相关文章:

python cdist 错误 ValueError : XA must be a 2-dimensional array

python - 从 node.js 和 websockets 访问 IPython 命令行

python - 如何以编程方式退出在 eval() 或 exec() 中启动的 pdb 而不显示输出

python - 无法从网站获取数据,因为获取数据时 URL 没有更改,因此数据表为空

python - 如果我只在一个虚拟环境中安装一个包,是否需要在其他虚拟环境中重新安装它?

nginx - 如何在子路径中的 nginx 后面配置 IPython?

python - 如何在 jupyter notebook 中使用 NOT 运算符 ~?

IPython:在 pylab 模式下在 IPython 中运行外部脚本时绘制图形

python - Pandas DataFrame 将列添加到索引而不重置

python:从网格节点在网格上构建迭代器