Dick Moores | 12 Jul 07:15

Puzzled

I just tried to do something on IPython that works fine at the Win XP
command line:

In [26]: python setup.py build
-----------------------------------------
   File "<ipython console>", line 1
     python setup.py build
                ^
SyntaxError: invalid syntax

What should I do instead? And where could have looked this up?

Thanks,

Dick Moores
Dick Moores | 12 Jul 08:19

Re: Puzzled

Sorry, that's 'limodou'.

Dck Mores

On Fri, Jul 11, 2008 at 10:17 PM, Dick Moores <rdmoores <at> gmail.com> wrote:
> I just tried to do something on IPython that works fine at the Win XP
> command line:
>
> In [26]: python setup.py build
> -----------------------------------------
>   File "<ipython console>", line 1
>     python setup.py build
>                ^
> SyntaxError: invalid syntax
>
> What should I do instead? And where could have looked this up?
>
> Thanks,
>
> Dick Moores
>
Ville M. Vainio | 12 Jul 14:16
Gravatar

Re: Puzzled

On Sat, Jul 12, 2008 at 9:19 AM, Dick Moores <rdmoores <at> gmail.com> wrote:

>> I just tried to do something on IPython that works fine at the Win XP
>> command line:
>>
>> In [26]: python setup.py build
>> -----------------------------------------
>>   File "<ipython console>", line 1
>>     python setup.py build
>>                ^
>> SyntaxError: invalid syntax
>>
>> What should I do instead? And where could have looked this up?

- You can do !python setup.py build
- You could use the sh profile that more closely resembles command
line (and you don't need to type the !)
- You can run %rehashx

%quickref gives you a quick reference with this information.

--

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
Dick Moores | 12 Jul 15:50

Re: Puzzled

On Sat, Jul 12, 2008 at 5:16 AM, Ville M. Vainio <vivainio <at> gmail.com> wrote:
> On Sat, Jul 12, 2008 at 9:19 AM, Dick Moores <rdmoores <at> gmail.com> wrote:
>
>>> I just tried to do something on IPython that works fine at the Win XP
>>> command line:
>>>
>>> In [26]: python setup.py build
>>> -----------------------------------------
>>>   File "<ipython console>", line 1
>>>     python setup.py build
>>>                ^
>>> SyntaxError: invalid syntax
>>>
>>> What should I do instead? And where could have looked this up?
>
> - You can do !python setup.py build

Yes! Thank you!

> - You could use the sh profile that more closely resembles command

I can find nothing in quickref on the sh profile. I did find 'profile, but:

In [21]: profile
No profile active.

> line (and you don't need to type the !)
> - You can run %rehashx

Why do you suggest rehashx? I ran it, and now I have 637 aliases! (see
(Continue reading)

Dick Moores | 12 Jul 08:21

Re: Puzzled

And delete that last.

On Fri, Jul 11, 2008 at 11:19 PM, Dick Moores <rdmoores <at> gmail.com> wrote:
> Sorry, that's 'limodou'.
>
> Dck Mores
>
> On Fri, Jul 11, 2008 at 10:17 PM, Dick Moores <rdmoores <at> gmail.com> wrote:
>> I just tried to do something on IPython that works fine at the Win XP
>> command line:
>>
>> In [26]: python setup.py build
>> -----------------------------------------
>>   File "<ipython console>", line 1
>>     python setup.py build
>>                ^
>> SyntaxError: invalid syntax
>>
>> What should I do instead? And where could have looked this up?
>>
>> Thanks,
>>
>> Dick Moores
>>
>

Gmane