• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Sunday, May 25, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System CentOS

How to Install Jupyter Notebook on a Vultr CentOS 7 Server Instance

How VPS by How VPS
October 1, 2019
in CentOS
0
0
SHARES
22
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Using a Different System?
  2. Prerequisites
  3. Step 1: Update the system and install dependencies
  4. Step 2: Install Jupyter Notebook using Anaconda
  5. Step 3: Configure Jupyter Notebook
  6. Want to contribute?

Using a Different System?

  • How to Install Jupyter Notebook on a Vultr Ubuntu 16.04 Server Instance

Are we missing a guide for your target system? Request one, or submit your own!


Jupyter Notebook, derived from IPython, is a widely used, interactive data science web application which can be used to create and share scientific computing-related documents.

This article will show you how to install Jupyter Notebook on a Vultr CentOS 7 server instance for remote access.

Prerequisites

Before getting started, you need to:

  • Deploy a fresh Vultr CentOS 7 server instance;
  • Log in from an SSH terminal as a non-root sudo user, and let’s say the username is “juser”. You can learn more about how to create such a sudo user in this Vultr article.

Step 1: Update the system and install dependencies

Use the following commands to update the system and install necessary packages for Jupyter Notebook.

sudo yum update -y
sudo yum install bzip2 -y
sudo shutdown -r now

After the reboot, use the same username and password to log into the system.

Step 2: Install Jupyter Notebook using Anaconda

Anaconda is an open data science platform consisting of many analytics applications, including Jupyter Notebook. By installing Anaconda, you will have installed Jupyter Notebook and many similar applications onto your system.

Download the appropriate version of Anaconda from the official Anaconda website to install it:

cd ~
wget http://repo.continuum.io/archive/Anaconda3-4.1.1-Linux-x86_64.sh
sudo bash Anaconda3-4.1.1-Linux-x86_64.sh

At the beginning the installation, continuously press ENTER until you are presented with question below:

Do you approve the license terms? [yes|no]

Answer yes, and then press ENTER:

>>> yes

Then you will be asked to confirm the installing location:

Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

You can specify the installing location /opt/anaconda3:

[/root/anaconda3] >>> /opt/anaconda3

When presented with the following question, press ENTER to finish the installation:

Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /root/.bashrc ? [yes|no]

[no] >>> ENTER

Instead of modifying the per-user configuration file “/root/.bashrc”, you can perform a system-wide setup modification for all users:

sudo cp /etc/profile /etc/profile_backup
echo 'export PATH=/opt/anaconda3/bin:$PATH' | sudo tee -a /etc/profile
source /etc/profile
echo $PATH

Step 3: Configure Jupyter Notebook

Now that Jupyter Notebook has been installed onto your system, you will need to configure it before you can access it remotely.

Generate a configuration file:

cd ~
jupyter notebook --generate-config

This command will create a default Jupyter Notebook configuration file: /home/juser/.jupyter/jupyter_notebook_config.py.

For security purposes, use the following commands to setup a password for your Jupyter Notebook server:

python
>>> from notebook.auth import passwd
>>> passwd()
Enter password:<your-password>
Verify password:<your-password>
'sha1:<your-sha1-hash-value>'
>>> Ctrl+Z

Save the SHA1 hash value for later use, which will look like: sha1:49acd1a985cc:beb1fb6859665bfa721e65e78fc511c41b12e7ce.

Create a self-signed certificate and the matched key:

cd ~
openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout jkey.key -out jcert.pem

The above command will generate a certificate file /home/juser/jcert.pem and the matched key file /home/juser/jkey.key.

Open the default configuration file using the vi editor:

vi /home/juser/.jupyter/jupyter_notebook_config.py

Find each line below respectively:

# c.NotebookApp.certfile = ''
# c.NotebookApp.keyfile = ''
# c.NotebookApp.ip = 'localhost'
# c.NotebookApp.open_browser = True
# c.NotebookApp.password = ''
# c.NotebookApp.port = 8888

Modify each of them as below:

c.NotebookApp.certfile = '/home/juser/jcert.pem'
# for users with root you can use './jcert.pem'
c.NotebookApp.keyfile = '/home/juser/jkey.key'
# for users with root you can use './jkey.key'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = 'sha1:<your-sha1-hash-value>'
c.NotebookApp.port = 8888

Save and quit:

:wq!

Modify firewall rules in order to allow inbound traffic on port 8888:

sudo firewall-cmd --zone=public --add-port=8888/tcp --permanent
sudo systemctl restart firewalld.service

Start the Jupyter Notebook server:

jupyter notebook

Finally, visit “https://<your-server-IP>:8888” from your browser, ignore the security warning, and use the password you set earlier to log in.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

Boost Productivity with Tmux on Ubuntu and CentOS

Next Post

How to Install Review Board on CentOS 7

Next Post

How to Install Review Board on CentOS 7

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet