{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Jupyter Xonsh Kernel\n", "============\n", "\n", "Interact with Xonsh in Notebook. All commands are interpreted by Xonsh. 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": [ { "data": { "text/plain": [ "Hello, world!" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "print('Hello, world!')" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ ".ipynb_checkpoints/\n", "MANIFEST\n", "dist/\n", "build/\n", "*.egg-info/" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "cat .gitignore" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": false }, "outputs": [ { "data": {}, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "a = 1" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "4" ] }, "execution_count": 10, "metadata": {}, "output_type": "execute_result" } ], "source": [ "b = a + 3; print(b)" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Available line magics:\n", "%cd %connect_info %download %edit %get %help %html %install %install_magic %javascript %kernel %kx %latex %load %ls %lsmagic %magic %parallel %plot %pmap %px %python %reload_magics %restart %run %set %shell %spell\n", "\n", "Available cell magics:\n", "%%debug %%file %%help %%html %%javascript %%kx %%latex %%processing %%px %%python %%shell %%show %%spell %%time\n" ] } ], "source": [ "%lsmagic" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Xonsh", "language": "python", "name": "xonsh_kernel" }, "language_info": { "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": "xonsh_kernel" } }, "nbformat": 4, "nbformat_minor": 0 }