読者です 読者をやめる 読者になる 読者になる

AKAI TSUKI

System development or Technical something

install bash_kernel for jupyter notebook.

After installation of jupyter notebook,
I install bash kernel to jupyter notebook.

GitHub - takluyver/bash_kernel: A bash kernel for IPython

Command list

  • install bash_kernel
# pip3.5 install bash_kernel
# python3 -m bash_kernel.install
  • start jupyter notebook.
# jupyter notebook --config=.jupyter/jupyter_notebook_config.py

Detail

[root@479c57f04b63 ~]# pip3.5 install bash_kernel
Collecting bash_kernel
  Downloading bash_kernel-0.6-py2.py3-none-any.whl
Requirement already satisfied: pexpect>=4.0 in /usr/lib/python3.5/site-packages (from bash_kernel)
Requirement already satisfied: ptyprocess>=0.5 in /usr/lib/python3.5/site-packages (from pexpect>=4.0->bash_kernel)
Installing collected packages: bash-kernel
Successfully installed bash-kernel-0.6
[root@479c57f04b63 ~]# python3 -m bash_kernel.install
Installing IPython kernel spec
[root@479c57f04b63 ~]#
[root@479c57f04b63 notebook]# jupyter notebook --config=.jupyter/jupyter_notebook_config.py
[W 09:41:44.929 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 09:41:44.933 NotebookApp] Serving notebooks from local directory: /root/notebook
[I 09:41:44.933 NotebookApp] 0 active kernels
[I 09:41:44.933 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/?token=400bdbc551bed4c7e80a8fb033c0e8765649fcef561f2dca
[I 09:41:44.933 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:41:44.933 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=400bdbc551bed4c7e80a8fb033c0e8765649fcef561f2dca
[I 09:42:06.568 NotebookApp] 302 GET /?token=400bdbc551bed4c7e80a8fb033c0e8765649fcef561f2dca (192.168.0.6) 0.74ms
[I 09:42:10.533 NotebookApp] Creating new notebook in
[W 09:42:10.923 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20170212094144 (192.168.0.6) 4.94ms referer=http://192.168.0.30:18888/notebooks/Untitled.ipynb?kernel_name=bash
[I 09:42:10.974 NotebookApp] Kernel started: 62a1ca9e-9301-4e26-b10b-76c52ebe3077

Bash menu added at New.
f:id:akai_tsuki:20170212185758p:plain

the use of example for Bash
f:id:akai_tsuki:20170212185805p:plain