Python can't run in your browser

Agent Games is mostly free and very secure because we never run your code on our servers. Your code runs in your own browser, using WebAssembly.

If WebAssembly is turned off or blocked, Python can't start. Every modern browser has it on by default, so the cause is usually a security setting, an old browser or a school policy. The checks and steps below help you find it and fix it.

Check this browser

Open this page in the browser that has the problem. It checks WebAssembly, web workers, your browser's version, memory, storage and whether your network can reach our Python files, then tells you what to fix.

Turn WebAssembly back on

Open the card for your browser. WebAssembly is on by default in all of them, so these steps undo whatever turned it off.

Google Chrome

WebAssembly is on by default in Chrome, on computers and on Android.

  1. Update Chrome: menu ⋮ > Help > About Google Chrome. On Android, update it in the Play Store.
  2. If Python is blocked or very slow: menu ⋮ > Settings > Privacy and security > Security > Manage JavaScript optimization & security.
  3. Choose "Sites can use JavaScript optimization", or add agentgames.io to the sites allowed to use it.
  4. Reload this page. On a school or work device, ask IT to allow JavaScript JIT for agentgames.io.

Download or update Chrome

Microsoft Edge

WebAssembly is on by default in Edge. Its enhanced security mode can block it or make Python very slow.

  1. Click the lock icon to the left of the address.
  2. If it says "Enhanced security is active for this site", turn off "Use enhanced security for this site".
  3. Or open Settings > Privacy, search, and services > Security > Enhance your security on the web > Manage enhanced security for sites, and add agentgames.io as an exception.
  4. Reload this page.

Download or update Edge

Firefox

WebAssembly is on by default in Firefox. Python needs Firefox 114 or newer.

  1. Update Firefox: menu ☰ > Help > About Firefox.
  2. Type about:config in the address bar and accept the warning.
  3. Search for javascript.options.wasm and make sure it is true (double-click it to change it).
  4. Reload this page.

Download or update Firefox

Safari on Mac

WebAssembly is on by default in Safari. Lockdown Mode turns it off. Python needs Safari 16.4 or newer.

  1. Update macOS from Software Update to get the newest Safari.
  2. If Lockdown Mode is on, choose Safari > Settings for agentgames.io and untick "Enable Lockdown Mode".
  3. Make sure JavaScript is turned on in Safari's settings (Security).
  4. Reload this page.

How to update your Mac

Safari on iPhone or iPad

WebAssembly is on by default. Lockdown Mode turns it off, in Safari and in the other browsers on iPhone and iPad. Python needs iOS 16.4 or newer.

  1. Update iOS: Settings > General > Software Update.
  2. If Lockdown Mode is on, tap aA in the address bar > Website Settings, and turn off Lockdown Mode for this site.
  3. If Python still can't start, turn Lockdown Mode off (Settings > Privacy & Security > Lockdown Mode) or use another device: Lockdown Mode can block WebAssembly even for sites you exclude.
  4. Make sure JavaScript is turned on in Safari's Advanced settings, then reload this page.

How to update your iPhone or iPad

Brave

WebAssembly is on by default in Brave.

  1. Click the Brave Shields (lion) icon in the address bar and make sure scripts are allowed for this site.
  2. Brave is built on Chrome: if it has a JavaScript optimization setting under Settings > Privacy and security, allow it for agentgames.io.
  3. Update Brave to the newest version.
  4. Reload this page.

Download or update Brave

Opera

WebAssembly is on by default in Opera.

  1. Update Opera to the newest version.
  2. Turn off script-blocking or ad-blocking extensions for agentgames.io.
  3. Make sure JavaScript is allowed for this site in Opera's site settings.
  4. Reload this page.

Download or update Opera

Samsung Internet

WebAssembly is on by default in Samsung Internet. Python needs version 23 or newer.

  1. Update Samsung Internet in the Galaxy Store or the Play Store.
  2. Turn off ad-blocker or content-blocker add-ons for this site.
  3. Make sure JavaScript is allowed in Samsung Internet's settings.
  4. Reload this page. If it still fails, try Chrome.

Samsung Internet on the Play Store

School Chromebook (managed)

WebAssembly is on by default, but a school can turn it off. Only your school's IT team can change this.

  1. Tell your teacher or IT team that Python on Agent Games needs WebAssembly (JavaScript JIT).
  2. Ask IT to add [*.]agentgames.io to the JavaScriptJitAllowedForSites and JavaScriptOptimizerAllowedForSites policies.
  3. Ask them to allow agentgames.io, editor.agentgames.io and cdn.jsdelivr.net in the web filter.
  4. Restart the Chromebook so the new policies load, then reload this page.

How to update a Chromebook

In-app browsers (Instagram, Facebook, TikTok)

Apps open links in their own built-in browser, which may not run Python.

  1. Tap ⋯ or the share icon.
  2. Choose "Open in browser" (Safari or Chrome).

Still stuck?

  • Try another browser, or another device such as a home computer.
  • Reload the page. The first time, Python has to download (about 6.3 MB), and on a slow connection that can time out. After that it is saved in your browser and starts faster.
  • Ask your teacher for help.

What to tell your school's IT team

  • Allow agentgames.io, editor.agentgames.io and cdn.jsdelivr.net in the web filter. The jsDelivr CDN is only needed for a few courses that use extra packages.
  • On managed Chrome, Edge or ChromeOS, add [*.]agentgames.io to the JavaScriptJitAllowedForSites and JavaScriptOptimizerAllowedForSites policies.
  • On managed Edge, make sure enhanced security mode is not enforced for agentgames.io.