jupyter notebook Quick Start Tutorial

What is jupyter notebook?

Official website: https: //jupyter.org/

The above is the official Web site, under a brief introduction, do not explain, juoyter notebook, is a web application, more powerful, pycharm can do, he can do basic, pychrm can not do, he also can do, run time save memory compared pycharm, more suitable for data processing, machine learning, large data analysis of these! ipython environment dependent, interactive environment will make ipython become a web application! Jupyter by a new name  Julia, Python and  R combination.

installation

The most short-answer method is to install a Anaconda, he comes jupyter notebook

If you configure a python environment on a computer, of course, is supported python3, 2 I do not know.

pip install jupyter

Run jupyter

On Windows, you can add Anaconda shortcuts to your Start menu to run Jupyter, it will open a new tab in your default web browser, it looks like the screenshot below the same.

Create the first file

    You can create a new notebook by clicking the "New", text files, folders, or you can choose to end it here.

User interface

       This interface I will not say, I have to say about code execution, Python code is executed from top to bottom was, this is not, this is you run the cell, on the first execution

Two modes commonly used shortcut keys

       Click on a directory space, right window using the command mode, enter jupyter notebook open jupyter in the current directory

        Edit mode

Edit mode is also markdown mode is used to edit text

        Command Mode

Command mode can also be said to be code mode, primarily to write code, you can run, you can multiple lines.

        Keyboard Shortcuts

        shift + table to open the help file

Mode switching m \ y

Add cell a \ b

执行cell       shift + enter

tab      自动补全

删除cell    x

.......

导出你的 notebook

jupyter 内置支持导出 HTML 和 PDF 以及其他几种格式,你可以在 File > Download As 菜单下找到。如果你希望与一个小型的私有组共享你的 notebook,这个功能很可能是你所需要的。事实上,许多学术机构的研究人员都有一些公共或内部的网络空间,因为你可以将一个 notebook 导出到一个 HTML 文件中,Jupyter notebook 可以成为他们与同行分享成果的一种特别方便的方式。

但是,如果共享导出的文件并不能让你满意,那么还有一些更直接的非常流行的共享 .ipynb 文件到网上的方法。另外要说的是github也支持了对.ipynb文件的渲染.怎么分享我就不细说了.

 


 

 

 

        好了本期教程就分享到这里,

        版权声明:本文章由www.bilibiling.cn独家整理分享,禁止转载!

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/well-666/p/11502274.html
Recommended