Difference between revisions of "JupyterNotebook Guide"

From DISI
Jump to: navigation, search
(Created page with "Here is the guide for installing and running JupyterNotebook from your Centos local computer. ==Install PupyterNotebook== There are 2 ways to install: Python virtualenv or Con...")
 
 
(7 intermediate revisions by one user not shown)
Line 3: Line 3:
 
There are 2 ways to install: Python virtualenv or Conda Environment. Below is for Python venv:
 
There are 2 ways to install: Python virtualenv or Conda Environment. Below is for Python venv:
  
# Create a python virtualenv
+
1. Create a python virtualenv
 
  $ cd <your_project>
 
  $ cd <your_project>
 
  $ virtualenv <name_of_venv> // for Python2.6+
 
  $ virtualenv <name_of_venv> // for Python2.6+
Line 14: Line 14:
 
  $ deactivate
 
  $ deactivate
  
# Install JupyterNotebook and others important pacakages inside the activated virtualenv
+
2. Install JupyterNotebook and others important pacakages inside the activated virtualenv
 
  (venv) $ pip install --upgrade pip setuptools
 
  (venv) $ pip install --upgrade pip setuptools
 
  (venv) $ pip install jupyter
 
  (venv) $ pip install jupyter
Line 22: Line 22:
 
  (venv) $ pip install matplotlib
 
  (venv) $ pip install matplotlib
 
  (venv) $ pip install numpy
 
  (venv) $ pip install numpy
+
 
# Start the application
+
== Using JupyterNotebook ==
 +
* Start the application
 
  (venv) $ jupyter notebook
 
  (venv) $ jupyter notebook
 
  It initializes JupyterNotebook to run on localhost:8888
 
  It initializes JupyterNotebook to run on localhost:8888
 
  The Quanta interface will open up. Copy the http link into your browser.
 
  The Quanta interface will open up. Copy the http link into your browser.
# Tutorial
+
* Tutorial
  
 
Below is the tutorial that I find very useful for getting started
 
Below is the tutorial that I find very useful for getting started
 
  https://www.dataquest.io/blog/jupyter-notebook-tutorial/
 
  https://www.dataquest.io/blog/jupyter-notebook-tutorial/
 +
 +
[[ Category:Khanh ]]

Latest revision as of 11:06, 10 October 2019

Here is the guide for installing and running JupyterNotebook from your Centos local computer.

Install PupyterNotebook

There are 2 ways to install: Python virtualenv or Conda Environment. Below is for Python venv:

1. Create a python virtualenv

$ cd <your_project>
$ virtualenv <name_of_venv> // for Python2.6+
$ python3.7 -m venv <name_of_venv> // for Python3+
To activate the virtualenv
$ source <name_of_venv>/bin/activate

To deactivate:
$ deactivate

2. Install JupyterNotebook and others important pacakages inside the activated virtualenv

(venv) $ pip install --upgrade pip setuptools
(venv) $ pip install jupyter
Common data analysis python packages:
(venv) $ pip install pandas 
(venv) $ pip install matplotlib
(venv) $ pip install numpy

Using JupyterNotebook

  • Start the application
(venv) $ jupyter notebook
It initializes JupyterNotebook to run on localhost:8888
The Quanta interface will open up. Copy the http link into your browser.
  • Tutorial

Below is the tutorial that I find very useful for getting started

https://www.dataquest.io/blog/jupyter-notebook-tutorial/