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

Codi only displays the last line of the output, which is not always the expected behavior. #33

Closed
gillescastel opened this issue Aug 31, 2016 · 1 comment

Comments

@gillescastel
Copy link

gillescastel commented Aug 31, 2016

Problem: Codi only displays the last line of the response.


Behavior of Codi:

image

Expected behavior:

Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import *
>>> init_printing()
>>> f, x = symbols('f x')
>>> f = exp(x)
>>> diff(f)
 x
 
>>> print('a\nb')
a
b
>>> 

Minimal test case:

print('a\nb')

Same for javascript:

~node
> console.log('test')
test
undefined
> 

Using Codi, only the last line, undefined, is shown.

How could this be resolved?

Thank you for this great plugin!

@gillescastel gillescastel changed the title Codi only displays last line, which is not always wanted. Codi only displays last line, which is not always the expected behavior. Aug 31, 2016
@gillescastel gillescastel changed the title Codi only displays last line, which is not always the expected behavior. Codi only displays the last line of the output, which is not always the expected behavior. Aug 31, 2016
@metakirby5
Copy link
Owner

metakirby5 commented Sep 1, 2016

This is something which is being discussed at #27. Due to the line-wise nature of Codi, multi-line output is currently not supported. However, using folds is a possible compromise.

Closing this because of its similarity to #27.

Also, glad you're enjoying the plugin :)

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

No branches or pull requests

2 participants