Indicates whether Python is running in a Pyodide environment. Returns: `True` when `sys.platform` is `emscripten`, otherwise `False`.
()
| 38 | |
| 39 | |
| 40 | def is_pyodide(): |
| 41 | """ |
| 42 | Indicates whether Python is running in a Pyodide environment. |
| 43 | |
| 44 | Returns: |
| 45 | `True` when `sys.platform` is `emscripten`, otherwise `False`. |
| 46 | """ |
| 47 | return sys.platform == "emscripten" |
| 48 | |
| 49 | |
| 50 | def is_ios(): |