Rumah  >  Artikel  >  pembangunan bahagian belakang  >  Jupyter notebook安装与使用

Jupyter notebook安装与使用

高洛峰
高洛峰asal
2017-02-13 17:14:023105semak imbas
  • Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言。

  • 安装

    • 安装python 3

    • pip安装

      pip3 install --upgrade pip

      pip3 install jupyter

  • 运行

    • jupyter notebook 启动,会默认打开http://localhost:8888/,访问用户目录

      Jupyter notebook安装与使用

         

      如何自定义端口?

      jupyter notebook --port 9999

    • Nootbook  dashboard

      Jupyter notebook安装与使用

         

  • 笔记操作

    • 打开已有笔记

      例如,打开网友分享的CS231课程笔记,https://github.com/zlotus/cs231n

      下载zip包,解压到用户目录,刷新dashboard就能看到了

      Jupyter notebook安装与使用

      .ipynb就是保存的笔记,单击打开,enjoy it!

      Jupyter notebook安装与使用

    • 运行实例管理

      Jupyter notebook安装与使用

      在running里可以查看正在运行的实例,可以shutdown

    • 新建笔记

      点击new菜单里的Python 3就可以创建一个笔记了

      Jupyter notebook安装与使用

    • 插入代码

      Jupyter notebook安装与使用

    • 运行代码

      Jupyter notebook安装与使用

         

      Jupyter notebook安装与使用

    • 增加文本段

      点击新增(+),选择类型为markdown

      Jupyter notebook安装与使用

    • 保存

      CTRL+S 或点击save按钮保存

      Jupyter notebook安装与使用

    • 命名

      点击标题,会弹出rename框

      Jupyter notebook安装与使用

        

更多Jupyter notebook安装与使用 相关文章请关注PHP中文网!

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn