How to: Install Jupyter Notebook 4.4.0 and Optimus on Ubuntu 18.04
What is Jupyter?
Jupyter is a browser-based interactive notebook for programming, mathematics, and data science. It supports a number of languages via plugins (“kernels”), such as Python, Ruby, Haskell, R, Scala, and Julia.
Optimus is an open source library based on PySpark to prepare, process and explore your Big Data.
Anaconda is a complete development environment with over 300 Python packages such as pywin32, numpy, scipy. A complete list of packages can be found here.
Create a New Ubuntu Server on Digitalocean
I recommend a create a droplet with at least 2GB of RAM and 2 vCPUs.
Connect to your server
You will need an SSH Client to connect to your server. You can use putty or bitvise Tunnelier on Windows, or use Terminal in Linux and MacOS
Write or copy and paste this commands lines in your console. Copy and execute one line at time.
Install Anaconda3, Optimus & Spark
Linux Anaconda Installation (Anaconda conveniently installs Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science.
- Go to: Continuum Analytics — Anaconda Downloads-
- Under Linux Anaconda Installation (copy link of 64 bit): On Terminal
- It will download Anaconda*.sh file
- Installing by using the following command:
- Space (many times) accept the license terms >> yes
- Downloads the package lists from the repositories
- Install pip3
- Install Java Runtime Enviroment
- Install Optimus & Spark
- Upgrade Notebook
- Run Jupyter Notebook
Open the Jupyter notebook
You have to point your browser to your server IP and the 8888 port. For example 111.111.111.111:8888. Then copy the token found in the console and paste it in the jupyter notebook in your browser.
Add this python scripts to your notebook and run it.
You should see something like this.
Scripts for Unattended Install
Jupyter notebook basic configuration.
Jupyter notebook as a service + basic configuration.
to check the token use systemctl status jupyter
to stop the service use systemctl stop jupyter
Now you can test Optimus. You can get the documentation here http://optimus-ironmussa.readthedocs.io/en/latest/ and go to the GitHub repo here https://github.com/ironmussa/Optimus
If you’re interested in learning more about Jupyter you can check my others posts.