Open2

Python on Sonoma

sum635sum635

Install Pyxel on venv

python -m venv --prompt venv .venv
source .venv/bin/activate
pip install pyxel

Hello, Pyxel

pyxel copy_examples &&
pyxel run pyxel_examples/01_hello_pyxel

‣ Quit with Esc key

Deactivate venv

deactivate

Set up for VS Code

.vscode/extensions.json
{
  "recommendations": [
    "ms-python.python",
    "ms-python.black-formatter",
    "ms-python.isort"
  ]
}
.vscode/settings.json
{
  "[python]": {
    "editor.codeActionsOnSave": {
      "source.organizeImports": true
    },
    "editor.defaultFormatter": "ms-python.black-formatter",
    "editor.formatOnSave": true
  },
  "extensions.ignoreRecommendations": false,
  "isort.args": [
    "--profile",
    "black"
  ],
  "python.terminal.activateEnvInCurrentTerminal": true
}