JJayanth Kumarfix: resolve commlink behavior between server and worker
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(pyodide): ensure matplotlib agg backend is set to enable figure rendering (#746) * fix(pyodide): ensure matplotlib agg backend is set to enable figure rendering Injects `import matplotlib; matplotlib.use("agg")` into transformed user scripts unless the user has already set a backend. This resolves an issue where figures fail to render in Pyodide due to an incompatible default backend. The backend injection occurs before any other imports to ensure compatibility with `pyplot`. * refactor(pyodide): move matplotlib backend config from AST transformer to worker setup Removes `_build_backend_config` and `_has_backend_config` from `AutoAtomTransformer`. These functions previously injected `matplotlib.use("agg")` into transformed user scripts via AST. Instead, the matplotlib backend is now explicitly configured in `worker.js` during Pyodide initialization. This ensures consistent behavior across reloads and avoids entangling AST transformation logic with third-party library specifics. Fixes matplotlib rendering issues in Pyodide caused by the default `wasm_backend`. * fix(transformer): remove leftover backend_config reference after cleanup | 1 年前 | |
fix(chat): restore AI responses by passing correct id to ChatWidget The `id` prop was not being passed to the ChatWidget and was accidentally missplaced in the `onChange` causing an assignment to an undeclared identifier. The error from the `onChange` event handler prevented the AI from responding to user prompts.. | 1 年前 | |
Added prettier to pre-commit-hooks | 1 年前 | |
Added prettier to pre-commit-hooks | 1 年前 | |
Revision on feat: AI Chat Component (using OpenAI) #470 (#551) * Add Heart Disease Predictive Analysis app example to community gallery * Base version, need to process source * Integrated source (csv) and OpenAI + fixed scroll issue * Added chats docs + modified system context * Fixed timestamp and NaT issue + tested against all the examples * Undid changes to iris example * Undid change to pre commit hooks * Delete community_gallery/heart-disease-analysis directory * Update hello.py * Update components.py --------- Co-authored-by: Arnav Jaiswal <40910587+ShadowMasterAJ@users.noreply.github.com> | 1 年前 | |
fix: resolve commlink behavior between server and worker | 1 年前 | |
Update to version 0.1.50 (#606) Center align Clean up markdown fix partial scroll issue Simplify tableviewer Chat widget UI Improve chat widget ui Remove sidebar portal Improve sidebar styling Sidebar styling Table viewer Co-authored-by: Shivam Singhal <shivamsi@gmail.com> | 1 年前 | |
resolve: code review comments | 1 年前 | |
feat(errors): implement error handling and reporting for AutoAtomTransformer (#751) * feat(errors): add structured transform error reporting with frontend integration - Introduced `error_registry.py` to collect structured errors during AST transformation - Errors include type, filename, line number, message, and optionally component ID or atom name - Thread-safe via lock; supports register/get/clear - Updated `transform_source` to catch and register `SyntaxError` as transform errors - Enhanced error handling in `register_display_dependency_resolver` with error registration - `ScriptRunner` now: - Clears previous errors at script start - Sends either "components" or "errors:result" message based on presence of errors - Frontend: - Added `ErrorsReport.jsx` component for displaying transform errors - Updated `Dashboard.jsx` to render error fragments and align empty state formatting - `App.jsx` now handles new `errors:result` message type and routes errors to dashboard * feat(errors): add structured runtime error reporting and display improvements - Add `_safe_register_error` method to AST transformer to capture structured transformation errors - Wrap most lifting and analysis methods with try/except to register errors instead of crashing - Extend error object metadata to include component ID, atom name, and extra context - Improve debug logging and error traceability throughout the AST transformer - Add `has_errors()` to BasePreswaldService for script fallback error checks - Update ErrorsReport frontend to support collapsible/expandable error lists with CSS transitions - Style error list in `components.css` and refactor JSX to allow toggling long error output - Improve resilience and recovery logic in `ScriptRunner.compile_and_run()` when runtime errors occur * chore(transformer): minor cleanup and import reordering - Moved `register_error` import closer to usage in `reactive_runtime.py` - Removed unused imports from `registry.py` and reordered for clarity - Replaced bare `except` with `except Exception as e` for better debugging - Added `# noqa` directives for intentional style suppressions - No functional changes | 1 年前 | |
Update to version 0.1.50 (#606) Center align Clean up markdown fix partial scroll issue Simplify tableviewer Chat widget UI Improve chat widget ui Remove sidebar portal Improve sidebar styling Sidebar styling Table viewer Co-authored-by: Shivam Singhal <shivamsi@gmail.com> | 1 年前 | |
Move Tailwind Styles to `components.css` (#374) * CSS refactor - base components * CSS refactor - widgets | 1 年前 | |
Fix top bar (#608) Clean up markdown syntax highlighting for code Fix topbar topbar icon Sidebar + image widget Topbar styling Sidebar hover stuff Add preswald badge Tetris loading state hehe | 1 年前 |