question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ipython output broken since 7.0 over ssh connection

See original GitHub issue

It seems like when I connect to one of our ECS containers over ssh, ipython no longer seems to display output correctly.

When I open IPython I get the following:

Python 3.7.1 (default, Oct 24 2018, 22:35:30) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.1.1 -- An enhanced Interactive Python. Type '?' for help.

as you can see, there is no prompt for inputting commands.

However, if I type something blindly - for example print("hello"), it outputs the result:

Python 3.7.1 (default, Oct 24 2018, 22:35:30) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.1.1 -- An enhanced Interactive Python. Type '?' for help.

hello

or if I type some random text and then press enter to get an intended error message:

Python 3.7.1 (default, Oct 24 2018, 22:35:30) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.1.1 -- An enhanced Interactive Python. Type '?' for help.

hello

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-2c892af0f0c1> in <module>
----> 1 dawdwd

NameError: name 'dawdwd' is not defined

Not sure if this a bug with prompt_toolkit or ipython but I thought I would start here.

Let me know it there are any other details from the shell I can get to make debugging this easier.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
MichaelAquilinacommented, Nov 20, 2018

Your resize comment made me think to try running !reset.

Running !resize in ipython makes the issue go away. That should help narrow down the problem I think

1reaction
mazzma12commented, Jan 22, 2019

Your resize comment made me think to try running !reset.

Running !resize in ipython makes the issue go away. That should help narrow down the problem I think

!reset Solved my invisible prompt issue I had using ipython in docker over ssh

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stdout output not remotely accessible when connecting to a ...
My current workflow with Jupyter notebooks is to have a notebook server running on machine X, inside a screen session:
Read more >
The Qt Console for Jupyter — Jupyter Qt Console 5.4.0 ...
In simple cases, Jupyter's tools can forward ports over ssh by simply adding the --ssh=remote argument to the usual --existing... set of flags ......
Read more >
Run Jupyter Notebook as a background service
How to run Jupyter Notebooks in the background, not needing to keep a terminal open for them? In this article, I will show...
Read more >
Jupyter Notebook Enhancements, Tips And Tricks - fastai
This thread is dedicated to Jupyter Notebook enhancements and related goodies. ... After the new setting is activated both outputs get printed:
Read more >
How to run Jupyter Notebooks on remote server — SSH
But how do you run a jupyter notebook on a remote server and access the results in your local browser? In this post,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found