Sharing Sandbox Programs and Code
Verified teachers can share their Sandbox programs with anyone. Anyone with the URL of a shared Sandbox program can view it in the editor.
Visiting the URL of a shared Sandbox program will take you to the IDE so you can see the output side-by-side with the code, mess around and make some changes, and even fork the program to your own Sandbox.
Whether students can share their Sandbox programs depends on their privacy settings. Student HTML programs are private by default and can only be shared if the student's school or district allows it and their Section teacher turns sharing on. Other program types, like Python or Java, can be shared by default unless the school or district has turned sharing off.
If you'd like to exclusively share the output, you can turn off "Show Code" in your share settings:
Note: Program sharing is not available for logged-out users, unverified teachers, students who aren't enrolled in a section, and Individual Learners and ESA Homeschool students.
To learn more about student program privacy settings, check out Managing Student Access to Public Programs on CodeHS.
Resource: Link-Sharing Sheet for Students
If your students are not able to use email to share links with each other, you can use this sheet to collect and distribute links for your class. Just make a copy in your own Google Drive and use the sheet to share student links.
Embedding Sandbox Programs
Sandbox programs also have an embed link, which is used to embed them in a webpage. The “Embed” link is the URL for your shared program with “/embed” at the end.
Note: Embedded programs only display for viewers if the program has sharing turned on. A private student HTML program won't display publicly when embedded.
Fork Sandbox Programs
Forking is the ability to copy a program to your own Sandbox, essentially taking a snapshot of it and making it your own. To fork a Sandbox program:
Go to the shared link of any Sandbox program that has sharing turned on.
Click the Fork button at the top right to create a separate copy of the code in your Sandbox.
Making and saving changes to this forked copy won't affect the original program.
Video Demos
Sharing Sandbox Programs
Forking Sandbox Programs
CodeHS Tutorial
Our team created a tutorial to show how you can use the CodeHS Graphics JavaScript library outside of CodeHS on any website. Check it out here:
Still have questions? Contact our team at support@codehs.com to learn more!




