문제

I had set up a startup.py script for python that imported the commonly used modules like re, os and sys. Ipython however does not seem to run it at startup because trying to use one of the modules raises an error.

도움이 되었습니까?

해결책

if you drop your startup.py into the directory found at $(ipython locate profile)/startup/, then it will run on every IPython startup (you may need to create the startup directory first).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top