Run ❯
Get your
own Python
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
import py_compile, tempfile, os # Create a temporary Python source file and compile it to bytecode with tempfile.NamedTemporaryFile('w', suffix='.py', delete=False) as f: f.write('x = 1\n') src = f.name py_compile.compile(src, doraise=True) print('OK') os.remove(src)
OK