1. Pyroom
  2. Tutorials
  3. Sharing code

Sharing code

Pyroom can share a program in several ways: a full link that carries the code itself, a QR code for phones, a short online code, or an embed for a website.

When to use it

Use sharing to hand out starter code, collect a student's work, show a program on a projector, or put a runnable example on your own website.

Pick the right method

Open Menu β†’ Share β†’ Open Share dialog and add a task name or author if you like.

  • Offline (QR): the full program is packed into the link or QR code. No server stores anything, so it works without internet β€” ideal for small programs.
  • Online: Pyroom creates a short link and an 8-character code, plus a ready-to-send message. Best for classroom links and longer programs.
  • Share as iframe: embed code for a website, blog or learning platform, with options for which panels to show.

Opening a share

People open the link, scan the QR code, or choose Menu β†’ Share β†’ Enter share code. Pyroom asks before replacing their current code, so nobody loses work by accident.

Learning path

The Beginner tutorial copies a full link. The Intermediate tutorial makes a QR code that works with no internet. The Advanced tutorial creates an iframe embed for a web page.

Good to know

Large programs may not fit in a QR code; use the link instead. Shares include code and task text, but not uploaded resource files or downloaded libraries. Teachers can turn on auto-lock so shared tasks arrive locked.

Feature overview β†’

Beginner

Share Python code by link

Beginner

Beginner Video coming soon. The steps below show everything the video will cover.

Learn how to share a Python program with a link in Pyroom, so anyone can open and run it in the browser β€” no install or sign-up needed.

Open tutorial β†’

Intermediate

Advanced

All tutorials β†’

Try it in the Playground

Nothing to install and no account needed.

Open Playground β†’