[IPython-user] % prefix w/ magics no longer work in pysh

Ville Vainio vivainio at kolumbus.fi
Mon Jun 6 12:04:25 CDT 2005


On Sun, 2005-06-05 at 12:56 -0600, Fernando.Perez at colorado.edu wrote:
> Quoting Ville Vainio <vivainio at kolumbus.fi>:
> 
> > I downloaded and installed the latest ipython, and now:
> >
> > [~]|1> %magic
> > ------------------------------------------------------------
> >    File "<console>", line 1
> >      %ipmagic("magic ")
> >      ^
> > SyntaxError: invalid syntax
> >
> > This only happens in pysh-mode.
> 
> Mmh, I don't see that behavior:
> 
> IPython profile: pysh
> maqroll[~]|1> %magic
> maqroll[~]|2> %cd
> 
> Could you try temporarily renaming ~/.ipython to ~/.ipython.foo or whatever and
> restarting?  This will force a recreation of your config directory with fresh

Yup, it worked, and I tracked it to "exec pysh.py" that was left
dangling in my ipythonrc-pysh (I was running an
"older-than-previous-version" on my home computer). False alarm.




More information about the IPython-user mailing list