Home  >  Article  >  Backend Development  >  Jupyter notebook installation and use

Jupyter notebook installation and use

高洛峰
高洛峰Original
2017-02-13 17:14:023160browse
  • Jupyter Notebook (previously known as IPython notebook) is an interactive notebook that supports running more than 40 programming languages.

  • Install

    • ##Install python 3

    • pip installation

      pip3 install --upgrade pip

      pip3 install jupyter

  • Run

    • jupyter notebook starts, it will open by default http://localhost:8888/, visit User directory

      Jupyter notebook安装与使用

      How to customize the port?

      jupyter notebook --port 9999

    • Nootbook dashboard

      Jupyter notebook安装与使用

  • Note operation

    • ##Open an existing note

      For example, open the

      CS231 course notes shared by netizens, https://github.com/zlotus/cs231n

      download the zip package, Unzip it to the user directory, refresh the dashboard and you will see

      Jupyter notebook安装与使用 .ipynb

      is the saved note, click to open, enjoy it!

      Jupyter notebook安装与使用

    • Running Instance Management

      Jupyter notebook安装与使用

      In running You can view the running instance, you can shutdown

    • New note

      Click Python 3 in the new menu You can create a note

      Jupyter notebook安装与使用

    • Insert code

      Jupyter notebook安装与使用

    • Run the code

      Jupyter notebook安装与使用

    • Add text segment

      Click Add (+) and select the type as markdown

      Jupyter notebook安装与使用

    • Save

      CTRL+S Or click the save button to save

      Jupyter notebook安装与使用

    • Name

      Click on the title and the rename box will pop up

      Jupyter notebook安装与使用

For more Jupyter notebook installation and use related articles, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn