pyfigures 0.2.7__tar.gz → 0.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyfigures-0.2.7 → pyfigures-0.2.8}/PKG-INFO +17 -5
- {pyfigures-0.2.7 → pyfigures-0.2.8}/README.md +13 -1
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/__main__.py +3 -1
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/__init__.py +18 -1
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/categorized_mcp.py +9 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/gui_selection.py +17 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/launch.py +5 -1
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/live_mcp.py +31 -2
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/partner_gui.py +37 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/session.py +6 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/web_chat.py +61 -11
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/ezfig.py +6 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/tutorial.py +17 -8
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/web_chat_panel.py +223 -48
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/core.py +29 -4
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/overlays.py +25 -9
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/self_test.py +22 -11
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/version.py +1 -1
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures.egg-info/PKG-INFO +17 -5
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures.egg-info/SOURCES.txt +2 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures.egg-info/requires.txt +3 -3
- {pyfigures-0.2.7 → pyfigures-0.2.8}/setup.py +3 -3
- pyfigures-0.2.8/tests/test_chat_reports_20261110.py +354 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_launchers.py +24 -1
- pyfigures-0.2.8/tests/test_web_chat_real_page.py +49 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/LICENSE +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/__init__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/album/__init__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/album/__main__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/arrowheads.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/advanced_annotations.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/assistant_actions.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/existing_tools.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/figure_state.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/letter_sequence.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/live_structure.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/manual_help.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/manual_help_verified.json +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/native_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/original_registry.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/plot_lifecycle.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/pointer_context.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/readability.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/recovery.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/result_evidence.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/assistant/submission_review.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/atomic_io.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/burned_text.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/colorbar_script.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/constant_panels.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/cvd.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/equations.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/extras.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/flip.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/__init__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/about_dialog_pzf.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/annotation_editor.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/asingleoraspanel.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/autolettering_widget.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/bg_color_selection.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/bug_recorder.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/caption_dialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/colorassistant.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/command_box.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/ctrl_key.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/deckcraft_blank.json +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/dimchooser.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/drag_sketch.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/drop_sketch.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/editable_export.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/editor_interaction.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/emptyimagedialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/equation_dialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/fonts/README.md +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/fontselectorgui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/group_builder_GUI.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/headless_ops.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/integrity_ops.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/journal_style_editor.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/keep_tst_images_for_pzf.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/label_rows.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/latex_code_dialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/latex_support.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/lutmultiselector.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/mcp_server_dialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/pagelimitswidget.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/panelcreationwidget.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/pdf_support.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/pfgui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/portable_fonts.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/qc_reports.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/region_picker.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/render_headless.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/review/__init__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/review/_template.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/review/dialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/review/html_export.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/review/send.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/row_letters.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/scalebareditor.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/scrollableEZFIG.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/show_me_how.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/show_me_where.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/simple_text_editor.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/spaceselector.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/style_text_headless.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/svg_painter.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/textEditWatcher.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/theme.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/tipdialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/user_extra_translation.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/user_prefs.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/video_support.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/widget_for_inset.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/gui/zoom_links.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/guides.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/history.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/icons/__init__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/icons/pyfigures.png +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/icons/pyfigures_album.png +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/icons/pyfigures_poster.png +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/image_search.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/journal_styles.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/latex_document.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/layout_formula.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/layout_picture.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_control.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_server.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/__init__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/annotations.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/app.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/content.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/export.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/guidance.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/image_search.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/journal.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/poster.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/qc.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/stacks.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/structure.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/upkeep.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/mcp_tools/workflow.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/office_math.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/offscreen.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/panel_source_preview.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/path_resolution.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/__init__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/__main__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/page_presets.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_align.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_canvas.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_headless.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_layout_dialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_layouts.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_recipe.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_shapes.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_source_data.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_templates.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_text_dialog.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_web_export.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/poster_window.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/poster/serialization.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/qt_exit.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/recipe.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/script_helpers.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/source_snapshot.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/stack_info.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures/zoom_geometry.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures.egg-info/dependency_links.txt +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/pyfigures.egg-info/top_level.txt +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/setup.cfg +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_advanced_edit_tools.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_arrow_tip.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_arrowheads.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_assistant_live.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_atomic_io.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_audit_fixes.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_audit_fixes_20261008.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_backgrounds.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_bug_recorder.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_bugs_found_by_gui_e2e.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_canvas_context_menu.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_canvas_keyboard_and_clicks.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_channels_property_20261105.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_codex_trial_findings.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_colour_bar_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_command_box.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_consolidate_download.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_constant_panels.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_data_plots_and_stats.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_deserialization.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_dnd_canvas_more.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_dnd_combine_with_target.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_dnd_main_editor.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_draft_figure.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_drop_sketches.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_editable_export.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_editable_plot_text.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_editor_interaction.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_editor_rotate_and_tool_20261105.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_empty_inset_roi_20261106.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_equations.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_exception_handler.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_export_waits_for_images.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_fig_rect_cache.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_figure_colors.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_figure_diff.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_fiji_formats.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_file_io_encoding.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_file_state_tracking.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_flip.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_folder_drag_and_drop.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_fonts_available.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_forbidden_files.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_e2e_context_menu.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_e2e_coverage.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_e2e_dnd.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_e2e_image_editor.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_e2e_menus.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_e2e_monkey.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_e2e_tutorials.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_e2e_visual.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_menus_and_toolbar.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_more_actions.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_gui_workflow_actions.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_guide_routing.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_image_opacity_reload.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_image_search.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_inset_crop_margins_20261106.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_integrity_and_stats.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_interactive_tools.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_internal_dnd_group_placement.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_inverted_luts.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_journal_styles.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_latex_code.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_latex_documents.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_latex_extras.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_latex_full.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_latex_stress_findings.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_layout_canvas_geometry.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_layout_formula.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_layout_stability_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_lazy_loading_placeholder_20261106.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_lazy_reflow.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_lettering_restore.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_licensing.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_lif_series_reading.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_llm_feedback_20261020.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_lut_remove_20261105.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_max_height.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_mcp_audit_findings.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_mcp_control.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_mcp_history.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_mcp_server.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_mcp_stdio_protocol.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_mcp_text_arguments.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_missing_images_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_normalization.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_offscreen_env.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_ome_zarr.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_omero.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_open_perf.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_panel_editor.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_panel_editor_more.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_panel_preview.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_parity_mcp.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_path_resolution.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_pdf_panels.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_placeholder_grid.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_portability.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_poster_files_and_recipe.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_poster_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_poster_mcp.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_poster_stress_findings.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_poster_vector_figures.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_property_setters_validate.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_pyf_loader_thread_deadlock.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_pyf_loading.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_pymupdf_offer.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_qc_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_qc_mcp_tools.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_qc_reports.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_qt_exit.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_recipe.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_recipe_checks_bundles.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_recipe_extra_keys.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_recipe_for_llms.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_recipe_more_keys.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_recordings.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_render_export.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_restyle_texts.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_review_and_library.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_row_letters_chat_style_20261106.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_row_letters_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_ruler_labels.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_save_reminder.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_scale_bar_calibration.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_scale_consistency.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_schema_sweep_findings.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_self_test.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_send_to_poster.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_shapes.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_show_me_how.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_show_me_where_20261105.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_source_data.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_stack_tools.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_stack_tools_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_stack_with_image.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_stress_findings.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_stress_findings_20261028.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_stress_findings_20261029.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_style_audit_calbar.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_svg_clipping_and_pdf_pages.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_svg_empty_glyph.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_tex_install.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_text_editor_and_widgets.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_tutorial_controller.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_tutorials.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_typography_tidy.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_uneven_rows_20261105.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_user_chat_findings_20261104.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_user_findings_20261022.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_user_gui_findings_20261021.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_user_guide_menus.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_video_support.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_web_chat_20261109.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_zarr_stress_findings.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_zoom_callout_gui.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.8}/tests/test_zoom_callout_lut.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyfigures
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: PyFigures will assist you assemble publication ready scientific figures in no time.
|
|
5
5
|
Home-page: https://github.com/baigouy/PyFigures
|
|
6
6
|
Author: Benoit Aigouy
|
|
@@ -46,7 +46,7 @@ Requires-Dist: latex2mathml
|
|
|
46
46
|
Requires-Dist: mathml2omml
|
|
47
47
|
Requires-Dist: pylatexenc
|
|
48
48
|
Requires-Dist: pypdfium2
|
|
49
|
-
Requires-Dist: qtpy-ai-sidecar>=0.1.
|
|
49
|
+
Requires-Dist: qtpy-ai-sidecar>=0.1.5
|
|
50
50
|
Requires-Dist: mcp<2,>=1.12
|
|
51
51
|
Provides-Extra: ai
|
|
52
52
|
Requires-Dist: mcp<2,>=1.12; extra == "ai"
|
|
@@ -63,10 +63,10 @@ Provides-Extra: omero
|
|
|
63
63
|
Requires-Dist: omero-py; extra == "omero"
|
|
64
64
|
Provides-Extra: chat
|
|
65
65
|
Requires-Dist: mcp<2,>=1.12; extra == "chat"
|
|
66
|
-
Requires-Dist: qtpy-ai-sidecar>=0.1.
|
|
66
|
+
Requires-Dist: qtpy-ai-sidecar>=0.1.5; extra == "chat"
|
|
67
67
|
Provides-Extra: all
|
|
68
68
|
Requires-Dist: mcp<2,>=1.12; extra == "all"
|
|
69
|
-
Requires-Dist: qtpy-ai-sidecar>=0.1.
|
|
69
|
+
Requires-Dist: qtpy-ai-sidecar>=0.1.5; extra == "all"
|
|
70
70
|
Requires-Dist: av; extra == "all"
|
|
71
71
|
Requires-Dist: opencv-python-headless; extra == "all"
|
|
72
72
|
Requires-Dist: pyimagej; extra == "all"
|
|
@@ -293,7 +293,19 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
|
|
|
293
293
|
|
|
294
294
|
**Supported Macs:** the macOS executables include video support, which needs **macOS 14 (Sonoma) or newer on Apple Silicon** Macs and macOS 11 or newer on Intel Macs. On older Apple Silicon systems the app still opens, but movies cannot be read or exported; older systems are not supported (install with Conda/pip instead, see above).
|
|
295
295
|
|
|
296
|
-
**
|
|
296
|
+
**Three kinds of app**, each for Windows and macOS (Linux: PyFigures and PyFigures NoAI): **PyFigures** (opens with the AI chat sidebar; untick *View → Open the chat at start-up* to stop that), **PyFigures NoAI** (`PyFigures-NoAI-*`: no AI at all; with the album and poster designers too) and **PyFigures Web Chat** (`PyFigures-WebChat-*`: opens with a chat web page docked; experimental, a last resort, see [the web chat tutorial](docs/WEB_CHAT_TUTORIAL.md)). From a pip install, `python -m pyfigures --chat` opens with the chat sidebar, `--share` shares the figure with the MCP server and `--web-chat` docks the chat web page.
|
|
297
|
+
|
|
298
|
+
**First launch on a Mac:** the apps are not signed by Apple, so macOS refuses to open them the first time. Go to *System Settings → Privacy & Security* and click **Open Anyway** (needed only once). On macOS 14 or older, right-click the app → **Open** → **Open** also works.
|
|
299
|
+
|
|
300
|
+
**If macOS says the app "is damaged and can't be opened"** (or *Open Anyway* does not help), it is not damaged: macOS blocks unsigned apps downloaded from the internet. Remove the download mark in Terminal, with the app's real place and name, then open it again:
|
|
301
|
+
|
|
302
|
+
```sh
|
|
303
|
+
xattr -cr /Applications/PyFigures.app
|
|
304
|
+
xattr -cr "/Applications/PyFigures NoAI.app"
|
|
305
|
+
xattr -cr "/Applications/PyFigures Web Chat.app"
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
(Only the line for the app you installed is needed. If you put it in the *Applications* folder of your home folder, write `~/Applications/…` instead.)
|
|
297
309
|
|
|
298
310
|
# Third party libraries
|
|
299
311
|
|
|
@@ -202,7 +202,19 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
|
|
|
202
202
|
|
|
203
203
|
**Supported Macs:** the macOS executables include video support, which needs **macOS 14 (Sonoma) or newer on Apple Silicon** Macs and macOS 11 or newer on Intel Macs. On older Apple Silicon systems the app still opens, but movies cannot be read or exported; older systems are not supported (install with Conda/pip instead, see above).
|
|
204
204
|
|
|
205
|
-
**
|
|
205
|
+
**Three kinds of app**, each for Windows and macOS (Linux: PyFigures and PyFigures NoAI): **PyFigures** (opens with the AI chat sidebar; untick *View → Open the chat at start-up* to stop that), **PyFigures NoAI** (`PyFigures-NoAI-*`: no AI at all; with the album and poster designers too) and **PyFigures Web Chat** (`PyFigures-WebChat-*`: opens with a chat web page docked; experimental, a last resort, see [the web chat tutorial](docs/WEB_CHAT_TUTORIAL.md)). From a pip install, `python -m pyfigures --chat` opens with the chat sidebar, `--share` shares the figure with the MCP server and `--web-chat` docks the chat web page.
|
|
206
|
+
|
|
207
|
+
**First launch on a Mac:** the apps are not signed by Apple, so macOS refuses to open them the first time. Go to *System Settings → Privacy & Security* and click **Open Anyway** (needed only once). On macOS 14 or older, right-click the app → **Open** → **Open** also works.
|
|
208
|
+
|
|
209
|
+
**If macOS says the app "is damaged and can't be opened"** (or *Open Anyway* does not help), it is not damaged: macOS blocks unsigned apps downloaded from the internet. Remove the download mark in Terminal, with the app's real place and name, then open it again:
|
|
210
|
+
|
|
211
|
+
```sh
|
|
212
|
+
xattr -cr /Applications/PyFigures.app
|
|
213
|
+
xattr -cr "/Applications/PyFigures NoAI.app"
|
|
214
|
+
xattr -cr "/Applications/PyFigures Web Chat.app"
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
(Only the line for the app you installed is needed. If you put it in the *Applications* folder of your home folder, write `~/Applications/…` instead.)
|
|
206
218
|
|
|
207
219
|
# Third party libraries
|
|
208
220
|
|
|
@@ -285,7 +285,9 @@ def run_pyfigures():
|
|
|
285
285
|
from pyfigures.assistant import sidecar_available
|
|
286
286
|
if load_chat_at_start() and '--chat' not in sys.argv and sidecar_available():
|
|
287
287
|
sys.argv.append('--chat') # View → Open the chat at start-up
|
|
288
|
-
|
|
288
|
+
from pyfigures.assistant import ai_features_enabled
|
|
289
|
+
# the no-AI install has no chat and shares nothing, whatever the command line says
|
|
290
|
+
share = ai_features_enabled() and ('--share' in sys.argv or '--chat' in sys.argv or '--web-chat' in sys.argv)
|
|
289
291
|
if share:
|
|
290
292
|
# a window that can share its figure with `python -m pyfigures.assistant.live_mcp`
|
|
291
293
|
from pyfigures.assistant.partner_gui import PartnerGUI
|
|
@@ -45,8 +45,25 @@ def sidecar_available() -> bool:
|
|
|
45
45
|
return True
|
|
46
46
|
|
|
47
47
|
|
|
48
|
+
def bundled_app_kind():
|
|
49
|
+
"""'standard', 'no_ai' or 'web_chat': what pyfigures.spec wrote into this
|
|
50
|
+
standalone app (pyfigures/app_kind.txt). None when not an app, or one
|
|
51
|
+
built before 0.2.8: the executable's name then tells."""
|
|
52
|
+
if not getattr(sys, "frozen", False):
|
|
53
|
+
return None
|
|
54
|
+
try:
|
|
55
|
+
return (Path(sys._MEIPASS) / "pyfigures" / "app_kind.txt").read_text(encoding="utf-8").strip() or None
|
|
56
|
+
except (OSError, AttributeError, TypeError):
|
|
57
|
+
return None
|
|
58
|
+
|
|
59
|
+
|
|
48
60
|
def is_no_ai_app(executable) -> bool:
|
|
49
|
-
"""The 'PyFigures NoAI' standalone app
|
|
61
|
+
"""The 'PyFigures NoAI' standalone app: by what the build wrote into
|
|
62
|
+
it (a renamed executable stays what it is), else by its name."""
|
|
63
|
+
if executable == sys.executable:
|
|
64
|
+
kind = bundled_app_kind()
|
|
65
|
+
if kind:
|
|
66
|
+
return kind == "no_ai"
|
|
50
67
|
name = os.path.basename(executable).lower().replace(" ", "").replace("-", "").replace("_", "")
|
|
51
68
|
return "noai" in name
|
|
52
69
|
|
|
@@ -152,6 +152,15 @@ def build_server(full_server, send):
|
|
|
152
152
|
'Single-panel scale-bar tools are for an explicitly limited panel, not figure-wide loops. A named panel, even a short or mistyped name, never authorizes set_scale_bar_all. Resolve the panel or ask; bulk only when all/every/whole figure was requested. '
|
|
153
153
|
'inspect_panel_letters verifies text/color/background/placement after refresh. '
|
|
154
154
|
'Explicit white stays white; background="none" means transparent, black does not. '
|
|
155
|
+
'A "background" asked for a panel named by its letter ("add a black bg to g") is the PANEL background, the area '
|
|
156
|
+
'behind the image that shows once it is rotated: set_image_property property_name="fill_color" (black "0", white '
|
|
157
|
+
'"16777215", "None" removes it). Only words naming the letter or label ("black box behind the letter g") mean the '
|
|
158
|
+
'letter background (edit_panel_letters background, with background_request quoting them). When the words fit both, '
|
|
159
|
+
'ask which one before changing anything. '
|
|
160
|
+
'The same holds for every short request that fits several things of the named panel: "the colour of a", "make g '
|
|
161
|
+
'bigger", "delete g", "the text" can mean the panel letter, the image itself, a channel colour, a border, a scale '
|
|
162
|
+
'bar or an annotation. When only one of them exists or fits, do it and say which; when several fit, ask which one '
|
|
163
|
+
'in one short question and change nothing first. '
|
|
155
164
|
'Recovery copies are automatic but differ from saving: report persistence state '
|
|
156
165
|
'accurately. save_live_figure makes a saved copy inside the prototype. '
|
|
157
166
|
'Session IDs/revisions are internal: do not supply remembered values. '
|
|
@@ -77,6 +77,23 @@ def editor_tab(tab):
|
|
|
77
77
|
raise ValueError('Unknown editor tab ' + repr(tab) + '; use one of: ' + ', '.join(sorted(titles)))
|
|
78
78
|
|
|
79
79
|
|
|
80
|
+
def editor_tab_in(entries):
|
|
81
|
+
"""The editor tab one of *entries* names (route entries, button titles:
|
|
82
|
+
'Rotate + Crop'), or None: a tab's title first, then EDITOR_TABS' words."""
|
|
83
|
+
titles = {re.sub(r'[^a-z0-9]', '', t.lower()): t for t in EDITOR_TABS.values()}
|
|
84
|
+
entries = [str(e) for e in entries if e]
|
|
85
|
+
for entry in entries:
|
|
86
|
+
title = titles.get(re.sub(r'[^a-z0-9]', '', entry.lower()))
|
|
87
|
+
if title and title != 'Annotations':
|
|
88
|
+
return title
|
|
89
|
+
for entry in entries:
|
|
90
|
+
words = re.split(r'[^a-z0-9]+', entry.lower())
|
|
91
|
+
for word, title in EDITOR_TABS.items():
|
|
92
|
+
if word in words and title != 'Annotations':
|
|
93
|
+
return title
|
|
94
|
+
return None
|
|
95
|
+
|
|
96
|
+
|
|
80
97
|
def open_editor(session, panel_ref=None, tab=None):
|
|
81
98
|
window = session.window
|
|
82
99
|
canvas = window.paint.EZFIG_panel
|
|
@@ -211,7 +211,11 @@ def sidecar_config(descriptor=None):
|
|
|
211
211
|
def apply_launch_flags(window, argv):
|
|
212
212
|
"""``--share``: share the figure with the MCP server at start-up;
|
|
213
213
|
``--chat``: also dock the chat (qtpy_ai_sidecar); ``--web-chat``: dock
|
|
214
|
-
an online chat page instead (pyfigures.gui.web_chat_panel).
|
|
214
|
+
an online chat page instead (pyfigures.gui.web_chat_panel). None of
|
|
215
|
+
them in the no-AI install: the window is left as it is."""
|
|
216
|
+
from pyfigures.assistant import ai_features_enabled
|
|
217
|
+
if not ai_features_enabled():
|
|
218
|
+
return window
|
|
215
219
|
if '--web-chat' in argv:
|
|
216
220
|
window = start_live_session(window).window
|
|
217
221
|
from pyfigures.gui.web_chat_panel import attach
|
|
@@ -136,16 +136,45 @@ def inspect_panel_letters() -> dict:
|
|
|
136
136
|
return call_live('letter_state')
|
|
137
137
|
|
|
138
138
|
|
|
139
|
+
def _is_colour(background):
|
|
140
|
+
"""A background that paints something ('none', 'transparent' and the like clear it)."""
|
|
141
|
+
if background is None:
|
|
142
|
+
return False
|
|
143
|
+
return str(background).strip().lower() not in ('', 'none', 'transparent', 'no', 'null', 'clear')
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def _names_letters(request):
|
|
147
|
+
"""The user's own words say the letter / label (not the panel) is meant."""
|
|
148
|
+
import re
|
|
149
|
+
return bool(re.search(r'\b(letters?|lettering|labels?|lettre\w*)\b', str(request or '').lower()))
|
|
150
|
+
|
|
151
|
+
|
|
139
152
|
@mcp.tool()
|
|
140
153
|
def edit_panel_letters(action: Literal['style','remove','restore','renumber'] = 'style', scope: Literal['auto','all','group','panels','selection'] = 'auto', group_path: list[int] | None = None,
|
|
141
154
|
panel_ids: list[str] | None = None, placement: str | None = None,
|
|
142
155
|
font_family: str | None = None, font_size: float | None = None,
|
|
143
156
|
color: str | int | None = None, background: str | int | None = None,
|
|
144
157
|
start_letter: str | None = None, replace_overrides: bool = False,
|
|
145
|
-
removal_request: str | None = None
|
|
146
|
-
|
|
158
|
+
removal_request: str | None = None, background_request: str | None = None,
|
|
159
|
+
color_request: str | None = None) -> dict:
|
|
160
|
+
"""A colour for the letter of named panels (panel_ids) needs color_request quoting the user's words, and those must name the letter/label: "change the colour of a to red" may be the letter, a channel or a border of panel a, so ask. A coloured background needs background_request quoting the user's words, and those must name the letter/label: "black background for g" or "add a black bg to g" means the PANEL g (the area behind the image, seen once it is rotated or transparent: set_image_property fill_color), not its letter; when the words do not say which, ask. Scope rules: use scope=all for all panel letters and omit panel_ids/group_path. scope=panels requires a nonempty panel_ids list; scope=selection uses the current selection. Pass ONLY changed fields, never the full letter_styles readback: opacity/bold/italic/underline are not accepted. For italic/bold/underline, call restyle_texts(target=letters) directly; do not call this operation first. Preferred ONE-CALL bulk operation for panel-letter placement, font family/size, color/background, removal and restoration. For bold/italic/underline use restyle_texts(target=letters); those are not fields of this function. placement accepts center/centre/middle or a corner (inside the panel); letters OUTSIDE the panels = set_panel_letter_layout(letter_layout="row"). action=style preserves existing text; renumber scope=all creates a complete unique sequence for a newly constructed figure when asked to letter the panels; partial restore preserves existing IDs and is not a whole-figure renumber; remove requires removal_request quoting an explicit user request to remove/hide letters (never a swap), and hides panel letters persistently without deleting captions/scale bars; restore without start_letter preserves an existing or hidden panel text and otherwise uses its automatic position; explicit start_letter sets a new sequence; renumber changes sequence. scope=auto infers panels from panel_ids, group from group_path, otherwise all; explicit panels/group/selection/all are supported. Supplying panel_ids can never broaden to all panels. For WHITE Arial 12 with NO background use color="white", font_family="Arial", font_size=12, background="none". Black is a color, NOT transparent. Unspecified appearance is preserved. Per-panel overrides survive whole-figure style changes unless replace_overrides=true. One undo step. Returns actual styles, changed/skipped counts, and recovery status. Do not loop over individual annotations for figure/group requests. With one letter per row (letter_layout row) the row letters share the figure letter style: action=style scope=all restyles them (font, size, color, background; row_letters_restyled lists them, outcome VERIFIED_CHANGE)."""
|
|
147
161
|
if scope == 'panels' and not panel_ids:
|
|
148
162
|
raise ValueError('scope=panels requires a nonempty panel_ids list. For an explicit all-panel lettering request use scope=all and omit panel_ids; otherwise inspect and provide the intended panel IDs. No edit was submitted.')
|
|
163
|
+
if _is_colour(background) and not _names_letters(background_request):
|
|
164
|
+
# "add a black bg to g" coloured the letter's box, not the panel (2026-11-10)
|
|
165
|
+
raise ValueError('CLARIFICATION_REQUIRED: a background colour here is the LETTER\'s box. The user\'s words '
|
|
166
|
+
'(quote them in background_request) must name the letter or label for that. '
|
|
167
|
+
'"A black background for panel g" is the panel\'s own background, the area behind the '
|
|
168
|
+
'image (visible once it is rotated): use_pyfigures_tool set_image_property with '
|
|
169
|
+
'property_name="fill_color" and the colour (black is "0", white "16777215"). If the words '
|
|
170
|
+
'do not say which one, ask the user: the letter\'s background or the panel\'s. No edit performed.')
|
|
171
|
+
if color is not None and panel_ids and not _names_letters(color_request):
|
|
172
|
+
# "change the colour of a to red" recoloured the letter without asking (2026-11-10)
|
|
173
|
+
raise ValueError('CLARIFICATION_REQUIRED: a colour here is the LETTER\'s colour. The user\'s words (quote them '
|
|
174
|
+
'in color_request) must name the letter or label for that. "The colour of a" may also be a '
|
|
175
|
+
'channel colour of panel a (set_lut / channel tools), its border (set_image_property '
|
|
176
|
+
'border_color) or its background (fill_color). If the words do not say which one, ask the '
|
|
177
|
+
'user which they mean. No edit performed.')
|
|
149
178
|
if panel_ids and scope in ('auto', 'all'):
|
|
150
179
|
scope = 'panels'
|
|
151
180
|
elif group_path is not None and scope == 'auto':
|
|
@@ -286,6 +286,42 @@ class PartnerGUI(BaseGUI):
|
|
|
286
286
|
self.update_letters()
|
|
287
287
|
return result
|
|
288
288
|
|
|
289
|
+
def _sync_first_letter_box(self):
|
|
290
|
+
"""The toolbar's first-letter box follows the letters the panels were
|
|
291
|
+
given one by one through the chat / MCP (A, B, C… kept in their
|
|
292
|
+
policies): it showed "a" above a figure lettered in capitals, and a
|
|
293
|
+
panel that lost its letter got a lower-case one back (2026-11-10).
|
|
294
|
+
The sequence's first letter when the letters follow each other from
|
|
295
|
+
it, else only its case."""
|
|
296
|
+
from batoolset.strings.tools import increment_letter
|
|
297
|
+
texts = []
|
|
298
|
+
for _, _, panel in panels(self.paint.EZFIG_panel.shapes_to_draw):
|
|
299
|
+
policy = json.loads(getattr(panel, POLICY, '{}'))
|
|
300
|
+
if policy.get('visible') is False or policy.get('automatic_text', 'text' not in policy):
|
|
301
|
+
continue
|
|
302
|
+
text = policy.get('text')
|
|
303
|
+
if isinstance(text, str) and len(text) == 1 and text.isalpha():
|
|
304
|
+
texts.append(text)
|
|
305
|
+
box = self.letter_line_edit.text()
|
|
306
|
+
if not texts or not box:
|
|
307
|
+
return
|
|
308
|
+
expected, sequence = texts[0], True
|
|
309
|
+
for text in texts:
|
|
310
|
+
sequence = sequence and text == expected
|
|
311
|
+
expected = increment_letter(expected)
|
|
312
|
+
if sequence:
|
|
313
|
+
wanted = texts[0]
|
|
314
|
+
elif all(t.isupper() for t in texts):
|
|
315
|
+
wanted = box.upper()
|
|
316
|
+
elif all(t.islower() for t in texts):
|
|
317
|
+
wanted = box.lower()
|
|
318
|
+
else:
|
|
319
|
+
return
|
|
320
|
+
if wanted != box:
|
|
321
|
+
self.letter_line_edit.blockSignals(True)
|
|
322
|
+
self.letter_line_edit.setText(wanted)
|
|
323
|
+
self.letter_line_edit.blockSignals(False)
|
|
324
|
+
|
|
289
325
|
def update_letters(self):
|
|
290
326
|
if getattr(self, '_live_loading', False):
|
|
291
327
|
return
|
|
@@ -294,6 +330,7 @@ class PartnerGUI(BaseGUI):
|
|
|
294
330
|
for _, _, panel in panels(self.paint.EZFIG_panel.shapes_to_draw):
|
|
295
331
|
if isinstance(panel.annotations, str) and panel.annotations.strip() in ('', '[]', 'None'):
|
|
296
332
|
panel.annotations = []
|
|
333
|
+
self._sync_first_letter_box()
|
|
297
334
|
super().update_letters()
|
|
298
335
|
for _, _, panel in panels(self.paint.EZFIG_panel.shapes_to_draw):
|
|
299
336
|
policy = json.loads(getattr(panel, POLICY, '{}'))
|
|
@@ -330,6 +330,12 @@ class Session:
|
|
|
330
330
|
if where == 'editor' and tab:
|
|
331
331
|
from .gui_selection import editor_tab
|
|
332
332
|
tab = editor_tab(tab) # 'scale' -> 'File Infos + Scale', the title to outline
|
|
333
|
+
elif where == 'editor':
|
|
334
|
+
# the tab named in the routes instead ([["Edit Image"], ["Rotate + Crop"]]):
|
|
335
|
+
# without it the editor opened on Annotations (2026-11-10)
|
|
336
|
+
from .gui_selection import editor_tab_in
|
|
337
|
+
tab = editor_tab_in([entry for route in (args.get('routes') or []) for entry in route]
|
|
338
|
+
+ list(args.get('controls') or []))
|
|
333
339
|
result = self.click_guide.start(args.get('routes') or [], where=where,
|
|
334
340
|
controls=args.get('controls'), editor_tab=tab,
|
|
335
341
|
note=args.get('note'), open_menus=open_menus)
|
|
@@ -30,7 +30,10 @@ BEGIN = 'PYFIGURES-CALLS'
|
|
|
30
30
|
END = 'END-PYFIGURES-CALLS'
|
|
31
31
|
RESULTS = 'PYFIGURES-RESULTS'
|
|
32
32
|
TEMPLATE = 'TOOL_NAME' # the placeholder of the example block, never a real call
|
|
33
|
+
_BEGIN = re.compile(r'(?<![A-Z-])' + re.escape(BEGIN))
|
|
33
34
|
_BLOCK = re.compile(r'(?<![A-Z-])' + re.escape(BEGIN) + r'\s*(.*?)\s*' + re.escape(END), re.S)
|
|
35
|
+
# words of the instructions message: the page shows them while its conversation is the one PyFigures started
|
|
36
|
+
SIGNATURE = 'edit a scientific figure that is open in PyFigures'
|
|
34
37
|
|
|
35
38
|
# look-ups: change nothing, so they may run without a click
|
|
36
39
|
READ_ONLY = frozenset({'inspect_figure', 'preview_figure', 'list_pyfigures_categories', 'find_pyfigures_tools'})
|
|
@@ -40,6 +43,13 @@ def is_web_chat_app(executable):
|
|
|
40
43
|
PYFIGURES_WEB_CHAT=1: Qt WebEngine bundled, opens with the web chat),
|
|
41
44
|
told apart from the other apps by its executable's name."""
|
|
42
45
|
import os
|
|
46
|
+
import sys
|
|
47
|
+
if executable == sys.executable:
|
|
48
|
+
# written into the app by pyfigures.spec: a renamed executable stays what it is
|
|
49
|
+
from . import bundled_app_kind
|
|
50
|
+
kind = bundled_app_kind()
|
|
51
|
+
if kind:
|
|
52
|
+
return kind == 'web_chat'
|
|
43
53
|
name = os.path.basename(executable).lower().replace('_', ' ').replace('-', ' ')
|
|
44
54
|
return 'web chat' in name or 'webchat' in name
|
|
45
55
|
|
|
@@ -72,6 +82,10 @@ class Block:
|
|
|
72
82
|
def read_only(self):
|
|
73
83
|
return bool(self.calls) and all(c['tool'] in READ_ONLY for c in self.calls)
|
|
74
84
|
|
|
85
|
+
@property
|
|
86
|
+
def writes_files(self):
|
|
87
|
+
return any(writes_files(c) for c in self.calls)
|
|
88
|
+
|
|
75
89
|
def describe(self):
|
|
76
90
|
if self.error:
|
|
77
91
|
return 'Unreadable request: ' + self.error
|
|
@@ -87,6 +101,23 @@ def describe_call(call):
|
|
|
87
101
|
return f'{tool} {text if len(text) < 200 else text[:197] + "…"}'
|
|
88
102
|
|
|
89
103
|
|
|
104
|
+
# operations that write outside the figure: never run without a click, even in automatic mode
|
|
105
|
+
_FILE_WORDS = ('save', 'export', 'write', 'consolidate', 'bundle', 'render', 'script', 'delete_file')
|
|
106
|
+
_PATH_KEYS = ('path', 'folder', 'dir', 'directory', 'file', 'filename')
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def writes_files(call):
|
|
110
|
+
"""The call saves, exports or runs a script, or names a file or folder
|
|
111
|
+
(the open figure's own 'live' path apart)."""
|
|
112
|
+
tool, args = call['tool'], call.get('arguments') or {}
|
|
113
|
+
if tool == 'use_pyfigures_tool':
|
|
114
|
+
tool, args = str(args.get('tool_name', '')), args.get('arguments') or {}
|
|
115
|
+
if any(word in tool.lower() for word in _FILE_WORDS):
|
|
116
|
+
return True
|
|
117
|
+
return any(isinstance(k, str) and k.lower().endswith(_PATH_KEYS) and isinstance(v, str)
|
|
118
|
+
and v not in ('', 'live') for k, v in (args.items() if isinstance(args, dict) else ()))
|
|
119
|
+
|
|
120
|
+
|
|
90
121
|
def _strip_fences(text):
|
|
91
122
|
text = text.strip()
|
|
92
123
|
text = re.sub(r'^```[a-zA-Z]*\s*', '', text)
|
|
@@ -95,18 +126,26 @@ def _strip_fences(text):
|
|
|
95
126
|
|
|
96
127
|
def _load(text):
|
|
97
128
|
"""JSON as models write it in a chat: smart quotes and trailing commas
|
|
98
|
-
are tolerated.
|
|
129
|
+
are tolerated. Read as written first: curly quotes and non-breaking
|
|
130
|
+
spaces inside a label are text, not mistakes."""
|
|
99
131
|
text = _strip_fences(text)
|
|
100
|
-
text = text.replace('“', '"').replace('”', '"').replace(' ', ' ')
|
|
101
132
|
# a page's code block adds its own words around the JSON ("json", "Copy code")
|
|
102
133
|
starts = [i for i in (text.find('['), text.find('{')) if i >= 0]
|
|
103
134
|
end = max(text.rfind(']'), text.rfind('}'))
|
|
104
135
|
if starts and end > min(starts):
|
|
105
136
|
text = text[min(starts):end + 1]
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
137
|
+
repaired = text.replace('“', '"').replace('”', '"').replace(' ', ' ')
|
|
138
|
+
error = None
|
|
139
|
+
for attempt in (text, _no_trailing_commas(text), repaired, _no_trailing_commas(repaired)):
|
|
140
|
+
try:
|
|
141
|
+
return json.loads(attempt)
|
|
142
|
+
except ValueError as exc:
|
|
143
|
+
error = error or exc
|
|
144
|
+
raise error
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def _no_trailing_commas(text):
|
|
148
|
+
return re.sub(r',\s*([\]}])', r'\1', text)
|
|
110
149
|
|
|
111
150
|
|
|
112
151
|
def parse_blocks(text, tool_names=None):
|
|
@@ -119,6 +158,9 @@ def parse_blocks(text, tool_names=None):
|
|
|
119
158
|
blocks = []
|
|
120
159
|
for match in _BLOCK.finditer(text or ''):
|
|
121
160
|
raw = match.group(1)
|
|
161
|
+
again = list(_BEGIN.finditer(raw))
|
|
162
|
+
if again: # the marker named in the model's prose before its block
|
|
163
|
+
raw = raw[again[-1].end():].strip()
|
|
122
164
|
if TEMPLATE in raw:
|
|
123
165
|
continue # the example of the instructions, shown on the page once sent
|
|
124
166
|
try:
|
|
@@ -188,9 +230,10 @@ def instructions_prompt(tools, server_instructions, state=None, request=None):
|
|
|
188
230
|
lines.append(f'- {tool["name"]}: {(tool.get("description") or "").strip()}')
|
|
189
231
|
lines.append(' arguments schema: ' + json.dumps(schema, ensure_ascii=False, separators=(',', ':')))
|
|
190
232
|
if state is not None:
|
|
191
|
-
lines += ['', 'The figure now (inspect_figure):',
|
|
233
|
+
lines += ['', 'The figure now (inspect_figure):',
|
|
234
|
+
_no_markers(_truncate(json.dumps(state, ensure_ascii=False), 8000))]
|
|
192
235
|
if request:
|
|
193
|
-
lines += ['', 'My request: ' + request.strip()]
|
|
236
|
+
lines += ['', 'My request: ' + _no_markers(request.strip())]
|
|
194
237
|
else:
|
|
195
238
|
lines += ['', 'Reply "Ready" and wait for my request.']
|
|
196
239
|
return '\n'.join(lines)
|
|
@@ -200,13 +243,19 @@ def _truncate(text, limit):
|
|
|
200
243
|
return text if len(text) <= limit else text[:limit] + f'… [{len(text) - limit} more characters cut]'
|
|
201
244
|
|
|
202
245
|
|
|
246
|
+
def _no_markers(text):
|
|
247
|
+
"""*text* (a result, the figure's own texts) without the marker words:
|
|
248
|
+
typed into the page, they would be read back as a request of the model."""
|
|
249
|
+
return text.replace(BEGIN, BEGIN.replace('-', '_'))
|
|
250
|
+
|
|
251
|
+
|
|
203
252
|
def results_message(outcomes):
|
|
204
253
|
"""The message written back into the chat box after a block ran:
|
|
205
254
|
outcomes = [(call, ok, text)]."""
|
|
206
255
|
lines = [f'{RESULTS} (from PyFigures):']
|
|
207
256
|
for i, (call, ok, text) in enumerate(outcomes, 1):
|
|
208
|
-
lines.append(f'{i}. {describe_call(call)} -> {"OK" if ok else "ERROR"}')
|
|
209
|
-
lines.append(_truncate(text, MAX_RESULT_CHARS))
|
|
257
|
+
lines.append(_no_markers(f'{i}. {describe_call(call)} -> {"OK" if ok else "ERROR"}'))
|
|
258
|
+
lines.append(_no_markers(_truncate(text, MAX_RESULT_CHARS)))
|
|
210
259
|
# a reminder each time: models drift back to their own tools ("Let me look…") after a few turns.
|
|
211
260
|
# Never both marker words here: the page would show them as a block.
|
|
212
261
|
lines.append('Continue with the next step (operations only in a block between the two marker lines, as at the '
|
|
@@ -223,7 +272,8 @@ def _content_text(blocks, images):
|
|
|
223
272
|
parts.append(block.text)
|
|
224
273
|
elif kind == 'image':
|
|
225
274
|
images.append(base64.b64decode(block.data))
|
|
226
|
-
parts.append('[image: a preview
|
|
275
|
+
parts.append('[image: a preview of the figure, attached to this message when the chat site takes '
|
|
276
|
+
'pasted images; if you do not see it, ask me to paste it]')
|
|
227
277
|
else:
|
|
228
278
|
parts.append(str(block))
|
|
229
279
|
return '\n'.join(parts)
|
|
@@ -4697,6 +4697,12 @@ class MyWidget(QWidget):
|
|
|
4697
4697
|
# print(custom_dialog.main_widget.qt_viewer.background) # TODO --> maybe add a method to simplify that ???? because that is a bit heavy
|
|
4698
4698
|
|
|
4699
4699
|
clone = custom_dialog.main_widget.qt_viewer.background # that is why it was not working !!!
|
|
4700
|
+
# the letter's own text and style (set through the chat / MCP: a capital G, its
|
|
4701
|
+
# colour) live on the panel object, not in what is cloned: without this the edited
|
|
4702
|
+
# panel came back with the toolbar's default letter ("g")
|
|
4703
|
+
letter_policy = getattr(image2d, 'live_letter_policy', None)
|
|
4704
|
+
if letter_policy and not getattr(clone, 'live_letter_policy', None):
|
|
4705
|
+
clone.live_letter_policy = letter_policy
|
|
4700
4706
|
# need replace the image2D by its clone
|
|
4701
4707
|
clone.set_to_scale(scale_before)
|
|
4702
4708
|
clone.setTopLeft(topleft_before)
|
|
@@ -37,6 +37,13 @@ from qtpy.QtGui import QPainter, QColor, QPen, QBrush, QPixmap, QFont, QPainterP
|
|
|
37
37
|
|
|
38
38
|
# ── helpers ────────────────────────────────────────────────────────────────
|
|
39
39
|
|
|
40
|
+
def _ai() -> bool:
|
|
41
|
+
"""The chat and MCP exist here (not in the no-AI install): the tutorial
|
|
42
|
+
texts only name them then."""
|
|
43
|
+
from pyfigures.assistant import ai_features_enabled
|
|
44
|
+
return ai_features_enabled()
|
|
45
|
+
|
|
46
|
+
|
|
40
47
|
def _widget_rect_in(widget, ancestor) -> QRect:
|
|
41
48
|
"""Return widget's geometry in ancestor's coordinate space."""
|
|
42
49
|
tl = widget.mapTo(ancestor, QPoint(0, 0))
|
|
@@ -2830,9 +2837,10 @@ def sharing_steps() -> list[TutorialStep]:
|
|
|
2830
2837
|
message=(
|
|
2831
2838
|
'You now know the full collaboration and accessibility toolkit.<br><br>'
|
|
2832
2839
|
'Still to explore in the <b>Help</b> menu: the <b>Stacks, Channels & '
|
|
2833
|
-
'Movies</b>, <b>Automate</b>, <b>Chat & MCP</b>,
|
|
2834
|
-
'
|
|
2835
|
-
'
|
|
2840
|
+
'Movies</b>, <b>Automate</b>, ' + ('<b>Chat & MCP</b>, ' if _ai() else '')
|
|
2841
|
+
+ '<b>Poster</b> and <b>Photo Album</b> tutorials'
|
|
2842
|
+
+ ('; <b>Chat & MCP</b> shows how a language model can do all '
|
|
2843
|
+
'of this for you in plain language' if _ai() else '') + '.<br><br>'
|
|
2836
2844
|
'Happy figure-making!'
|
|
2837
2845
|
),
|
|
2838
2846
|
get_target=None,
|
|
@@ -3222,11 +3230,12 @@ def automation_steps() -> list[TutorialStep]:
|
|
|
3222
3230
|
TutorialStep(
|
|
3223
3231
|
title='Automate complete!',
|
|
3224
3232
|
message=(
|
|
3225
|
-
'You can now build and check figures in bulk
|
|
3226
|
-
'PyFigures also ships an <b>MCP server</b> with the same tools (see '
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3233
|
+
'You can now build and check figures in bulk.'
|
|
3234
|
+
+ ('<br><br>PyFigures also ships an <b>MCP server</b> with the same tools (see '
|
|
3235
|
+
'<code>docs/MCP_SERVER.md</code>): connect it to an MCP client such as '
|
|
3236
|
+
'Claude, ask for "a 3-panel figure from this folder with 10 µm scale bars" '
|
|
3237
|
+
'and it drives PyFigures for you. The <b>Chat & MCP</b> tutorial (Help menu) '
|
|
3238
|
+
'shows how.' if _ai() else '')
|
|
3230
3239
|
),
|
|
3231
3240
|
),
|
|
3232
3241
|
], first=4)
|