{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Jupyter Bash Kernel\n", "============\n", "\n", "Interact with Bash in a Notebook. All commands are interpreted by Bash. Since this is a [MetaKernel](https://github.com/Calysto/metakernel), a standard set of magics are available. Help on commands is available using the `%help` magic or using `?` with a command." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Hello, world!\r\n" ] } ], "source": [ "echo 'Hello, world!'" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ ".ipynb_checkpoints/\n", "MANIFEST\n", "dist/\n", "build/\n", "*.egg-info/\n" ] } ], "source": [ "cat .gitignore" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "HISTORY.rst \u001b[34m__pycache__\u001b[39;49m\u001b[0m bash_kernel.ipynb test_bash_kernel.py\n", "README.rst \u001b[34mbash_kernel\u001b[39;49m\u001b[0m flit.ini\n" ] } ], "source": [ "ls" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false, "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Available line magics:\n", "%activity %cd %connect_info %dot %download %edit %get %help %html %include %install %install_magic %javascript %jigsaw %kernel %kx %latex %load %ls %lsmagic %macro %magic %parallel %plot %pmap %px %python %reload_magics %restart %run %set %shell\n", "\n", "Available cell magics:\n", "%%activity %%brain %%debug %%dot %%file %%help %%html %%javascript %%kx %%latex %%macro %%processing %%px %%python %%shell %%show %%time %%tutor\n" ] } ], "source": [ "%lsmagic" ] } ], "metadata": { "kernelspec": { "display_name": "Calysto Bash", "language": "bash", "name": "calysto_bash" }, "language_info": { "codemirror_mode": "shell", "file_extension": ".sh", "help_links": [ { "text": "MetaKernel Magics", "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" } ], "mimetype": "text/x-bash", "name": "bash", "version": "0.1.0" } }, "nbformat": 4, "nbformat_minor": 0 }