- Pyroom
- Tutorials
- Sharing code
- Embed a runnable Python program on a website
Embed a runnable Python program on a website
Share as iframe gives you embed code with options: read-only code, which buttons to show and the default language.
Advanced Video coming soon. The steps below show everything the video will cover.
Steps
- Write the program you want to show on your site.
- Open Share, then Share as iframe.
- Choose what visitors can do. For example, make the code read-only so the example stays intact.
- Select Copy iframe and paste the code into your web page or learning platform.
Read the transcript
Write the program you want to show on your site.
Open Share, then Share as iframe.
Choose what visitors can do. For example, make the code read-only so the example stays intact.
Select Copy iframe and paste the code into your web page or learning platform.
More Sharing code tutorials
- Share Python code by link · Beginner
- Share Python code offline with a QR code · Intermediate
- Share a program and open it on another device · Intermediate