PythonWidgetStateData
PythonWidgetStateData
#include <PythonWidgetStateData.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | instance_id |
| std::string | display_name |
| std::string | last_script_path Last script path that was loaded/run. |
| bool | auto_scroll Whether to auto-scroll the output. |
| int | font_size Font size for the editor/output. |
| std::vector< std::string > | command_history Command history for the console REPL. |
| std::vector< std::string > | recent_scripts Recent script file paths. |
| std::string | venv_path Active virtual environment path (Phase 6). |
| std::string | last_working_directory Last working directory for scripts. |
| bool | show_line_numbers Whether to show line numbers in the editor. |
| std::string | editor_content Unsaved editor buffer content. |
| std::string | script_arguments Script arguments passed via sys.argv (Phase 5). |
| std::string | auto_import_prelude Auto-import prelude code executed on interpreter init (Phase 5). |
| bool | prelude_enabled Whether the auto-import prelude is enabled (Phase 5). |
Public Attributes Documentation
variable instance_id
std::string instance_id;variable display_name
std::string display_name = "Python Console";variable last_script_path
std::string last_script_path;Last script path that was loaded/run.
variable auto_scroll
bool auto_scroll = true;Whether to auto-scroll the output.
variable font_size
int font_size = 10;Font size for the editor/output.
variable command_history
std::vector< std::string > command_history;Command history for the console REPL.
variable recent_scripts
std::vector< std::string > recent_scripts;Recent script file paths.
variable venv_path
std::string venv_path;Active virtual environment path (Phase 6).
variable last_working_directory
std::string last_working_directory;Last working directory for scripts.
variable show_line_numbers
bool show_line_numbers = true;Whether to show line numbers in the editor.
variable editor_content
std::string editor_content;Unsaved editor buffer content.
variable script_arguments
std::string script_arguments;Script arguments passed via sys.argv (Phase 5).
variable auto_import_prelude
std::string auto_import_prelude = "import numpy as np\nfrom whiskertoolbox_python import *";Auto-import prelude code executed on interpreter init (Phase 5).
variable prelude_enabled
bool prelude_enabled = true;Whether the auto-import prelude is enabled (Phase 5).
Updated on 2026-11-13 at 20:25:39 +0000