๐ŸŒ
CodeSandbox
codesandbox.io โ€บ s โ€บ python-iv4vx
Python - CodeSandbox
January 29, 2020 - CodeSandbox is a cloud development platform that empowers developers to code, collaborate and ship projects of any size from any device in record time.
Published ย  Nov 12, 2019
Author ย  Ranked-gh
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ docs โ€บ tutorial โ€บ getting-started-with-python
Getting Started with Python โ€“ CodeSandbox
In this tutorial, we will showcase two different approaches you can use to get started with Python in CodeSandbox: starting from a template or importing an existing Python project.
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ examples โ€บ package โ€บ python
python examples - CodeSandbox
Use this online python playground to view and fork python example apps and templates on CodeSandbox.
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ p โ€บ sandbox โ€บ python-starter-in2qez
Codesandbox
CodeSandbox is a cloud development platform that empowers developers to code, collaborate and ship projects of any size from any device in record time.
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ blog โ€บ introducing-python-support-in-codesandbox
Introducing Python Support in CodeSandbox - CodeSandbox
February 20, 2023 - The wait is over! CodeSandbox now officially supports Python development environments.
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ p โ€บ sandbox โ€บ python-pandas-93o5x1mvxy
Python + Pandas - Codesandbox
CodeSandbox is a cloud development platform that empowers developers to code, collaborate and ship projects of any size from any device in record time.
๐ŸŒ
Python Sandbox
pythonsandbox.com
Python Sandbox | Text Mode
Write your own Python Code ยท The file you are saving already has a later revision
๐ŸŒ
YouTube
youtube.com โ€บ watch
Coding in Python using CodeSandbox - YouTube
CodeSandbox makes it easy for developers to build full-featured projects right from their browser or mobile devices and now fully supports Python.Learn how y...
Published ย  February 21, 2023
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ examples โ€บ package โ€บ python โ€บ index.html
python/index.html examples - CodeSandbox
Use this online python/index.html playground to view and fork python/index.html example apps and templates on CodeSandbox.
Find elsewhere
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ s โ€บ python-editor-inwlm
python editor - CodeSandbox
November 18, 2019 - python editor by GameHunter101
Published ย  Nov 15, 2019
Author ย  GameHunter101
๐ŸŒ
Reddit
reddit.com โ€บ r/python โ€บ announcing python support in codesandbox, start a python vm with one click
r/Python on Reddit: Announcing Python Support in CodeSandbox, start a Python VM with one click
January 12, 2023 - Hey all! I'm one of the co-founders of CodeSandbox. We just launched Python support on CodeSandbox, which allows you to quickly create Python prototypes or do full development of Python in CodeSandbox (together with our VSCode extension).
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ s โ€บ python-code-editor-ow9xt
python-code-editor - CodeSandbox
May 4, 2021 - python-code-editor using brace, react, react-ace, react-dom, react-helmet, react-scripts, react-simple-code-editor
Published ย  May 04, 2021
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ s โ€บ x8yd7
LEARN PYTHON NOW(AND DITCH JAVA) - CodeSandbox
December 3, 2020 - LEARN PYTHON NOW(AND DITCH JAVA) by 2002592
Published ย  Oct 02, 2020
Author ย  2002592
๐ŸŒ
CodeHS
codehs.com โ€บ explore โ€บ sandbox โ€บ python
Python Sandbox | CodeHS
This runs Python 3 console programs, the latest version of the language. This program type lets you install packages for your programs.
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ p โ€บ sandbox โ€บ api-python-g4v6ny
API Python - Codesandbox
CodeSandbox is a cloud development platform that empowers developers to code, collaborate and ship projects of any size from any device in record time.
๐ŸŒ
CodeSandbox
codesandbox.io โ€บ s โ€บ pthbv
python-3 - CodeSandbox
January 19, 2021 - python-3 by mxshapira using @stackbit/unibit, nodemon, python
Published ย  Jan 19, 2021
Author ย  mxshapira
๐ŸŒ
GitHub
github.com โ€บ pomdtr โ€บ code-sandbox-python
GitHub - pomdtr/code-sandbox-python: Created with CodeSandbox
Created with CodeSandbox. Contribute to pomdtr/code-sandbox-python development by creating an account on GitHub.
Author ย  pomdtr
๐ŸŒ
Reddit
reddit.com โ€บ r/golang โ€บ a code sandbox server for c++, node.js and python - written in go
r/golang on Reddit: A code sandbox server for C++, Node.js and Python - written in Go
September 4, 2023 -

The Links (updated after rename runner -> codecanvas)

  • Try the sandbox: https://u64.cam/codecanvas

  • Source code: https://github.com/camerondurham/codecanvas

TLDR

Runner is a simple server, CLI and frontend to run C++, Node.js, and Python code in a lightly isolated sandbox. I'm open to feedback/critique/questions/contributions, so feel free to pile on!

Usage

The project is deployed here to try out: https://u64.cam/runner

I've added a Makefile to run the server locally along with development instructions if anyone's interested.

Disclaimer: The server's been up since last deployment (65 days) but I can't promise it will hold up to too much abuse. Apologies if it crashes now.

Implementation

The server runs code from users in a small sandbox with limited CPU, stack size, file size, child processes and a set timeout (see code runner). FWIW, the project has 5 direct dependencies: cobra, chi, cors, mock and , x/sys.

The project mainly uses unix setrlimit to restrict user code. On server initialization, a bunch of tmp directories and users are setup to run user code and the engine round-robins these users to run code.

Some fun things about this project:

  1. getting integration tests mostly to work in CI

  2. using Fly.io was super easy, 10/10 would recommend especially for simple projects like this

  3. learning about Unix rlimit syscalls and getting them to work (see process/main.go and limiter.go)

  4. using Go for the project helped me iterate pretty quickly and get something working E2E faster than I expected

Some things I'm not proud of are:

  1. the amount of shell script glue I had to write to get it to work

  2. the fact that I have to spawn a child process with cmd.Run() to get the process limiting logic to work as expected

  3. the slow frontend UI load time

  4. The name is pretty unimaginative

Feedback

Please do feel free to give me honest feedback. I am always open to hearing how I could have done better and appreciate your time looking at it.

I do acknowledge this is a toy project and has been done a million times (e.g. see engineer-man/piston for a much more feature complete implementation). I'll still take that criticism or ref's to better implementations.

Contributions?

I'll still try to respond to PR's to improve things if someone wants to contribute but cannot promise any response SLA :)

However, I'm no longer actively developing this since honestly I think most of the fun part of the project is done.

Privacy Disclaimer

Your code is logged on the server side which is subject to fly.io's log retention times (I really should fix this). Your source code is deleted from the server immediately after being executed, should live on the server for like 1-2s at most.

Acks

This does not represent my employer in any capacity and is just a hobby project I built for fun.

The project was to build a somewhat multi-tenant system and was inspired by engineer-man/piston(the server behind the "I Run Code" discord bot). I built it when I was bored with work projects with some former classmates.


Edit 1: formatting Edit 2: rename project to codecanvas from runner

๐ŸŒ
Together AI
docs.together.ai โ€บ docs โ€บ code-execution
Code Execution (CSB SDK) - Together.ai Docs
The CodeSandbox SDK is only available on TypeScript for now, Python support is coming!