Coder Social home page Coder Social logo

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

PySnippet's Projects

.github icon .github

Commonized issue and pull-request templates, code of conduct, etc. for PySnippet repositories.

django-forbid icon django-forbid

Secure your Django app by controlling the access - grant or deny user access based on device and location, including VPN detection.

fastapi-oauth2 icon fastapi-oauth2

Easy to integrate OAuth2 authentication with support for several identity providers.

fuzzymap icon fuzzymap

The Fuzzy Map is a polymorph Python dictionary that always returns the value of the closest similar key.

pysnippet icon pysnippet

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

thumbnails icon thumbnails

Video thumbnail generator for modern web video players such as Plyr, Videojs, Flowplayer, Fluid Player, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.