When an ipython console connect to an existing kernel linked to a notebook, %load magic can not load code into console

161 Views Asked by At

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?

1

There are 1 best solutions below

1
On

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