0

I learned this trick from Using IPython console along side IPython notebook . But when I connect this kernel using console, the %load magic will load file into a pager (like you you do 'man thecodefile.py' in console), not to the input line.

Anyone know how to change these behavior back to default?

Community
  • 1
  • 1
NathaneilCapital
  • 1,389
  • 5
  • 17
  • 23

1 Answers1

0

You ask two question here, please ask them separately. As for !su ausername there is no way to forward stdin through subprocess.

Matt
  • 27,170
  • 6
  • 80
  • 74
  • Thanks, I think I can just workaround this by making two steps, first go 'sh' then do 'su username' there. I will remove that part from the question. – NathaneilCapital Jan 03 '14 at 22:02