美文网首页“码”路奇谭
jupyter_notebook 集锦

jupyter_notebook 集锦

作者: 张张大白 | 来源:发表于2020-05-25 17:53 被阅读0次

一、jupyter_notebook修改存储路径

  • 1、查看jupyter的路径
import os
print(os.path.abspath('.'))
    1. 进入Anaconda Propmt ,进入jupyter的路径,然后输入这个命令行
jupyter notebook --generate-config

可以看到输出了

"Writing default config to : C:\Users\ass.jupyter\jupyter_notebook_config.py "

    1. 复制上面那个路径,并打开 jupyter_notebook_config.py 这个文件
      找到 # c.NotebookApp. notebook_dir = '' ;取消注释,输入路径:c.NotebookApp. notebook_dir = 'C:\Users'。修改后,保存。
    1. 点击jupyter notebook,进入“属性”,删掉目标中的 "%USERRPROFILE%/"


      应用保存

    1. 在jupyter中新建文件试一试存储路径是否修改成功

相关文章

网友评论

    本文标题:jupyter_notebook 集锦

    本文链接:https://www.haomeiwen.com/subject/noxuahtx.html