Tuesday, October 15, 2019

Golang - Install Gonum

Install gonum plotting library in ubuntu:

$ go get -v gonum.org/v1/plot/...
Fetching https://gonum.org/v1/plot?go-get=1
Parsing meta tags from https://gonum.org/v1/plot?go-get=1 (status code 404)
get "gonum.org/v1/plot": found meta tag get.metaImport{Prefix:"gonum.org/v1/plot", VCS:"git", RepoRoot:"https://github.com/gonum/plot"} at https://gonum.org/v1/plot?go-get=1
gonum.org/v1/plot (download)
github.com/golang/freetype (download)
Fetching https://golang.org/x/image/math/fixed?go-get=1
Parsing meta tags from https://golang.org/x/image/math/fixed?go-get=1 (status code 200)
get "golang.org/x/image/math/fixed": found meta tag get.metaImport{Prefix:"golang.org/x/image", VCS:"git", RepoRoot:"https://go.googlesource.com/image"} at https://golang.org/x/image/math/fixed?go-get=1
get "golang.org/x/image/math/fixed": verifying non-authoritative meta tag
Fetching https://golang.org/x/image?go-get=1
Parsing meta tags from https://golang.org/x/image?go-get=1 (status code 200)
golang.org/x/image (download)
Fetching https://golang.org/x/image/font?go-get=1
Parsing meta tags from https://golang.org/x/image/font?go-get=1 (status code 200)
get "golang.org/x/image/font": found meta tag get.metaImport{Prefix:"golang.org/x/image", VCS:"git", RepoRoot:"https://go.googlesource.com/image"} at https://golang.org/x/image/font?go-get=1
get "golang.org/x/image/font": verifying non-authoritative meta tag
github.com/fogleman/gg (download)
Fetching https://golang.org/x/image/tiff?go-get=1
Parsing meta tags from https://golang.org/x/image/tiff?go-get=1 (status code 200)
get "golang.org/x/image/tiff": found meta tag get.metaImport{Prefix:"golang.org/x/image", VCS:"git", RepoRoot:"https://go.googlesource.com/image"} at https://golang.org/x/image/tiff?go-get=1
get "golang.org/x/image/tiff": verifying non-authoritative meta tag
github.com/ajstarks/svgo (download)
Fetching https://rsc.io/pdf?go-get=1
Parsing meta tags from https://rsc.io/pdf?go-get=1 (status code 200)
get "rsc.io/pdf": found meta tag get.metaImport{Prefix:"rsc.io/pdf", VCS:"git", RepoRoot:"https://github.com/rsc/pdf"} at https://rsc.io/pdf?go-get=1
rsc.io/pdf (download)
golang.org/x/image/math/f64
gonum.org/v1/plot/palette
golang.org/x/image/math/fixed
golang.org/x/image/tiff/lzw
github.com/ajstarks/svgo
gonum.org/v1/plot/vg/fonts
github.com/golang/freetype/raster
golang.org/x/image/font
golang.org/x/image/draw
golang.org/x/image/font/basicfont
golang.org/x/image/ccitt
github.com/golang/freetype/truetype
rsc.io/pdf
gonum.org/v1/plot/palette/brewer
golang.org/x/image/tiff
gonum.org/v1/plot/palette/moreland
gonum.org/v1/plot/vg
gonum.org/v1/plot/cmpimg
github.com/fogleman/gg
gonum.org/v1/plot/vg/vgeps
gonum.org/v1/plot/vg/vgsvg
gonum.org/v1/plot/vg/vgpdf
gonum.org/v1/plot/vg/recorder
gonum.org/v1/plot/tools/bezier
gonum.org/v1/plot/vg/vgtex
gonum.org/v1/plot/vg/vgimg
gonum.org/v1/plot/vg/draw
gonum.org/v1/plot
gonum.org/v1/plot/plotter
gonum.org/v1/plot/gob
gonum.org/v1/plot/plotutil
$

References:

Wednesday, October 9, 2019

angular - install angular cli on ubunut using npm


Installing angular cli on ubuntu using npm

~$ npm install -g @angular/cli
/home/ubuntu/.nvm/versions/node/v10.16.3/bin/ng -> /home/ubuntu/.nvm/versions/node/v10.16.3/lib/node_modules/@angular/cli/bin/ng

> @angular/cli@8.3.8 postinstall /home/ubuntu/.nvm/versions/node/v10.16.3/lib/node_modules/@angular/cli
> node ./bin/postinstall/script.js

