PreprintPDF Available

Jupyter notebook Installation on Linux RedHat RHEL 8

Authors:
  • ASB Software Development Limited
Preprints and early-stage research may not have been peer reviewed yet.

Abstract

This document describes the Installation of Jupyter notebook and its Docker Container on Linux RedHat RHEL 8.0 using VMware 15.5.2. The base RedHat Linux 8.0 and Docker system installation is described in my publication: REF: https://doi.org/10.13140/RG.2.2.27358.18246

 !"##$
%&'(')!*++
&'(
,1)22 Friday, 10 April 2020


&
-.+.
)

 !
"##$
& &'(


 !"##$
%&'(')!*++
&'(
(/&'(')!*++,0
+/&'(')!*++,0
( /&'(')!*++,1
#
2
3)"
'!! "4
&&/"5
,2)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
(/&'(')!*+
+,
.6777""0"178$$$211005$#
)9'3.+"1
.6777""0"178$$"4#0"0
 (:''&:):/"58;: '<9;&;;'-&&-:;:;
=;:='"/
+/&'(')!*++,
.677!!!+7.7&'(>,
()+ ,=.
'(;978-0-244-87898-6
,3)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
( /&'(')!*++
,
.6777""0"178$$$4$2#$1
( &"""1/&)3)?
@)
.6777""0"178$$""2$05
( &A##@:) 
.#00
.6777""0"178$$0#010$
( '.'*##0;-:'@

.6777""0"178$$"254#$
+ &++ #00

.6777""0"178$$$4#451#2"
( ((++(.-+

.6777""0"178$$$2125"$
):B200"
.6777""0"178$$"$02"15424
(  ,)!-:C'3;,
;-:'
.6777""0"178$$""0$4224$"
( =3+"$0
@:'
.6777""0"178$$"$$1110
="$0=D( ;-:'!.

.6777""0"178$$$$#2514$5
( ,*,,-;-:'
.6777""0"178$$021$4
)!+!.( 
,*E++F
https://doi.org/10.13140/RG.2.2.20160.69129
IBM FileNet P8 Java Development on ECM Cloud Private Container P8 Examples
https://doi.org/10.13140/RG.2.2.27358.18246
IBM Cloud Private P8 Container CPIT Installation on RedHat Enterprise Linux 8.0
(NB Above describes the installation of the base RHEL 8.0 Linux system I used)
https://doi.org/10.13140/RG.2.2.22030.92486
Problem Resolution Procedures For fixing Software Installation Issues
https://doi.org/10.13140/RG.2.2.27345.89440
IBM BAW 18.0 Installation phase1 preprint with install of IBM Workflow Center 8.6.1.19002
https://doi.org/10.13140/RG.2.2.10491.67369
DB2 10.5 Installation on CENTOS 8.0 V1
https://doi.org/10.13140/RG.2.2.33527.57761
IBM Security Directory Services 6.4- Installation on RHEL 8.0
https://doi.org/10.13140/RG.2.2.15007.10408
WebSphere 8.5.5.15 Installation 29-06-2019 on VMWare Workstation Pro 15.1
https://doi.org/10.13140/RG.2.2.15737.83048
IBM BAW 18.0 Installation 18 07 2019 - Install of IBM Security Directory Suite 8.0.1.1 on CENTOS
8 using VMWare Workstation Pro 15.1
https://doi.org/10.13140/RG.2.2.21708.16001
Case Manager 5.3.3 Installation on RHEL 8.0 with Content Navigator 3.0.6
,4)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
https://doi.org/10.13140/RG.2.2.31489.10082
Installation of Oracle 12C on the Linux operating system
https://doi.org/10.13140/RG.2.2.14590.95049
Content Navigator 3.0.6 Installation on RHEL 8.0_V1.docx
https://doi.org/10.13140/RG.2.2.21170.76480
Content Foundation 5.5.3 Installation on RHEL 8.0_V2.docx
https://doi.org/10.13140/RG.2.2.30401.51048
Case Manager Installation on RHEL 8.0_Preparation.docx
,5)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(

;(3.(++
6
https://doi.org/10.13140/RG.2.2.27358.18246
E( ,*,,-F
36.677!!!++7++77/C/

/9
:++G!.G).
pip3 install -U pip setuptools
Which gives :
Installing collected packages: pip, setuptools
Successfully installed pip-20.0.2 setuptools-46.1.3
For Python2
H,.$
C
.*,.06
,6)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
# Python 3
6
pip3 install jupyter
See Appendix A for the full Installation Log
Successfully installed :
MarkupSafe-1.1.1
Send2Trash-1.5.0
attrs-19.3.0 backcall-0.1.0
bleach-3.1.4
defusedxml-0.6.0
entrypoints-0.3
importlib-metadata-1.6.0
ipykernel-5.2.0
ipython-7.13.0
ipython-genutils-0.2.0
ipywidgets-7.5.1
jedi-0.16.0
jinja2-2.11.1
jsonschema-3.2.0
jupyter-1.0.0
jupyter-client-6.1.2
jupyter-console-6.1.0
jupyter-core-4.6.3
mistune-0.8.4
nbconvert-5.6.1
nbformat-5.0.5
notebook-6.0.3
pandocfilters-1.4.2
parso-0.6.2
pexpect-4.8.0
pickleshare-0.7.5
prometheus-client-0.7.1
prompt-toolkit-3.0.5
ptyprocess-0.6.0
pygments-2.6.1
pyrsistent-0.16.0
pyzmq-19.0.0
qtconsole-4.7.2
qtpy-1.9.0
terminado-0.8.3
testpath-0.4.4
tornado-6.0.4
traitlets-4.3.3
wcwidth-0.1.9
webencodings-0.5.1 w
idgetsnbextension-3.5.1
zipp-3.1.0

-.B;+
6
,7)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
docker run --rm -it -p 8888:8888 -v "$(pwd):/notebooks"
jupyter/notebook
,8)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
I get
Try logging into docker
REF: pages 7 to 10 of https://doi.org/10.13140/RG.2.2.27358.18246
E( ,*,,-F
The First time you login you use:
[root@ecmukdemo10 ~]# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have
a Docker ID, head over to https://hub.docker.com to create one.
Username: alanbluck
Password:
NB Above is in my RHEL 8.0 Installation Publication:
=..))
[root@ecmukdemo10 cluster]# docker login
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in
/root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credential
s-store
Login Succeeded
I needed to repeat the installation command as follows:
docker run --rm -it -p 8888:8888 -v "$(pwd):/notebooks"
jupyter/datascience-notebook
NB Note that the jupyter part above must be lower case as I have used !!
Now I get:
,9)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Status: Downloaded newer image for jupyter/datascience-notebook:latest
Executing the command: jupyter notebook
[I 15:42:52.994 NotebookApp] Writing notebook server cookie secret to
/home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret
[I 15:42:54.009 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-
packages/jupyterlab
[I 15:42:54.010 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 15:42:54.024 NotebookApp] Serving notebooks from local directory: /home/jovyan
[I 15:42:54.024 NotebookApp] The Jupyter Notebook is running at:
[I 15:42:54.024 NotebookApp] http://d5b47c2f368c:8888/?
token=84af19a73d1cbeadaf1b60fa38ebb325a694f853314d6529
[I 15:42:54.024 NotebookApp] or http://127.0.0.1:8888/?
token=84af19a73d1cbeadaf1b60fa38ebb325a694f853314d6529
[I 15:42:54.024 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice
to skip confirmation).
[C 15:42:54.035 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/jovyan/.local/share/jupyter/runtime/nbserver-9-open.html
Or copy and paste one of these URLs:
http://d5b47c2f368c:8888/?token=84af19a73d1cbeadaf1b60fa38ebb325a694f853314d6529
or http://127.0.0.1:8888/?token=84af19a73d1cbeadaf1b60fa38ebb325a694f853314d6529
,10)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Installation screen shot below
,11)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
3)
.9
.677"$4"67I
J1)"540")"2)00$#251)#00"12#$5
-.*6
.677"$4"67
.+!!7
The Jupyter Notebook is running at:
http://d5b47c2f368c:8888/?token=84af19a73d1cbeadaf1b60fa38ebb325a694f853314d6529
or http://127.0.0.1:8888/?token=84af19a73d1cbeadaf1b60fa38ebb325a694f853314d6529
Shutdown this notebook server (y/[n])? No answer for 5s: resuming operation...
y
^C[I 16:22:42.337 NotebookApp] interrupted
Serving notebooks from local directory: /home/jovyan
0 active kernels
The Jupyter Notebook is running at:
http://d5b47c2f368c:8888/?token=84af19a73d1cbeadaf1b60fa38ebb325a694f853314d6529
or http://127.0.0.1:8888/?token=84af19a73d1cbeadaf1b60fa38ebb325a694f853314d6529
Shutdown this notebook server (y/[n])? y
[C 16:22:46.660 NotebookApp] Shutdown confirmed
[I 16:22:46.662 NotebookApp] Shutting down 0 kernels
[root@ecmukdemo10 cluster]# mkdir /home/jovyan
[root@ecmukdemo10 cluster]# jupyter notebook
[C 09:27:44.490 NotebookApp] Running as root is not recommended. Use --allow-root to
bypass.
'!6
[root@ecmukdemo10 cluster]# jupyter notebook --allow-root
Now loads OK
,12)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Click on the new button
,13)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Rename to JupyterPlainText.txt
,14)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Click OK
NB a lot of programming languages are supported!
,15)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Close the tab to see the file in the main browser window
.K,.0K.K;K
,16)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Add whatever cells are required some examples above.
NB to see the full install info and tutorials go to
.677!!!++7++77/C/
'!!
[root@ecmukdemo10 cluster]# jupyter notebook list
.
Currently running servers:
http://localhost:8888/?
token=fd3ac3c18522e26a4e8b8303776db4b674d16d826ff032fc :: /opt/ibm-
cloud-private-3.2.0/cluster
[root@ecmukdemo10 cluster]#
,17)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Logs you in!
,18)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
,19)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
&&/
[root@ecmukdemo10 cluster]# pip3 install jupyter
WARNING: pip is being invoked by an old script wrapper. This will fail in a
future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the
underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running
pip directly.
Collecting jupyter
Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting ipykernel
Downloading ipykernel-5.2.0-py3-none-any.whl (117 kB)
|████████████████████████████████| 117 kB 2.2 MB/s
Collecting jupyter-console
Downloading jupyter_console-6.1.0-py2.py3-none-any.whl (21 kB)
Collecting notebook
Downloading notebook-6.0.3-py3-none-any.whl (9.7 MB)
|████████████████████████████████| 9.7 MB 8.1 MB/s
Collecting qtconsole
Downloading qtconsole-4.7.2-py2.py3-none-any.whl (117 kB)
|████████████████████████████████| 117 kB 8.3 MB/s
Collecting ipywidgets
Downloading ipywidgets-7.5.1-py2.py3-none-any.whl (121 kB)
|████████████████████████████████| 121 kB 11.5 MB/s
Collecting nbconvert
Downloading nbconvert-5.6.1-py2.py3-none-any.whl (455 kB)
|████████████████████████████████| 455 kB 9.1 MB/s
Collecting ipython>=5.0.0
Downloading ipython-7.13.0-py3-none-any.whl (780 kB)
|████████████████████████████████| 780 kB 10.7 MB/s
Collecting jupyter-client
Downloading jupyter_client-6.1.2-py3-none-any.whl (106 kB)
|████████████████████████████████| 106 kB 10.6 MB/s
Collecting traitlets>=4.1.0
Downloading traitlets-4.3.3-py2.py3-none-any.whl (75 kB)
|████████████████████████████████| 75 kB 3.3 MB/s
Collecting tornado>=4.2
Downloading tornado-6.0.4.tar.gz (496 kB)
|████████████████████████████████| 496 kB 6.3 MB/s
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Downloading prompt_toolkit-3.0.5-py3-none-any.whl (351 kB)
|████████████████████████████████| 351 kB 8.0 MB/s
Collecting pygments
Downloading Pygments-2.6.1-py3-none-any.whl (914 kB)
|████████████████████████████████| 914 kB 10.2 MB/s
Collecting ipython-genutils
Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting Send2Trash
Downloading Send2Trash-1.5.0-py3-none-any.whl (12 kB)
Collecting pyzmq>=17
Downloading pyzmq-19.0.0-cp36-cp36m-manylinux1_x86_64.whl (1.1 MB)
|████████████████████████████████| 1.1 MB 9.7 MB/s
Collecting jupyter-core>=4.6.1
Downloading jupyter_core-4.6.3-py2.py3-none-any.whl (83 kB)
|████████████████████████████████| 83 kB 2.2 MB/s
Collecting prometheus-client
Downloading prometheus_client-0.7.1.tar.gz (38 kB)
,20)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Collecting terminado>=0.8.1
Downloading terminado-0.8.3-py2.py3-none-any.whl (33 kB)
Collecting jinja2
Downloading Jinja2-2.11.1-py2.py3-none-any.whl (126 kB)
|████████████████████████████████| 126 kB 11.0 MB/s
Collecting nbformat
Downloading nbformat-5.0.5-py3-none-any.whl (170 kB)
|████████████████████████████████| 170 kB 9.6 MB/s
Collecting qtpy
Downloading QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
|████████████████████████████████| 54 kB 4.4 MB/s
Collecting widgetsnbextension~=3.5.0
Downloading widgetsnbextension-3.5.1-py2.py3-none-any.whl (2.2 MB)
|████████████████████████████████| 2.2 MB 8.5 MB/s
Collecting bleach
Downloading bleach-3.1.4-py2.py3-none-any.whl (151 kB)
|████████████████████████████████| 151 kB 11.9 MB/s
Collecting defusedxml
Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting pandocfilters>=1.4.1
Downloading pandocfilters-1.4.2.tar.gz (14 kB)
Collecting testpath
Downloading testpath-0.4.4-py2.py3-none-any.whl (163 kB)
|████████████████████████████████| 163 kB 9.9 MB/s
Collecting entrypoints>=0.2.2
Downloading entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting mistune<2,>=0.8.1
Downloading mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting jedi>=0.10
Downloading jedi-0.16.0-py2.py3-none-any.whl (1.1 MB)
|████████████████████████████████| 1.1 MB 10.5 MB/s
Requirement already satisfied: setuptools>=18.5 in
/usr/local/lib/python3.6/site-packages (from ipython>=5.0.0->ipykernel-
>jupyter) (46.1.3)
Collecting pexpect; sys_platform != "win32"
Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
|████████████████████████████████| 59 kB 5.0 MB/s
Requirement already satisfied: decorator in /usr/lib/python3.6/site-packages
(from ipython>=5.0.0->ipykernel->jupyter) (4.2.1)
Collecting pickleshare
Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting backcall
Downloading backcall-0.1.0.tar.gz (9.7 kB)
Requirement already satisfied: python-dateutil>=2.1 in
/usr/lib/python3.6/site-packages (from jupyter-client->ipykernel->jupyter)
(2.6.1)
Requirement already satisfied: six in /usr/lib/python3.6/site-packages (from
traitlets>=4.1.0->ipykernel->jupyter) (1.11.0)
Collecting wcwidth
Downloading wcwidth-0.1.9-py2.py3-none-any.whl (19 kB)
Collecting ptyprocess; os_name != "nt"
Downloading ptyprocess-0.6.0-py2.py3-none-any.whl (39 kB)
Collecting MarkupSafe>=0.23
Downloading MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl (27 kB)
Collecting jsonschema!=2.5.0,>=2.4
Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
|████████████████████████████████| 56 kB 7.0 MB/s
Collecting webencodings
Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
,21)22 Friday, 10 April 2020

 !"##$
%&'(')!*++
&'(
Collecting parso>=0.5.2
Downloading parso-0.6.2-py2.py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 6.2 MB/s
Collecting attrs>=17.4.0
Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting importlib-metadata; python_version < "3.8"
Downloading importlib_metadata-1.6.0-py2.py3-none-any.whl (30 kB)
Collecting pyrsistent>=0.14.0
Downloading pyrsistent-0.16.0.tar.gz (108 kB)
|████████████████████████████████| 108 kB 12.5 MB/s
Collecting zipp>=0.5
Downloading zipp-3.1.0-py3-none-any.whl (4.9 kB)
Installing collected packages: wcwidth, prompt-toolkit, parso, jedi, ipython-
genutils, traitlets, ptyprocess, pexpect, pygments, pickleshare, backcall,
ipython, pyzmq, jupyter-core, tornado, jupyter-client, ipykernel, jupyter-
console, Send2Trash, prometheus-client, terminado, webencodings, bleach,
defusedxml, attrs, zipp, importlib-metadata, pyrsistent, jsonschema,
nbformat, pandocfilters, testpath, entrypoints, MarkupSafe, jinja2, mistune,
nbconvert, notebook, qtpy, qtconsole, widgetsnbextension, ipywidgets, jupyter
Running setup.py install for backcall ... done
Running setup.py install for tornado ... done
Running setup.py install for prometheus-client ... done
Running setup.py install for pyrsistent ... done
Running setup.py install for pandocfilters ... done
Successfully installed MarkupSafe-1.1.1 Send2Trash-1.5.0 attrs-19.3.0
backcall-0.1.0 bleach-3.1.4 defusedxml-0.6.0 entrypoints-0.3 importlib-
metadata-1.6.0 ipykernel-5.2.0 ipython-7.13.0 ipython-genutils-0.2.0
ipywidgets-7.5.1 jedi-0.16.0 jinja2-2.11.1 jsonschema-3.2.0 jupyter-1.0.0
jupyter-client-6.1.2 jupyter-console-6.1.0 jupyter-core-4.6.3 mistune-0.8.4
nbconvert-5.6.1 nbformat-5.0.5 notebook-6.0.3 pandocfilters-1.4.2 parso-0.6.2
pexpect-4.8.0 pickleshare-0.7.5 prometheus-client-0.7.1 prompt-toolkit-3.0.5
ptyprocess-0.6.0 pygments-2.6.1 pyrsistent-0.16.0 pyzmq-19.0.0 qtconsole-
4.7.2 qtpy-1.9.0 terminado-0.8.3 testpath-0.4.4 tornado-6.0.4 traitlets-4.3.3
wcwidth-0.1.9 webencodings-0.5.1 widgetsnbextension-3.5.1 zipp-3.1.0
[root@ecmukdemo10 cluster]#
,22)22 Friday, 10 April 2020
ResearchGate has not been able to resolve any citations for this publication.
ResearchGate has not been able to resolve any references for this publication.