Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 910 Bytes

README.rst

File metadata and controls

34 lines (22 loc) · 910 Bytes

... image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/gh/takluyver/bash_kernel/master

A Jupyter kernel for bash

This requires IPython 3.

To install:

pip install bash_kernel
python -m bash_kernel.install

To use it, run one of:

jupyter notebook
# In the notebook interface, select Bash from the 'New' menu
jupyter qtconsole --kernel bash
jupyter console --kernel bash

The kernel exports two handy bash functions: display to display images; displayHTML to display HTML content.

Example:

cat dog.png | display
echo "<b>Dog</b>, not a cat." | displayHTML

For details of how this works, see the Jupyter docs on wrapper kernels, and Pexpect's docs on the replwrap module