0
0
Data Analysis Pythondata~10 mins

Jupyter Notebook setup and usage in Data Analysis Python - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Jupyter Notebook setup and usage
Install Jupyter
Launch Notebook Server
Open Browser Interface
Create or Open Notebook
Write Code or Text Cells
Run Cells
View Output Below Cells
Save Notebook
Shutdown Server When Done
This flow shows how you install, launch, write, run, and save work in Jupyter Notebook step-by-step.
Execution Sample
Data Analysis Python
import numpy as np
x = np.array([1, 2, 3])
print(x)
This code creates a small array and prints it in a notebook cell.
Execution Table
StepActionCode ExecutedOutputNotes
1Import numpy libraryimport numpy as npNumpy is ready to use
2Create array xx = np.array([1, 2, 3])Array x stores [1, 2, 3]
3Print array xprint(x)[1 2 3]Output shown below the cell
4Save notebookSave commandNotebook file saved on disk
5Shutdown serverShutdown commandStops notebook server safely
💡 Execution stops after all cells run and server is shut down
Variable Tracker
VariableStartAfter Step 2After Step 3Final
npNot definedNumpy moduleNumpy moduleNumpy module
xNot defined[1 2 3][1 2 3][1 2 3]
Key Moments - 3 Insights
Why do I see output below the cell after running print(x)?
When you run a cell with print(), Jupyter shows the output right below that cell as shown in execution_table step 3.
What happens if I close the browser but don’t shut down the server?
The notebook server keeps running in the background, so your code and variables stay active until you shut it down (see step 5).
How do I save my work so I don’t lose it?
Use the save command (step 4) or the disk icon in the interface to save your notebook file on disk.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what is the output after running print(x)?
A[1 2 3]
Bx = [1, 2, 3]
CError
DNo output
💡 Hint
Check the Output column in row 3 of the execution_table
At which step is the numpy library imported and ready to use?
AStep 3
BStep 2
CStep 1
DStep 4
💡 Hint
Look at the Action and Code Executed columns in the execution_table
If you forget to shut down the server, what happens according to the key moments?
AThe notebook file is deleted
BThe server keeps running in the background
CThe output disappears
DThe code stops running immediately
💡 Hint
Refer to the second key moment about closing the browser without shutting down
Concept Snapshot
Jupyter Notebook lets you write and run code in cells.
Install it with pip, then launch with 'jupyter notebook'.
Write code or text in cells, run cells to see output below.
Save your work often and shut down the server when done.
Outputs appear immediately after running each cell.
Full Transcript
Jupyter Notebook is a tool to write and run code interactively. First, you install it using pip. Then you launch the notebook server, which opens a browser interface. You create or open notebooks, which have cells for code or text. When you run a code cell, the output appears right below it. You can save your notebook anytime to keep your work. When finished, you shut down the server to stop running code and free resources. This step-by-step process helps beginners see how code runs and outputs appear in real time.