Solve the problem of running jupyter notebook on the server

Solve the problem of running jupyter notebook on the server

Today I will teach you

The server runs jupyter notebook

First, buy me a server.

To know the public IP

Virtual Environment

mkvirtualenv -p /usr/bin/python3.6 deeplearn
workon deeplearn
pip install tensorflow
pip install jupyter

Then

vim ~/.jupyter/jupyter_notebook_config.py

c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.password = 'sha1:6c132ae43f5c:4b4cf1efc42fba2c1480e3283c6bcb9769313bdb'

Then turn off the firewall

root@VM-0-5-ubuntu:~# firewall-cmd --state
running
root@VM-0-5-ubuntu:~# systemctl stop firewalld.service
root@VM-0-5-ubuntu:~# systemctl disable firewalld.service 
Synchronizing state of firewalld.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable firewalld
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Open Jupyter Notebook

insert image description here

Open the browser and run

insert image description here

You can also change the server to a local one and establish a tunnel

insert image description here

insert image description here

Open locally, no problem

insert image description here

The server is now running Jupyter. The above is the detailed content of the method to solve the problem of running jupyter notebook on the server. For more information about running jupyter notebook on the server, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Python3 jupyter notebook server setup process
  • How to remotely access the server using Jupyter notebook
  • Quickly solve the problem of Jupyter startup stuck
  • Jupyter Notebook installation, configuration and usage details

<<:  Vue implements bottom query function

>>:  Detailed explanation of various join summaries of SQL

Recommend

Basic use of subqueries in MySQL

Table of contents 1. Subquery definition 2. Subqu...

WeChat Mini Program to Implement Electronic Signature

This article shares the specific code for impleme...

Three ways to configure Nginx virtual hosts (based on domain names)

Nginx supports three ways to configure virtual ho...

Implementation of textarea adaptive height solution in Vue

Table of contents Hidden Problems Solution to ada...

Several techniques for playing sounds with CSS

CSS is the realm of style, layout, and presentati...

How to implement image mapping with CSS

1. Introduction Image maps allow you to designate...

How to get the real path of the current script in Linux

1. Get the real path of the current script: #!/bi...

Reasons and solutions for slow MySQL query stuck in sending data

Because I wrote a Python program and intensively ...

Implementation of breakpoint resume in vue-video-player

In a recent project, I needed to implement the fu...

Teach you how to make cool barcode effects

statement : This article teaches you how to imple...

Install mysql offline using rpm under centos 6.4

Use the rpm installation package to install mysql...

MySQL 5.6.33 installation and configuration tutorial under Linux

This tutorial shares the installation and configu...

Summary of constructor and super knowledge points in react components

1. Some tips on classes declared with class in re...