Skip to main content

powershellmagic

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

Install

As a Python package:

$ pip install powershellmagic

As an IPython extension:

In [1]: %install_ext https://raw.github.com/etgalloway/powershellmagic/master/powershellmagic.py

Use

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

Metadata

Release files for powershellmagic 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for powershellmagic 0.1.0
File Size Uploaded
powershellmagic-0.1.0.zip 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for powershellmagic 0.1.0
File Interpreter ABI Platform
powershellmagic-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.6 kB

Release files / powershellmagic-0.1.0.zip

Download URL powershellmagic-0.1.0.zip
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
71492d6b3f7fd6643864cedc2e425e11b809ca854216341c5fab84798554331a
BLAKE2b-256 checksum
How to use checksums
3130f614db12bb179f5aa813ab354194e73bef370a13dd8a880542186fb0b620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / powershellmagic-0.1.0-py2.py3-none-any.whl

Download URL powershellmagic-0.1.0-py2.py3-none-any.whl
Size 4.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
76164bcc2bb85c0988a54d4c4c3403cf0886b7a9255d599dcdb22010b62ad991
BLAKE2b-256 checksum
How to use checksums
38c9917e1c9d6c8d16984f021deba5b2a5f0f2c5582a62fb437a237cba460647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page