Spyder默认模块导入列表 [英] Spyder default module import list

查看:223
本文介绍了Spyder默认模块导入列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置一个稍微定制的Spyder版本。当Spyder启动时,它会自动导入一长串模块,包括来自matplotlib,numpy,scipy等的东西。有没有办法将我自己的模块添加到该列表中?

I'm trying to set up a slightly customised version of Spyder. When Spyder starts, it automatically imports a long list of modules, including things from matplotlib, numpy, scipy etc. Is there a way to add my own modules to that list?

如果它有所不同,我正在使用Python(X,Y)Windows安装程序提供的Spyder配置。

In case it makes a difference, I'm using the Spyder configuration provided by the Python(X,Y) Windows installer.

推荐答案

Spyder的启动脚本位于 site-packages / spyderlib / scientific_startup.py

The startup script for Spyder is in site-packages/spyderlib/scientific_startup.py.

Carlos的回答也可以,但这就是我想要的。

Carlos' answer would also work, but this is what I was looking for.

这篇关于Spyder默认模块导入列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