Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional playground resource ? #2

Closed
therealadityashankar opened this issue Oct 14, 2020 · 1 comment
Closed

additional playground resource ? #2

therealadityashankar opened this issue Oct 14, 2020 · 1 comment

Comments

@therealadityashankar
Copy link

therealadityashankar commented Oct 14, 2020

Hi Ayushi,

I've a code project called wc-code, https://github.com/vanillawc/wc-code,

if you copy the minimal example (below) in a text file and run a file server on it (like python3 -m http.server, this will not work without a web server), you'll see a default python interactive workspace,

<!DOCTYPE html>
<head>
<script type="module" src="https://cdn.jsdelivr.net/gh/vanillawc/wc-code@1.0.3/src/wc-code.js"></script>
</head>
<body>
  <wc-code mode="python">
    <script type="wc-content">
       language = "python"
       what_is_it = "the coolest"
       print(f"{language} is {what_is_it}")
    </script>
  </wc-code>                                                                                         
</body>

I use these extensively on my website for coding tutorials,
(all the blocks with "run-code" in them which allow running python code, they're wc-code instances, it takes some time to load the interpreter since its python running in your browser, literally, these are essentially pyodide instances, another project you should definitely add here too),

I was hoping if you could add this resource to the link, that'd be really cool

@ayushi7rawat
Copy link
Owner

Please refer to the CODE OF CONDUCT.md and CONTRIBUTING.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants