r/IPython • u/ernesthutchinson • Dec 10 '17
Use Powershell instead of CMD for !
Is to possible to configure IPython use powershell.exe on Windows instead of cmd.exe for the ! system prompt shortcut? I looked through the docs but don't see a way. I know I can do "!powershell -command ls" for example but it's be nice to just be able to do "!ls". I'm using IPython 6.2.1 with Python 3.6.3 on Windows 10 if it matters. Thanks.
2
Upvotes
View all comments
Show parent comment
2
u/rngr Dec 11 '17
As an example of creating a %powershell magic, see my answer on stack overflow.