Quantstrip docs
Open Dashboard
Python Editor showing file tree, code editor, and live clients panel
assets/screenshots/python_editor_overview.png Screenshot not yet added — drop the file above into docs/assets/screenshots/ and it will appear here automatically.
Python Editor — file tree, editor, and live clients panel

Layout

A file tree on the left rooted at your clients folder, a tabbed code editor in the middle, and a "Live Clients" panel listing whatever's currently running or failed according to the service — the same underlying state the Client Monitor page visualizes.

Working copy → Deploy

Opening a client that's currently live doesn't open the live file. It opens (or creates) a working copy at Data\clients\working\<name>.py. Edits to the working copy do not affect the running client.

When you click Deploy:

  1. The working copy is checked for valid Python syntax (ast.parse) before anything else happens.
  2. The previous live version is backed up to Data\clients\_deploy_history\<timestamp>\.
  3. The running client is stopped.
  4. The new source replaces the live file.
  5. The client is restarted.

Each deploy creates a timestamped backup, enabling rollback to a previous version.

Run (in-editor simulation)

The Run button does not deploy. It loads the editor's current code as a fresh module and runs its Client class on a daemon thread.

Executes in the same process as the dashboard, not in a subprocess or sandbox. Code executed via Run has the same system access as the dashboard process itself.

Packages

A package-manager panel lets you pip install/uninstall against the app's own embedded Python interpreter, so a client script's dependencies can be managed without leaving the browser.