Pergunta

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.

Foi útil?

Solução

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).

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top