diff --git a/CactusTutorial.ipynb b/CactusTutorial.ipynb index 755b026..dbd3430 100644 --- a/CactusTutorial.ipynb +++ b/CactusTutorial.ipynb @@ -68,6 +68,10 @@ "source": [ "# this allows you to use \"cd\" in cells to change directories instead of requiring \"%cd\"\n", "%automagic on\n", + "# override IPython's default %%bash to not buffer all output\n", + "from IPython.core.magic import register_cell_magic\n", + "@register_cell_magic\n", + "def bash(line, cell): get_ipython().system(cell)\n", ] }, {