# Setting a pyodide interpreter Pyscript will automatically set the interpreter for you, but you can also set it manually. This is useful if you want to use a different version than the one set by default. ## Development setup To get started, let's create a new `index.html` file and import `pyscript.js`. ```html Interpreter ``` We are using the pyodide CDN to setup our interpreter, but you can also download the files from [the pyodide GitHub release](https://github.com/pyodide/pyodide/releases/tag/0.22.0a3), unzip them and use the `pyodide.js` file as your interpreter. ## Setting the interpreter To set the interpreter, you can use the `interpreter` configuration in the `py-config` element. In this tutorial, we will use the default `TOML` format, but know that you can also use `json` if you prefer by changing the `type` attribute of the `py-config` element. ```html Interpreter [[interpreters]] src = "https://cdn.jsdelivr.net/pyodide/v0.22.0a3/full/pyodide.js" name = "pyodide-0.22.0a3" lang = "python" ``` ## Confirming the interpreter version To confirm that the interpreter is set correctly, you can open the DevTools and check the version from the console. But for the sake of this tutorial, let's create a `py-script` tag and print pyodide's version. ```html Interpreter [[interpreters]] src = "https://cdn.jsdelivr.net/pyodide/v0.22.0a3/full/pyodide.js" name = "pyodide-0.22.0a3" lang = "python" import pyodide print(pyodide.__version__) ```