Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no newline after Out[] #124

Open
ghost opened this issue May 30, 2015 · 0 comments
Open

There is no newline after Out[] #124

ghost opened this issue May 30, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented May 30, 2015

In 'ipython' console, after 'Out[line_number]' prompt it inserts a newline character. It is useful to have it when working with dataframes, for example. Without it the column names are shifted and are not aligned with the column's contents. For example, in ipython (sorry, github removes tabs before A, B and C):
Out[30]:
A B C
2000-01-01 -1.224884 -0.067964 0.775464
2000-01-02 0.969770 -0.009765 -0.824894
2000-01-03 0.723846 1.403708 -0.736835
2000-01-04 -0.556043 -0.496447 0.089299

But in vim-ipython:
Out[30]: A B C
2000-01-01 -1.224884 -0.067964 0.775464
2000-01-02 0.969770 -0.009765 -0.824894
2000-01-03 0.723846 1.403708 -0.736835
2000-01-04 -0.556043 -0.496447 0.089299

It is very easy to modify in the code, add '\n' in this line, in vim_ipython.py:
status_prompt_out = vim_variable('g:ipy_status_out', 'Out[%(line)d]: \n')

Thank you,
Sergii

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants