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

Commonplace talk about MySQL event scheduler (must read)

Overview MySQL also has its own event scheduler, ...

Vue complete code to implement single sign-on control

Here is a Vue single sign-on demo for your refere...

JS uses map to integrate double arrays

Table of contents Preface Simulating data Merged ...

How to dynamically modify the replication filter in mysql

MySQL dynamically modify replication filters Let ...

Shell script to monitor MySQL master-slave status

Share a Shell script under Linux to monitor the m...

Linux editing start, stop and restart springboot jar package script example

Preface In the springboot configuration file, the...

Introduction to vim plugin installation under Linux system

Table of contents Install vim plugin manager Add ...

Steps to configure IIS10 under Win10 and support debugging ASP programs

Microsoft IIS IIS (Internet Information Server) i...

Example analysis of mysql user rights management

This article describes the MySQL user rights mana...

Vue close browser logout implementation example

Table of contents 1. beforeunload event 2. Unload...

How to use React forwardRef and what to note

Previously, react.forwardRef could not be applied...