Calysto / metakernel

Jupyter/IPython Kernel Tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spaces removed from beginning of output for bash shell

molecules opened this issue · comments

It seems like leading spaces for the output of a cell in a Bash notebook are trimmed for the first line but not the remaining lines:

spaceinbashnotebook

Jupyter Bash notebook version information:

About Jupyter Notebook
Server Information:

You are using Jupyter notebook.
The version of the notebook server is 5.0.0 and is running on:

Python 3.4.5 (default, May 29 2017, 15:17:55) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]    

Current Kernel Information:

MetaKernel Bash - interact with bash

However, this is not the case for Python notebooks:

spaceinpythonnotebook

Jupyter Python notebook information:

About Jupyter Notebook
Server Information:

You are using Jupyter notebook.
The version of the notebook server is 5.0.0 and is running on:

Python 3.4.5 (default, May 29 2017, 15:17:55)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

Current Kernel Information:

Python 3.4.5 (default, May 29 2017, 15:17:55)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.