Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>NoPyPromptNew to Visual Studio Code? Get it now.
NoPyPrompt

NoPyPrompt

Aurélien Geron

|
386 installs
| (0) | Free
Removes >>> and ... from copy/pasted Python shell code and comments out the outputs. And vice versa.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NoPyPrompt VS Code Extension

NoPyPrompt is a VS Code extension to remove Python prompts (>>> and ...) from code samples, or add them back.

Features

For example:

>>> def cube(x):
...     return x**3
...
>>> cube(5)
125
>>> a = "Hello World"
>>> print(a)
Hello World

is converted to:

def cube(x):
    return x**3

cube(5)
#> 125

a = "Hello World"
print(a)
#> Hello World

And vice versa.

Just select the code and press Ctrl-Shift-, (or Cmd-Shift-, on MacOS). Alternatively, you can select "NoPyPrompt: Toggle Python Prompt >>>" from the command palette.

Known Issues

  • Multiple contiguous selections are treated separately.
  • In particular, this means that you should avoid rectangular selections, or else each line will be treated independently.

Release Notes

1.0.0

Initial release of NoPyPrompt.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft