你能在笔记本上找到`ipython profile`(Jupyter)吗?

时间:2016-09-07 18:56:40

标签: ipython jupyter jupyter-notebook

iPython个人资料或Jupyter个人资料路径:~/.ipython/profile_default/startup/startup.ipy

我经常更新这个。

是否可以在笔记本中使用source这样的方式,例如在您进入终端后source ~/.bash_profile进行更新后?我当前的方法是关闭内核和Jupyter会话然后重启。

1 个答案:

答案 0 :(得分:2)

您可以使用%run执行此操作:

%run ~/.ipython/profile_default/startup/startup.ipy

如果您执行%run -i [script],则脚本可以使用您当前的交互式命名空间。