? Would you like to share anonymous usage data with the Angular Team at Google under
Google’s Privacy Policy at https://policies.google.com/privacy? For more details and
how to change this setting, see http://angular.io/analytics. Yes

Thank you for sharing anonymous usage data. If you change your mind, the following
command will disable this feature entirely:

    ng analytics off

+ @angular/cli@8.3.8
added 244 packages from 185 contributors in 1178.698s
~$ 



Thursday, September 26, 2019

Node.js - npm - semantic versioning

Node.js developers follow the semantic versioning spec. Here is the small excerpt summary from the website:

Given a version number MAJOR.MINOR.PATCH, increment the:
  1. MAJOR version when you make incompatible API changes,
  2. MINOR version when you add functionality in a backwards compatible manner, and
  3. PATCH version when you make backwards compatible bug fixes.


Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.



References:
  1. https://docs.npmjs.com/about-semantic-versioning
  2. https://semver.org/



Node.js - npm - simple commands



To list all npm packages installed.

~$ npm ls
ubuntu@1.0.0 /home/ubuntu
`-- underscore@1.9.1

To remove locally installed npm package
~$ npm rm underscore --save
npm WARN ubuntu@1.0.0 No description
npm WARN ubuntu@1.0.0 No repository field.

removed 1 package in 1.363s
found 0 vulnerabilities

Listing the packages installed using npm.
~$ npm ls
ubuntu@1.0.0 /home/ubuntu
`-- (empty)

Installing the removed package locally again.
~$ npm install underscore --save
npm WARN ubuntu@1.0.0 No description
npm WARN ubuntu@1.0.0 No repository field.

+ underscore@1.9.1
added 1 package from 1 contributor and audited 1 package in 0.697s
found 0 vulnerabilities

