Skip to main content

Command Palette

Search for a command to run...

Set up Jupyter Notebook within an isolated Python environment

Updated
2 min read
Set up Jupyter Notebook within an isolated Python environment
V

Highly skilled Data Test Automation professional with over 10 years of experience in data quality assurance and software testing. Proven ability to design, execute, and automate testing across the entire SDLC (Software Development Life Cycle) utilizing Agile and Waterfall methodologies. Expertise in End-to-End DWBI project testing and experience working in GCP, AWS, and Azure cloud environments. Proficient in SQL and Python scripting for data test automation.

Jupyter Notebook is a web-based interactive computing platform. It's a popular tool especially in data science and scientific computing because it allows you to combine several elements in one place:

  • Live Code: You can write code in various programming languages, most commonly Python, and execute it directly within the Notebook. This lets you see the results immediately and experiment interactively.

  • Equations and Text: You can include mathematical equations and narrative text alongside your code. This makes your notebooks well-documented and easier to understand, both for yourself and others.

  • Visualizations: The results of your code can be visualized using charts, graphs, and other plots. This helps you interpret and explore your data effectively.

  • Interactive Elements: Jupyter Notebooks also support interactive widgets and dashboards. These allow you to create dynamic interfaces for exploring your data or controlling your code execution.

Hands-on Practice:

  • Confirm pip3 and python3 are correctly installed.

python3 --version pip3 --version

  • Install Python virtual environment

pip3 install virtualenv

  • Create a Virtual environment and activate it.

virtualenv mytestvenv

source mytestvenv/bin/activate

  • Install Jupyter notebook

pip install jupyter

  • Start Jupyter notebook

jupyter notebook

Jupyter notebook will get opened in your configured default browser

  • Deactivate virtual environment

\>Shoutdown Jupyter notebook

File -> Shout Down

\>Deactivate virtual environment

deactivate