Skip to content

A JavaScript plugin that allows running Python code on StackOverflow, adding just one line of code.

License

Notifications You must be signed in to change notification settings

pysnippet/pysnippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

PySnippet

StackOverflow License snippet.js snippet.min.js

PySnippet is a JavaScript plugin that allows using Python snippets on StackOverflow, adding just one line of code. The plugin uses PyScript to run a python code in the browser. Using the PySnippet is effective if you want to show an output of simple things that primarily use neither OS nor drivers.

Open CDN

The CDN is powered by jsdelivr.

https://cdn.jsdelivr.net/gh/pysnippet/pysnippet@latest/snippet.js
https://cdn.jsdelivr.net/gh/pysnippet/pysnippet@latest/snippet.min.js

Usage

  1. Add the plugin as an external library in the HTML section.
    <script src="https://cdn.jsdelivr.net/gh/pysnippet/pysnippet@latest/snippet.js"></script>
  2. Paste your Python code into the JavaScript section.
  3. Uncheck the "Show console" checkbox to hide the JavaScript console. The states of rest checkboxes do not matter and depend on your choice.
    • Show console
    • Use BabelJS / ES2015
    • Hide snippet by default

License

Copyright (C) 2022 Artyom Vancyan. Apache 2.0

About

A JavaScript plugin that allows running Python code on StackOverflow, adding just one line of code.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks