Saturday, August 25, 2018

What is Jupyter Notebook for Python 3 ? Data Science - Data Analysis | Codeing School

Jupyter Notebook is a framework of Python. Jupyter Notebook use for Data Science. We can do any kind of Data Science related work in Jupyter. It is very easy to learn for beginners.

What is Jupyter Notebook for Python 3 ?
What is Jupyter Notebook for Python 3 ?



The Jupyter Notebook is a web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, machine learning and much more.

The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.
Jupyter Notebook is best for Data Science, Data Analysis & Big Data.

Installing Jupyter Notebook

Step 1. Right click in your Start menu, click on Windows PowerShell.

Step 2. On Windows PowerShell, type --> pip install jupyter 

Step 3. After installing, type on Windows PowerShell --> jupyter notebook. 

What is Jupyter Notebook for Python 3
For open Jupyter Notebook


Step 4. Jupyter Notebook will open on your browser. 

Step 5. Click on new and click Python 3 for write your Python code.




What is Jupyter Notebook for Python 3
Jupyter Notebook open in browser 


Step 6. Your Jupyter Notebook will open in your browser. You see the cells of Jupyter Notebook.



What is Jupyter Notebook for Python 3
Jupyter Notebook Cells




Using Jupyter 

Each new notebook starts off with one cell. Cells can be in one of two states: command mode or edit mode. To go into edit mode press the enter key or click on a cell. Notice it turned green. To return to command mode press esc. Notice it turned blue. While a cell is selected, it can be run by selected “Cell ->Run Cell and Select Below”. To avoid doing this every time the shortcut can be used. To look at the shortcuts select “Help ->Keyboard Shortcut”. Notice after running a cell the number in the square brackets is populated. This is to indicate the order of execution as cells do not need to be run top to bottom. When there is an asterisk in the square brackets that means the cell is still running. To rename a notebook you can click the current title, usually “Untitled” by default.


**Note - Click on Help, then click on User Interface Tour (recommended).


Coding in Jupyter Notebook 

Jupyter Notebook supports basic Python program. You can run the basic python code on any cell.
Click any cell write this program...

a = 2
b=3
c = a+b
print(c)

To run this code, select the cell press shift + enter.  The program will run.

What is Jupyter Notebook for Python 3
Run code in Jupyter Notebook


**Note: In Jupyter there are some magic functions. Type %ls and run (shift + enter) the cell, the magic functions are coming as output.

Jupyter magic Functions 


That's the introduction of Jupyter Notebook. Stay tuned with this blog, for more Jupyter Tutorials.

0 comments:

Post a Comment