• 技术文章 >常用工具 >Jupyter

    怎么用jupyter导入py文件

    yangyang2020-01-16 13:23:05原创9725

    用jupyter导入py文件的方法:

    本地导入code

    jupyter notebook可以在cell中导入本地文件的py文件,具体方式如下:

    在cell中输入%load test.py,然后执行,则可在当前cell中导入文件中的code。

    网络导入code

    %load http://url

    推荐学习:《python教程

    专题推荐:jupyter 导入
    品易云
    上一篇:怎么退出jupyter 下一篇:怎样开启jupyter

    相关文章推荐

    • 怎么下载安装jupyter• 怎么卸载jupyter• 怎么调整jupyter代码字体大小• 怎么退出jupyter

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网