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).
Make IPython use my original startup script
-
03-04-2022 - |
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.
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow