Skip to main content

IPython magic for Windows PowerShell

Project description

powershellmagic is an IPython extension, modeled after IPython’s %%script magic, that supports the execution of IPython cells written in Windows PowerShell.


As a Python package:

$ pip install powershellmagic

As an IPython extension:

In [1]: %install_ext


In [1]: %load_ext powershellmagic

In [2]: %%powershell
   ...: Get-WMiObject -Class Win32_Process |
   ...:     Where-Object { $_.Name -like "*python.exe" } |
   ...:     Select-Object ProcessName, ProcessID, ParentProcessId |
   ...:     Format-Table -AutoSize

ProcessName ProcessID ParentProcessId
----------- --------- ---------------
ipython.exe      5600            5616
python.exe       1740            5600

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (5.5 kB view hashes)

Uploaded source

Built Distribution

powershellmagic-0.1.0-py2.py3-none-any.whl (4.0 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page