Answer the question
In order to leave comments, you need to log in
How to override standard input and output of IPython?
Task: to replace the standard input and output of IPython.
What I did: replaced sys.{stdin,stdout,stderr}
with my file-like objects.
from IPython.Shell import IPShellEmbed
IPShellEmbed()()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question