Ipython output broken since 7.0 over ssh connection
See original GitHub issueIt 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:
- Created 5 years ago
- Reactions:2
- Comments:16 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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