Auto-load a module on python startup

后端 未结 4 1123
猫巷女王i
猫巷女王i 2020-12-09 18:44

I want IPython or the Python interpreter to auto-load a module when I start them.

Is it possible?

For example when I start IPython:

$ ipy         


        
4条回答
  •  失恋的感觉
    2020-12-09 19:18

    Check the file ~/.ipython/ipythonrc - you can list all modules you want to load at the startup.

提交回复
热议问题