How To Get Jupyter Python Notebook On Azure

How To Get Jupyter Python Notebook On Azure

How To Get Jupyter Python Notebook On Azure

Introduction

Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and explanatory text. It provides an interactive computing environment that supports multiple programming languages, including Python, R, Julia, and more.

Jupyter Notebook is based on IPython, which is an enhanced interactive Python shell. The name “Jupyter” is derived from the combination of three core programming languages supported by the notebook: Julia, Python, and R.

The main feature of Jupyter Notebook is the ability to create and run code cells interactively. Each code cell can contain code snippets that can be executed individually, allowing you to see the output or results directly below the code cell. This interactivity makes it convenient for prototyping, data exploration, and data analysis tasks.

In this article, we will introduce three topics

  • What is Jupyter Notebook & its key features — Jupyter Notebook is an open-source web app for creating and sharing documents with live code, visualizations, and text. It provides an interactive environment for data analysis, prototyping, and collaboration, supporting various programming languages and enabling easy sharing with others.

  • Jupyter Python Notebook — All things about Jupyter Python Notebook which is provided by Techlatest.net on Azure.

  • Step by Step guide  Guide on how to set up Jupyter Python Notebook On Azure.

Key features of Python Jupyter Notebook include:

1. Interactive Computing: Jupyter Notebook allows you to write and execute code cells interactively. You can run code snippets line by line or execute an entire cell at once. This interactive environment is ideal for exploratory data analysis, prototyping, and experimenting with code.

2. Multiple Programming Languages: Jupyter Notebook supports multiple programming languages, including Python, R, Julia, and others. This flexibility allows you to work with different languages within the same notebook and leverage the strengths of each language for various tasks.

3. Rich Output: Jupyter Notebook provides rich output capabilities, allowing you to display text, images, plots, charts, and interactive visualizations directly in the notebook. You can visualize data, create informative graphs, and generate interactive widgets to enhance your analysis and presentations.

4. Markdown Support: Jupyter Notebook supports Markdown cells, which allow you to write formatted text using Markdown syntax. Markdown cells enable you to provide documentation, explanations, or narrative context for your code, making it easier to communicate and share your work.

5. Code Execution: Jupyter Notebook enables you to execute code cells and see the output or results immediately below each cell. This feature helps you understand the impact of each code snippet, check for errors, and iterate on your code in an incremental and interactive manner.

6. Code Snippet Reusability: Jupyter Notebook allows you to define and execute code snippets in any order, making it easy to reuse and modify specific parts of your code. You can also define variables or functions in one cell and use them in subsequent cells, promoting code modularity and reusability.

7. Collaboration and Sharing: Jupyter Notebook files can be easily shared with others. You can share your notebooks as standalone files or publish them online, making it convenient for collaboration and reproducibility. Notebooks can be exported to various formats, such as HTML, PDF, or Python scripts, allowing others to view and run your code without requiring Jupyter Notebook.

8. Extensions and Customization: Jupyter Notebook supports extensions that enhance its functionality and provide additional features. These extensions enable you to customize the notebook environment, add new capabilities, and integrate with external tools and libraries.

9. Integration with Data Science Libraries: Jupyter Notebook integrates well with popular data science libraries and frameworks, such as NumPy, Pandas, matplotlib, and sci-kit-learn. You can import these libraries and use them directly in your notebook, leveraging their powerful data manipulation, analysis, and visualization capabilities.

10. Reproducible Research: Jupyter Notebook promotes reproducibility in research and data analysis. Combining code, documentation, and results in a single document, allows others to understand and replicate your work easily. Notebooks can serve as a comprehensive record of your analysis process, making it easier to track and reproduce your findings.

These key features make Python Jupyter Notebook a versatile tool for interactive computing, data exploration, collaboration, and sharing of code and results.

Jupyter Python Notebook by Techlatest

  • Jupyter Notebook preinstalled for immediate use.

  • Accessible from anywhere and anytime through JupyterHub.

  • Multiple users can collaborate simultaneously.

  • Popular Python libraries and working demos for AI and Machine Learning are included.

  • The graphical user interface for easy access to VM and management of files and Jupyter environment.

Step by Step Guide to Install, setup Jupyter Python Notebook On Azure

Note: If you are setting up Jupyter Notebook to train and/or run AI & Machine Learning models, you will have to choose GPU based VM to meet the computing requirements. Choosing a CPU-based VM will result in performance bottlenecks.

  • Step 1

Open Jupyter Python Notebook VM listing on Azure Marketplace.

  • Step 2

Click on Get It Now Button.

Select a Resource group for your virtual machine.

Select a Region where you want to launch the VM(such as East US).

Optionally change the number of cores and amount of memory.

Select the Authentication type as Password and enter Username as ubuntu and the Password of your choice.

Optionally change the OS disk type.

Optionally change the network and subnetwork names. Be sure that whichever network you specify has ports 22 (for SSH), 3389 (for RDP) and 80 (for HTTP) exposed.

Optionally go to the Management, Advanced and Tags tabs for any advanced settings you want for the VM.

Click on Review + Create and then click on Create when you are done.
Virtual Machine will begin deploying.

  • Step 3

A summary page displays when the virtual machine is successfully created. Click on Go to resource link to go to the resource page. It will open an overview page of the virtual machine.

  • Step 4

In the left navigation panel, select Run command, select RunShellScript and enter the following command to change the password of the VM.

sudo echo ubuntu:yourpassword | chpasswd

  • Step 5

Now the password for the Ubuntu user is set, you can connect to the VM’s desktop environment from any local Windows machine using RDP protocol or a local Linux machine using Remmina.

  • Step 6

To connect using RDP via Windows Machine, first note the public IP address of the VM from the VM details page as highlighted below.

  • Step 7

Then From your local windows machine, go to the “start” menu, in the search box type and select “Remote desktop connection”.
In the “Remote Desktop Connection” wizard, copy the public IP address and click on the connect Button.

  • Step 8

This will connect you to the VM’s desktop environment. Provide the username (e.g. “ubuntu”) and the password set in step4 to authenticate. Click on the OK Button.

  • Step 9

Now you are connected to the out-of-box Jupyter Python Notebook environment via Windows Machine.

  • Step 10

You can use the remote desktop you connected in the above step for using the VM, however, a more convenient and better method is to use the Jupyter/Ipython notebook which comes with the VM.

The Notebook is available on the same public IP you used for the remote desktop and accessible via any browser. Just open the browser and type the public IP address and you will get the below screen for login. Use “ubuntu” as the username and the password you set in Step 8 to log in.

Note: Make sure you use “http” and not “https” in the URL.

Conclusion

To summarize, Jupyter Notebook is an interactive computing environment that supports multiple programming languages and provides rich output capabilities for data exploration, analysis, and collaboration. It allows you to create and share documents that contain live code, visualizations, and explanatory text, making it an indispensable tool for developers, researchers, and data scientists.

Setting up Jupyter Python Notebook on Azure involves a few simple steps, including launching the VM listing, selecting a resource group and region, and setting up authentication. The Jupyter Notebook can be accessed via a remote desktop or any browser, using a public IP address. The key features of the Jupyter Notebook, outlined in this article, make it a powerful tool for interactive computing, reproducible research, and data analysis.