Skip to main content
 首页 » 编程设计

python之在 WinPython 中设置 IPython Qt 控制台启动位置

2024年11月01日11lhb25

我想知道有人可以帮助我在 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.