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

HTML pop-up div is very useful to realize mobile centering

Copy code The code is as follows: <!DOCTYPE ht...

Example of how to set up a multi-column equal height layout with CSS

Initially, multiple columns have different conten...

Understanding the MySQL query optimization process

Table of contents Parsers and preprocessors Query...

MySQL DATE_ADD and ADDDATE functions add a specified time interval to a date

MySQL DATE_ADD(date,INTERVAL expr type) and ADDDA...

1 minute Vue implements right-click menu

Table of contents Rendering Install Code Implemen...

Solution to CSS flex-basis text overflow problem

The insignificant flex-basis has caused a lot of ...

A brief analysis of the knowledge points of exporting and importing MySQL data

Often, we may need to export local database data ...

MySQL InnoDB transaction lock source code analysis

Table of contents 1. Lock and Latch 2. Repeatable...

Idea configures tomcat to start a web project graphic tutorial

Configure tomcat 1. Click run configuration 2. Se...

Detailed introduction to linux host name configuration

Table of contents 1. Configure Linux hostname Con...

Share 9 Linux Shell Scripting Tips for Practice and Interviews

Precautions 1) Add interpreter at the beginning: ...

A brief summary of basic web page performance optimization rules

Some optimization rules for browser web pages Pag...

Linux MySQL root password forgotten solution

When using the MySQL database, if you have not lo...