Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install, run and connect Jupyter Notebook

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to install, run and connect Jupyter Notebook, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.

Jupyter Notebook is an open source interactive Web application that allows you to write and run computer code in more than 40 programming languages, including Python, R, Julia, and Scala. A product from Project Jupyter, Jupyter Notebook is useful for iterative coding because it allows you to write a short piece of code, run it and return results.

Jupyter Notebook provides the ability to create notebook documents, referred to simply as "notebooks." Notebooks created from Jupyter notebooks are shareable, repeatable research documents that include rich text elements, equations, code and their output (graphs, tables, interactive diagrams). Notebooks can also be exported as original code files, HTML or PDF documents, or used to create interactive slides or web pages.

To complete this tutorial, you will need:

An instance of an Ubuntu 18.04 server. This server must have sudo privileges and be a non-root user with a firewall configured. Students who do not have a server can buy it here, but I personally recommend you to use the free Tencent Cloud developer lab to experiment and learn to install it before buying a server.

Install Python 3, pip, and Python venv modules on the server. This is done by following steps 1 and 2 in our How to Install Python 3 on Ubuntu 18.04 and Set Up a Native Programming Environment tutorial.

A modern Web browser running on your local computer that you will use to access Jupyter Notebook. In addition, if your local computer is running Windows, PuTTY needs to be installed on it to establish an SSH tunnel to the server.

Step 1-Install Jupyter Notebook

Since notebooks are used to write, run, and view the results of small code snippets, programming language support needs to be set up first. Jupyter Notebook uses a language-specific kernel, a computer program that runs introspective code. Jupyter Notebook has a kernel in many different languages, and the default is IPython.

Step 2-Run Jupyter Notebook

Jupyter Notebook must be running from your VPS so that you can connect to it from your local computer using SSH tunneling and your favorite Web browser. To run Jupyter Notebook Server, enter the following command: Jupyter Notebook.

Step 3-Connect to Jupyter Notebook Application Using SSH Tunneling

SSH tunneling is an easy and fast way to connect to Jupyter Notebook applications running on a server. A secure shell (often called SSH) is a network protocol that allows you to securely connect to remote servers over an insecure network.

Step 4-Using Jupyter Notebook

When accessed through a Web browser, Jupyter Notebook provides a Notebook Dashboard that acts as a file browser, providing you with an interface for creating, editing, and browsing notebooks. Think of these notebooks as documents (saved with the.ipynb file extension) that you can populate with any number of individual cells. Each cell contains an interactive text editor that you can use to run code or write rendered text.

After completing these steps, you should be able to write reproducible Python code and text using Jupyter Notebook running on a remote server. To quickly browse Jupyter Notebook, click Help in the top navigation bar and select User Interface Tour.

Thank you for reading this article carefully. I hope that the article "How to install, run and connect Jupyter Notebook" shared by Xiaobian will be helpful to everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report