Start ipython running a script

后端 未结 7 946
暖寄归人
暖寄归人 2020-12-08 19:09

My use case is I want to initialize some functions in a file and then start up ipython with those functions defined. Is there any way to do something like

i         


        
7条回答
  •  伪装坚强ぢ
    2020-12-08 19:34

    Nowadays, you can use the startup folder of ipython, which is located in your home directory (C:\users\[username]\.ipython on Windows). Go into the default profile and you'll see a startup folder with a README file. Just put any Python scripts in there, or if you want ipython commands, put them in a file with an .ipy extension.

提交回复
热议问题