Reusing code from different IPython notebooks

前端 未结 10 1234
南方客
南方客 2020-12-13 08:52

I am using IPython and want to run functions from one notebook from another (without cutting and pasting them between different notebooks). Is this possible and reasonably e

10条回答
  •  没有蜡笔的小新
    2020-12-13 09:25

    You can connect with a qtconsole to the same kernel. Just supply this at startup:

    ipython qtconsole --existing kernel-0300435c-3d07-4bb6-abda-8952e663ddb7.json
    

    Look at the output after starting the notebook for the long string.

提交回复
热议问题