Listing the packages installed using npm.
~$ npm ls
ubuntu@1.0.0 /home/ubuntu
`-- underscore@1.9.1

~$ 




Tuesday, September 24, 2019

Node.js - install npm package - underscore

Let us install a module, underscore: https://www.npmjs.com/package/underscore to a folder.

Step 1: Install the npm module:

~$ npm install underscore
npm WARN saveError ENOENT: no such file or directory, open '/home/ubuntu/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/ubuntu/package.json'
npm WARN ubuntu No description
npm WARN ubuntu No repository field.
npm WARN ubuntu No README data
npm WARN ubuntu No license field.

+ underscore@1.9.1
added 1 package from 1 contributor and audited 1 package in 0.585s
found 0 vulnerabilities

~$

This has installed the latest version of underscore from npmjs.org. This module is available under node_modules folder.

Let us verify the installation at location:
~$ cd node_modules
~/node_modules$ ls -l
total 4
drwxr-xr-x 2 ubuntu ubuntu 4096 Sep 24 10:56 underscore
~/node_modules$ 

To use this module. Let us open the node REPL and type the following commands:

~/node_modules$ node
> var _ = require("underscore");
Expression assignment to _ now disabled.
undefined
> console.log(_.max([10,20,30,40]))
40
undefined



If you notice, at the time of installation of underscore - it has given us an error that package.json is not found. To solve this problem, let us setup package.json. We set it up using: npm init 


~$ npm init

This utility will walk you through creating a package.json file.

It only covers the most common items, and tries to guess sensible defaults.



See `npm help json` for definitive documentation on these fields

and exactly what they do.



Use `npm install <pkg>` afterwards to install a package and

save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (ubuntu) 
version: (1.0.0) 
description: 
entry point: (index.js) 
test command: 
git repository: 
keywords: 
author: 
license: (ISC) 
About to write to /home/mhc/package.json:

{
  "name": "ubuntu",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "dependencies": {},
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}


Is this OK? (yes) 
~$

Now, Let us reinstall underscore so that we can examine the contents of package.json:

Step: Clear contents of node_modules folder:

~$ cd node_modules/
~/node_modules$ ls -l
total 4
drwxr-xr-x 2 ubuntu ubuntu 4096 Sep 24 11:19 underscore

~/node_modules$ rm -rf *

Step: Install underscore:


~$ npm install underscore

npm WARN mhc@1.0.0 No description

npm WARN mhc@1.0.0 No repository field.



+ underscore@1.9.1

added 1 package from 1 contributor and audited 1 package in 0.537s

found 0 vulnerabilities


~$

Step: Examine package.json:

~$ more package.json
{
  "name": "ubuntu",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "dependencies": {
    "underscore": "^1.9.1"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

~$ 


Whenever we run npm install , we can use the optional command line argument ( --save ). This will tell npm to store the information of what we installed into package.json file. 


Now, if we perform the same steps using the --save option:

~$ npm install underscore --save
npm WARN mhc@1.0.0 No description
npm WARN mhc@1.0.0 No repository field.

+ underscore@1.9.1
added 1 package from 1 contributor and audited 1 package in 0.596s
found 0 vulnerabilities

~$ more package.json
{
  "name": "ubuntu",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "dependencies": {
    "underscore": "^1.9.1"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

~$ 

Advantages of tracking dependencies this way:
  1. Simply by looking at package.json - we can know which published version of particular library we depend upon.
  2. When we are browsing through the source code of modules developed by others. We can come to know what they are depending upon.
  3. We can refresh the node_modules folder.

Clearing the stuff in node_modules folder and then recreating it:

~$ cd node_modules
~/node_modules$ ls -l
total 4
drwxr-xr-x 2 ubuntu ubuntu 4096 Sep 24 12:03 underscore
~/node_modules$ rm -rf *
~/node_modules$ cd ..
~$ npm install
npm WARN ubuntu@1.0.0 No description
npm WARN ubuntu@1.0.0 No repository field.

added 1 package from 1 contributor and audited 1 package in 0.473s
found 0 vulnerabilities

~$ cd node_modules/
~/node_modules$ ls -l
total 4
drwxr-xr-x 2 ubuntu ubuntu 4096 Sep 24 12:09 underscore
~/node_modules$ 

Having package.json file is a big advantage as we can ship the source code containing package.json without the contents in the node modules. At the client place, we can use npm install to setup the dependencies.



JavaScript - Uninstall and re-Install nodejs and npm in Ubuntu 18.04

Since, I wanted to uninstall and re-install the latest stable version of nodejs. 

Step 1: Remove all node versions and nvm

# Remove nvm
sudo rm -rf ~/.nvm
hash -r

# Remove latest node version
sudo npm uninstall -g n

# Remove n
cd ~/src/n && sudo make uninstall && cd .. && sudo rm -r n

# Remove latest nodejs version
sudo apt-get purge -y nodejs npm

# Remove nodejs-legacy version
sudo apt-get purge -y nodejs-legacy npm

sudo apt -y autoremove

# Remove nodejs files
sudo rm -rf /usr/local/lib/node_modules/npm
sudo rm -rf /usr/local/lib/node_modules/n
sudo rm -f /usr/local/bin/node
sudo rm -f /usr/local/bin/npm
sudo rm -f /usr/bin/node
sudo rm -rf /usr/local/n/versions/node


Let us install using NVM. (Node Version Manager)

Step 2: Download the shell script to install nvm:
$ curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh

Step 3: Install NVM - using shell script:
$ bash install_nvm.sh
You have $NVM_DIR set to "/home/ubuntu/.nvm", but that directory does not exist. Check your profile files and environment.

Since, it couldn't find the .nvm directory as it got removed during the uninstallation process. Hence, we will manually re-create it.

Step 4: Make directory .nvm: 
$ mkdir .nvm

Hence, Rerunning command in Step 3: 
$ bash install_nvm.sh
=> Downloading nvm from git to '/home/ubuntu/.nvm'
=> Cloning into '/home/ubuntu/.nvm'...
remote: Enumerating objects: 267, done.
remote: Counting objects: 100% (267/267), done.
remote: Compressing objects: 100% (242/242), done.
remote: Total 267 (delta 31), reused 80 (delta 15), pack-reused 0
Receiving objects: 100% (267/267), 119.47 KiB | 344.00 KiB/s, done.
Resolving deltas: 100% (31/31), done.
=> Compressing and cleaning up git repository

=> nvm source string already in /home/ubuntu/.bashrc
=> bash_completion source string already in /home/ubuntu/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
$

Step5 : List down the LTS releases:

$ nvm ls-remote | grep "Latest LTS"
         v4.9.1   (Latest LTS: Argon)
        v6.17.1   (Latest LTS: Boron)
        v8.16.1   (Latest LTS: Carbon)
->     v10.16.3   (Latest LTS: Dubnium)


Step 6: Now let us install Node.js:

$ nvm install 10.16.3
Downloading and installing node v10.16.3...
Downloading https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz...
####################################################################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v10.16.3 (npm v6.9.0)
Creating default alias: default -> 10.16.3 (-> v10.16.3)

Step 7: Check the Node and NPM Versions:

$ node --version
v10.16.3

$ npm --version
6.9.0



References:


Tuesday, September 3, 2019

Hyderabad - Visit - 002 - KIMS Hospital


Leg 1: Neredmet to Mettuguda




Leg 2: Mettuguda to KIMS



Leg 3: KIMS to Hitech City



Leg 4: Hitech City to Nallagandla







Tuesday, August 27, 2019

Docker Compose - Install in Ubuntu

To install Docker, please refer to the previous blogpost:
https://sashankexpresstech.blogspot.com/2019/08/docker-install-on-ubuntu.html

Installing Docker Compose in Ubuntu Linux:


Step 1: Download Docker Compose from GitHub repository:
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Step 2:  Provide the execute permission:
sudo chmod +x /usr/local/bin/docker-compose

Step 3: Create a shortcut:
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose


Check the Installation:

$ docker-compose -version
docker-compose version 1.24.1, build 4667896b



Tuesday, August 20, 2019

Docker - Install on Ubuntu


Repositories of Docker for Ubuntu Bionic are available at:
https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/


In order to install docker community edition on Ubuntu Bionic - I used the following steps:

  • wget -c https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/containerd.io_1.2.6-3_amd64.deb
  • wget -c https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce-cli_19.03.1~3-0~ubuntu-bionic_amd64.deb
  • wget -c https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_19.03.1~3-0~ubuntu-bionic_amd64.deb





  • sudo dpkg -i containerd.io_1.2.6-3_amd64.deb
  • sudo dpkg -i docker-ce-cli_19.03.1~3-0~ubuntu-bionic_amd64.deb
  • sudo dpkg -i docker-ce_19.03.1~3-0~ubuntu-bionic_amd64.deb




References:
https://docs.docker.com/install/linux/docker-ce/ubuntu/

Wednesday, August 7, 2019

Python3 - Ubuntu - Apache - Access Anaconda python library from apache

The apache server has its own path. To make change to the PATH variable, we need to change in the file: /etc/apache2/envvars

$ sudo vi /etc/apache2/envvars


At the end of this file. I added the path of anaconda3 library:

export PATH=/opt/anaconda3/bin:$PATH


Created a small test script to confirm if the path is correct:

$ more test1.php
<?php
$output = shell_exec('echo $PATH');
echo "<pre>$output</pre>";
?>



This gives the following output:

/opt/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


Hence, we can ensure that our apache2 user is able to access anaconda library of python.

Reference:


Monday, July 29, 2019

Python - Opening Ipython Notebooks in Ubuntu

To be able to open Ipython Notebooks. We must install 2 modules using pip3.

  1. ipython
  2. notebook


Summary Installation Commands:

$ pip3 install ipython
$ pip3 install notebook

Once we install these modules, we can open an ipython notebook using the command:

$ ipython notebook MyNotebook-01.ipynb



Detailed Installation Commands:

Step 1: Install ipython

$ pip3 install ipython
Collecting ipython
  Downloading https://files.pythonhosted.org/packages/f6/c4/a79582814bdfe92bfca4d286a729304ffdf13f5135132cfcaea13cf1b2b3/ipython-7.7.0-py3-none-any.whl (774kB)
    100% |████████████████████████████████| 778kB 1.6MB/s 
Collecting pickleshare (from ipython)
  Downloading https://files.pythonhosted.org/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl
Collecting pexpect; sys_platform != "win32" (from ipython)
  Downloading https://files.pythonhosted.org/packages/0e/3e/377007e3f36ec42f1b84ec322ee12141a9e10d808312e5738f52f80a232c/pexpect-4.7.0-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 6.1MB/s 
Collecting setuptools>=18.5 (from ipython)
  Using cached https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl
Collecting pygments (from ipython)
  Downloading https://files.pythonhosted.org/packages/5c/73/1dfa428150e3ccb0fa3e68db406e5be48698f2a979ccbcec795f28f44048/Pygments-2.4.2-py2.py3-none-any.whl (883kB)
    100% |████████████████████████████████| 890kB 1.4MB/s 
Collecting backcall (from ipython)
  Downloading https://files.pythonhosted.org/packages/84/71/c8ca4f5bb1e08401b916c68003acf0a0655df935d74d93bf3f3364b310e0/backcall-0.1.0.tar.gz
Collecting decorator (from ipython)
  Downloading https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl
Collecting traitlets>=4.2 (from ipython)
  Downloading https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl (74kB)
    100% |████████████████████████████████| 81kB 7.1MB/s 
Collecting jedi>=0.10 (from ipython)
  Downloading https://files.pythonhosted.org/packages/4e/06/e906725a5b3ad7996bbdbfe9958aab75db64ef84bbaabefe47574de58865/jedi-0.14.1-py2.py3-none-any.whl (1.0MB)
    100% |████████████████████████████████| 1.0MB 1.3MB/s 
Collecting prompt-toolkit<2.1.0,>=2.0.0 (from ipython)
  Downloading https://files.pythonhosted.org/packages/f7/a7/9b1dd14ef45345f186ef69d175bdd2491c40ab1dfa4b2b3e4352df719ed7/prompt_toolkit-2.0.9-py3-none-any.whl (337kB)
    100% |████████████████████████████████| 337kB 1.3MB/s 
Collecting ptyprocess>=0.5 (from pexpect; sys_platform != "win32"->ipython)
  Downloading https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl
Collecting six (from traitlets>=4.2->ipython)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting ipython-genutils (from traitlets>=4.2->ipython)
  Downloading https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting parso>=0.5.0 (from jedi>=0.10->ipython)
  Downloading https://files.pythonhosted.org/packages/a3/bd/bf4e5bd01d79906e5b945a7af033154da49fd2b0d5b5c705a21330323305/parso-0.5.1-py2.py3-none-any.whl (95kB)
    100% |████████████████████████████████| 102kB 2.0MB/s 
Collecting wcwidth (from prompt-toolkit<2.1.0,>=2.0.0->ipython)
  Downloading https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Building wheels for collected packages: backcall
  Running setup.py bdist_wheel for backcall ... done
  Stored in directory: /home/ubuntu/.cache/pip/wheels/98/b0/dd/29e28ff615af3dda4c67cab719dd51357597eabff926976b45
Successfully built backcall
Installing collected packages: pickleshare, ptyprocess, pexpect, setuptools, pygments, backcall, decorator, six, ipython-genutils, traitlets, parso, jedi, wcwidth, prompt-toolkit, ipython
Successfully installed backcall-0.1.0 decorator-4.4.0 ipython-7.7.0 ipython-genutils-0.2.0 jedi-0.14.1 parso-0.5.1 pexpect-4.7.0 pickleshare-0.7.5 prompt-toolkit-2.0.9 ptyprocess-0.6.0 pygments-2.4.2 setuptools-41.0.1 six-1.12.0 traitlets-4.3.2 wcwidth-0.1.7
$


Step 2: Install Notebook:

$ pip3 install notebook
Collecting notebook
  Downloading https://files.pythonhosted.org/packages/4e/b6/a6189ca7146482d93c912dbe6c65db0f264c1c88f707feea3683caa6c1f8/notebook-6.0.0-py3-none-any.whl (9.0MB)
    100% |████████████████████████████████| 9.0MB 164kB/s 
Collecting jupyter-client>=5.3.1 (from notebook)
  Downloading https://files.pythonhosted.org/packages/af/4c/bf613864ae0644e2ac7d4a40bd209c40c8c71e3dc88d5f1d0aa92a68e716/jupyter_client-5.3.1-py2.py3-none-any.whl (91kB)
    100% |████████████████████████████████| 92kB 6.6MB/s 
Collecting Send2Trash (from notebook)
  Downloading https://files.pythonhosted.org/packages/49/46/c3dc27481d1cc57b9385aff41c474ceb7714f7935b1247194adae45db714/Send2Trash-1.5.0-py3-none-any.whl
Collecting prometheus-client (from notebook)
  Downloading https://files.pythonhosted.org/packages/b3/23/41a5a24b502d35a4ad50a5bb7202a5e1d9a0364d0c12f56db3dbf7aca76d/prometheus_client-0.7.1.tar.gz
Collecting traitlets>=4.2.1 (from notebook)
  Using cached https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl
Collecting ipykernel (from notebook)
  Downloading https://files.pythonhosted.org/packages/a0/35/dd97fbb48d4e6b5ae97307497e31e46691adc2feedb6279d29fc1c8ad9c1/ipykernel-5.1.1-py3-none-any.whl (114kB)
    100% |████████████████████████████████| 122kB 8.9MB/s 
Collecting pyzmq>=17 (from notebook)
  Downloading https://files.pythonhosted.org/packages/92/92/ea8f20560d5f1d0c6eb3c7c67ca72abfb97307f4e6494fc05cc7c37904cf/pyzmq-18.0.2-cp36-cp36m-manylinux1_x86_64.whl (1.1MB)
    100% |████████████████████████████████| 1.1MB 1.2MB/s 
Collecting nbconvert (from notebook)
  Downloading https://files.pythonhosted.org/packages/35/e7/f46c9d65f149271e47fca6ab084ef5c6e4cb1870f4c5cce6690feac55231/nbconvert-5.5.0-py2.py3-none-any.whl (447kB)
    100% |████████████████████████████████| 450kB 2.5MB/s 
Collecting ipython-genutils (from notebook)
  Using cached https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting jupyter-core>=4.4.0 (from notebook)
  Downloading https://files.pythonhosted.org/packages/e6/25/6ffb0f6e57fa6ef5d2f814377133b361b42a6dd39105f4885a4f1666c2c3/jupyter_core-4.5.0-py2.py3-none-any.whl (78kB)
    100% |████████████████████████████████| 81kB 6.8MB/s 
Collecting terminado>=0.8.1 (from notebook)
  Downloading https://files.pythonhosted.org/packages/a7/56/80ea7fa66565fa75ae21ce0c16bc90067530e5d15e48854afcc86585a391/terminado-0.8.2-py2.py3-none-any.whl
Collecting jinja2 (from notebook)
  Using cached https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl
Collecting nbformat (from notebook)
  Downloading https://files.pythonhosted.org/packages/da/27/9a654d2b6cc1eaa517d1c5a4405166c7f6d72f04f6e7eea41855fe808a46/nbformat-4.4.0-py2.py3-none-any.whl (155kB)
    100% |████████████████████████████████| 163kB 5.4MB/s 
Collecting tornado>=5.0 (from notebook)
  Downloading https://files.pythonhosted.org/packages/30/78/2d2823598496127b21423baffaa186b668f73cd91887fcef78b6eade136b/tornado-6.0.3.tar.gz (482kB)
    100% |████████████████████████████████| 491kB 2.4MB/s 
Collecting python-dateutil>=2.1 (from jupyter-client>=5.3.1->notebook)
  Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting decorator (from traitlets>=4.2.1->notebook)
  Using cached https://files.pythonhosted.org/packages/5f/88/0075e461560a1e750a0dcbf77f1d9de775028c37a19a346a6c565a257399/decorator-4.4.0-py2.py3-none-any.whl
Collecting six (from traitlets>=4.2.1->notebook)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting ipython>=5.0.0 (from ipykernel->notebook)
  Using cached https://files.pythonhosted.org/packages/f6/c4/a79582814bdfe92bfca4d286a729304ffdf13f5135132cfcaea13cf1b2b3/ipython-7.7.0-py3-none-any.whl
Collecting entrypoints>=0.2.2 (from nbconvert->notebook)
  Downloading https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Collecting defusedxml (from nbconvert->notebook)
  Using cached https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl
Collecting pygments (from nbconvert->notebook)
  Using cached https://files.pythonhosted.org/packages/5c/73/1dfa428150e3ccb0fa3e68db406e5be48698f2a979ccbcec795f28f44048/Pygments-2.4.2-py2.py3-none-any.whl
Collecting bleach (from nbconvert->notebook)
  Downloading https://files.pythonhosted.org/packages/ab/05/27e1466475e816d3001efb6e0a85a819be17411420494a1e602c36f8299d/bleach-3.1.0-py2.py3-none-any.whl (157kB)
    100% |████████████████████████████████| 163kB 4.6MB/s 
Collecting testpath (from nbconvert->notebook)
  Downloading https://files.pythonhosted.org/packages/be/a4/162f9ebb6489421fe46dcca2ae420369edfee4b563c668d93cb4605d12ba/testpath-0.4.2-py2.py3-none-any.whl (163kB)
    100% |████████████████████████████████| 163kB 3.8MB/s 
Collecting pandocfilters>=1.4.1 (from nbconvert->notebook)
  Downloading https://files.pythonhosted.org/packages/4c/ea/236e2584af67bb6df960832731a6e5325fd4441de001767da328c33368ce/pandocfilters-1.4.2.tar.gz
Collecting mistune>=0.8.1 (from nbconvert->notebook)
  Downloading https://files.pythonhosted.org/packages/09/ec/4b43dae793655b7d8a25f76119624350b4d65eb663459eb9603d7f1f0345/mistune-0.8.4-py2.py3-none-any.whl
Collecting ptyprocess; os_name != "nt" (from terminado>=0.8.1->notebook)
  Using cached https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from jinja2->notebook)
  Using cached https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat->notebook)
  Downloading https://files.pythonhosted.org/packages/aa/69/df679dfbdd051568b53c38ec8152a3ab6bc533434fc7ed11ab034bf5e82f/jsonschema-3.0.1-py2.py3-none-any.whl (54kB)
    100% |████████████████████████████████| 61kB 7.0MB/s 
Collecting prompt-toolkit<2.1.0,>=2.0.0 (from ipython>=5.0.0->ipykernel->notebook)
  Using cached https://files.pythonhosted.org/packages/f7/a7/9b1dd14ef45345f186ef69d175bdd2491c40ab1dfa4b2b3e4352df719ed7/prompt_toolkit-2.0.9-py3-none-any.whl
Collecting pickleshare (from ipython>=5.0.0->ipykernel->notebook)
  Using cached https://files.pythonhosted.org/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl
Collecting jedi>=0.10 (from ipython>=5.0.0->ipykernel->notebook)
  Using cached https://files.pythonhosted.org/packages/4e/06/e906725a5b3ad7996bbdbfe9958aab75db64ef84bbaabefe47574de58865/jedi-0.14.1-py2.py3-none-any.whl
Collecting pexpect; sys_platform != "win32" (from ipython>=5.0.0->ipykernel->notebook)
  Using cached https://files.pythonhosted.org/packages/0e/3e/377007e3f36ec42f1b84ec322ee12141a9e10d808312e5738f52f80a232c/pexpect-4.7.0-py2.py3-none-any.whl
Collecting setuptools>=18.5 (from ipython>=5.0.0->ipykernel->notebook)
  Using cached https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl
Collecting backcall (from ipython>=5.0.0->ipykernel->notebook)
Collecting webencodings (from bleach->nbconvert->notebook)
  Using cached https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Collecting pyrsistent>=0.14.0 (from jsonschema!=2.5.0,>=2.4->nbformat->notebook)
  Downloading https://files.pythonhosted.org/packages/b9/66/b2638d96a2d128b168d0dba60fdc77b7800a9b4a5340cefcc5fc4eae6295/pyrsistent-0.15.4.tar.gz (107kB)
    100% |████████████████████████████████| 112kB 6.5MB/s 
Collecting attrs>=17.4.0 (from jsonschema!=2.5.0,>=2.4->nbformat->notebook)
  Downloading https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=5.0.0->ipykernel->notebook)
  Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting parso>=0.5.0 (from jedi>=0.10->ipython>=5.0.0->ipykernel->notebook)
  Using cached https://files.pythonhosted.org/packages/a3/bd/bf4e5bd01d79906e5b945a7af033154da49fd2b0d5b5c705a21330323305/parso-0.5.1-py2.py3-none-any.whl
Building wheels for collected packages: prometheus-client, tornado, pandocfilters, pyrsistent
  Running setup.py bdist_wheel for prometheus-client ... done
  Stored in directory: /home/ubuntu/.cache/pip/wheels/1c/54/34/fd47cd9b308826cc4292b54449c1899a30251ef3b506bc91ea
  Running setup.py bdist_wheel for tornado ... done
  Stored in directory: /home/ubuntu/.cache/pip/wheels/84/bf/40/2f6ef700f48401ca40e5e3dd7d0e3c0a90e064897b7fe5fc08
  Running setup.py bdist_wheel for pandocfilters ... done
  Stored in directory: /home/ubuntu/.cache/pip/wheels/39/01/56/f1b08a6275acc59e846fa4c1e1b65dbc1919f20157d9e66c20
  Running setup.py bdist_wheel for pyrsistent ... done
  Stored in directory: /home/ubuntu/.cache/pip/wheels/bb/46/00/6d471ef0b813e3621f0abe6cb723c20d529d39a061de3f7c51
Successfully built prometheus-client tornado pandocfilters pyrsistent
Installing collected packages: pyzmq, tornado, decorator, six, ipython-genutils, traitlets, jupyter-core, python-dateutil, jupyter-client, Send2Trash, prometheus-client, wcwidth, prompt-toolkit, pickleshare, parso, jedi, pygments, ptyprocess, pexpect, setuptools, backcall, ipython, ipykernel, pyrsistent, attrs, jsonschema, nbformat, entrypoints, MarkupSafe, jinja2, defusedxml, webencodings, bleach, testpath, pandocfilters, mistune, nbconvert, terminado, notebook
Successfully installed MarkupSafe-1.1.1 Send2Trash-1.5.0 attrs-19.1.0 backcall-0.1.0 bleach-3.1.0 decorator-4.4.0 defusedxml-0.6.0 entrypoints-0.3 ipykernel-5.1.1 ipython-7.7.0 ipython-genutils-0.2.0 jedi-0.14.1 jinja2-2.10.1 jsonschema-3.0.1 jupyter-client-5.3.1 jupyter-core-4.5.0 mistune-0.8.4 nbconvert-5.5.0 nbformat-4.4.0 notebook-6.0.0 pandocfilters-1.4.2 parso-0.5.1 pexpect-4.7.0 pickleshare-0.7.5 prometheus-client-0.7.1 prompt-toolkit-2.0.9 ptyprocess-0.6.0 pygments-2.4.2 pyrsistent-0.15.4 python-dateutil-2.8.0 pyzmq-18.0.2 setuptools-41.0.1 six-1.12.0 terminado-0.8.2 testpath-0.4.2 tornado-6.0.3 traitlets-4.3.2 wcwidth-0.1.7 webencodings-0.5.1
$

Now, let us open out Ipython Notebook:


$ ipython notebook My-Notebook-01.ipynb
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
[I 11:00:41.831 NotebookApp] Writing notebook server cookie secret to /home/ubuntu/.local/share/jupyter/runtime/notebook_cookie_secret
[I 11:00:41.854 NotebookApp] Serving notebooks from local directory: /home/ubuntu/Documents/my-files-mooc/DS-Intro-Michigan/Course-01
[I 11:00:41.854 NotebookApp] The Jupyter Notebook is running at:
[I 11:00:41.854 NotebookApp] http://localhost:8888/?token=515a6aad1725091442d8a3060d2e07f2cbcc7888e8f79080
[I 11:00:41.854 NotebookApp]  or http://127.0.0.1:8888/?token=515a6aad1725091442d8a3060d2e07f2cbcc7888e8f79080
[I 11:00:41.854 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:00:41.860 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/ubuntu/.local/share/jupyter/runtime/nbserver-6937-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=515a6aad1725091442d8a3060d2e07f2cbcc7888e8f79080
     or http://127.0.0.1:8888/?token=515a6aad1725091442d8a3060d2e07f2cbcc7888e8f79080
Opening in existing browser session.
[E 11:00:43.502 NotebookApp] Could not open static file ''
[W 11:00:43.778 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 8.66ms referer=http://localhost:8888/notebooks/week-02-Assignment-2.ipynb?token=515a6aad1725091442d8a3060d2e07f2cbcc7888e8f79080
[I 11:00:45.545 NotebookApp] Writing notebook-signing key to /home/ubuntu/.local/share/jupyter/notebook_secret
[W 11:00:45.549 NotebookApp] Notebook week-02-Assignment-2.ipynb is not trusted
[W 11:00:45.569 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20190729110041 (127.0.0.1) 1017.94ms referer=http://localhost:8888/notebooks/week-02-Assignment-2.ipynb
[I 11:00:46.862 NotebookApp] Kernel started: ac83c589-65d2-48a5-89f6-ce330f81bdfd
[I 11:00:47.679 NotebookApp] Adapting from protocol version 5.1 (kernel ac83c589-65d2-48a5-89f6-ce330f81bdfd) to 5.3 (client).
[I 11:02:06.999 NotebookApp] Starting buffering for ac83c589-65d2-48a5-89f6-ce330f81bdfd:351843f1bd364e348e9980cff4586dee
^C[I 11:05:58.555 NotebookApp] interrupted
Serving notebooks from local directory: /home/ubuntu/Documents/
1 active kernel
The Jupyter Notebook is running at:
http://localhost:8888/?token=515a6aad1725091442d8a3060d2e07f2cbcc7888e8f79080
 or http://127.0.0.1:8888/?token=515a6aad1725091442d8a3060d2e07f2cbcc7888e8f79080



Success!