pyfigures 0.2.24__tar.gz → 0.2.26__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.
Files changed (435) hide show
  1. {pyfigures-0.2.24 → pyfigures-0.2.26}/PKG-INFO +7 -7
  2. {pyfigures-0.2.24 → pyfigures-0.2.26}/README.md +3 -3
  3. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/__main__.py +30 -0
  4. pyfigures-0.2.26/pyfigures/assistant/__init__.py +125 -0
  5. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/categorized_mcp.py +13 -1
  6. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/existing_tools.py +69 -2
  7. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/launch.py +6 -1
  8. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/live_mcp.py +10 -7
  9. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/session.py +9 -1
  10. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/command_box.py +2 -2
  11. pyfigures-0.2.26/pyfigures/gui/copy_feedback.py +45 -0
  12. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/headless_ops.py +9 -0
  13. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/mcp_server_dialog.py +71 -16
  14. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/pfgui.py +25 -14
  15. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/show_me_how.py +8 -1
  16. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/tutorial.py +17 -16
  17. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/user_prefs.py +25 -2
  18. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/guides.py +20 -0
  19. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_control.py +338 -22
  20. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/app.py +1 -0
  21. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/category_surface.py +2 -1
  22. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/guidance.py +39 -0
  23. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/structure.py +77 -9
  24. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/workflow.py +19 -4
  25. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/version.py +1 -1
  26. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures.egg-info/PKG-INFO +7 -7
  27. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures.egg-info/SOURCES.txt +10 -0
  28. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures.egg-info/requires.txt +3 -3
  29. {pyfigures-0.2.24 → pyfigures-0.2.26}/setup.py +3 -3
  30. pyfigures-0.2.26/tests/test_arrange_one_block_20261123.py +73 -0
  31. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_assistant_live.py +5 -2
  32. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_command_box.py +1 -1
  33. pyfigures-0.2.26/tests/test_copy_feedback_20261124.py +105 -0
  34. pyfigures-0.2.26/tests/test_double_figure_width_20261123.py +47 -0
  35. pyfigures-0.2.26/tests/test_figure_size_units_20261123.py +60 -0
  36. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_e2e_tutorials.py +6 -0
  37. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_guide_routing.py +6 -0
  38. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_launchers.py +5 -5
  39. pyfigures-0.2.26/tests/test_live_origin_20261123.py +37 -0
  40. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_mcp_control.py +69 -0
  41. pyfigures-0.2.26/tests/test_random_images_into_open_figure_20261123.py +49 -0
  42. pyfigures-0.2.26/tests/test_register_live_server_20261123.py +97 -0
  43. pyfigures-0.2.26/tests/test_runtime_outside_appdata_20261123.py +52 -0
  44. pyfigures-0.2.26/tests/test_vibe_registration_20261124.py +136 -0
  45. pyfigures-0.2.24/pyfigures/assistant/__init__.py +0 -85
  46. {pyfigures-0.2.24 → pyfigures-0.2.26}/LICENSE +0 -0
  47. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/__init__.py +0 -0
  48. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/album/__init__.py +0 -0
  49. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/album/__main__.py +0 -0
  50. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/arrowheads.py +0 -0
  51. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/advanced_annotations.py +0 -0
  52. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/assistant_actions.py +0 -0
  53. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/chat_replay.py +0 -0
  54. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/chat_video.py +0 -0
  55. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/figure_state.py +0 -0
  56. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/gui_selection.py +0 -0
  57. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/letter_sequence.py +0 -0
  58. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/live_structure.py +0 -0
  59. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/manual_help.py +0 -0
  60. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/manual_help_verified.json +0 -0
  61. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/native_gui.py +0 -0
  62. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/original_registry.py +0 -0
  63. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/partner_gui.py +0 -0
  64. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/plot_info.py +0 -0
  65. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/plot_lifecycle.py +0 -0
  66. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/pointer_context.py +0 -0
  67. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/readability.py +0 -0
  68. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/recovery.py +0 -0
  69. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/result_evidence.py +0 -0
  70. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/submission_review.py +0 -0
  71. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/assistant/web_chat.py +0 -0
  72. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/atomic_io.py +0 -0
  73. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/burned_text.py +0 -0
  74. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/colorbar_script.py +0 -0
  75. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/connectors.py +0 -0
  76. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/constant_panels.py +0 -0
  77. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/cvd.py +0 -0
  78. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/equations.py +0 -0
  79. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/extras.py +0 -0
  80. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/flip.py +0 -0
  81. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/__init__.py +0 -0
  82. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/about_dialog_pzf.py +0 -0
  83. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/annotation_editor.py +0 -0
  84. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/asingleoraspanel.py +0 -0
  85. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/autolettering_widget.py +0 -0
  86. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/bg_color_selection.py +0 -0
  87. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/bug_recorder.py +0 -0
  88. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/caption_dialog.py +0 -0
  89. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/chat_video_dialog.py +0 -0
  90. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/colorassistant.py +0 -0
  91. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/ctrl_key.py +0 -0
  92. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/deckcraft_blank.json +0 -0
  93. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/dimchooser.py +0 -0
  94. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/drag_sketch.py +0 -0
  95. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/drop_sketch.py +0 -0
  96. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/editable_export.py +0 -0
  97. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/editor_interaction.py +0 -0
  98. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/emptyimagedialog.py +0 -0
  99. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/equation_dialog.py +0 -0
  100. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/ezfig.py +0 -0
  101. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/fonts/README.md +0 -0
  102. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/fontselectorgui.py +0 -0
  103. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/group_builder_GUI.py +0 -0
  104. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/integrity_ops.py +0 -0
  105. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/journal_style_editor.py +0 -0
  106. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/keep_tst_images_for_pzf.py +0 -0
  107. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/label_rows.py +0 -0
  108. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/latex_code_dialog.py +0 -0
  109. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/latex_support.py +0 -0
  110. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/lutmultiselector.py +0 -0
  111. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/page_fit.py +0 -0
  112. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/pagelimitswidget.py +0 -0
  113. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/panelcreationwidget.py +0 -0
  114. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/pdf_support.py +0 -0
  115. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/portable_fonts.py +0 -0
  116. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/qc_reports.py +0 -0
  117. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/region_picker.py +0 -0
  118. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/render_headless.py +0 -0
  119. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/replay_dialog.py +0 -0
  120. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/review/__init__.py +0 -0
  121. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/review/_template.py +0 -0
  122. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/review/dialog.py +0 -0
  123. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/review/html_export.py +0 -0
  124. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/review/send.py +0 -0
  125. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/row_letters.py +0 -0
  126. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/scalebareditor.py +0 -0
  127. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/scrollableEZFIG.py +0 -0
  128. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/selection_badges.py +0 -0
  129. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/selection_style.py +0 -0
  130. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/show_me_where.py +0 -0
  131. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/simple_text_editor.py +0 -0
  132. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/spaceselector.py +0 -0
  133. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/staplot_editor.py +0 -0
  134. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/style_text_headless.py +0 -0
  135. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/svg_painter.py +0 -0
  136. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/textEditWatcher.py +0 -0
  137. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/theme.py +0 -0
  138. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/tipdialog.py +0 -0
  139. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/user_extra_translation.py +0 -0
  140. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/video_support.py +0 -0
  141. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/web_chat_panel.py +0 -0
  142. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/widget_for_inset.py +0 -0
  143. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/zoom_bar.py +0 -0
  144. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/gui/zoom_links.py +0 -0
  145. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/history.py +0 -0
  146. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/icons/__init__.py +0 -0
  147. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/icons/pyfigures.png +0 -0
  148. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/icons/pyfigures_album.png +0 -0
  149. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/icons/pyfigures_poster.png +0 -0
  150. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/image_search.py +0 -0
  151. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/journal_styles.py +0 -0
  152. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/latex_document.py +0 -0
  153. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/layout_formula.py +0 -0
  154. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/layout_picture.py +0 -0
  155. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_server.py +0 -0
  156. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/__init__.py +0 -0
  157. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/annotations.py +0 -0
  158. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/content.py +0 -0
  159. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/core.py +0 -0
  160. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/export.py +0 -0
  161. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/image_search.py +0 -0
  162. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/journal.py +0 -0
  163. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/overlays.py +0 -0
  164. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/poster.py +0 -0
  165. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/qc.py +0 -0
  166. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/stacks.py +0 -0
  167. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/mcp_tools/upkeep.py +0 -0
  168. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/object_detection.py +0 -0
  169. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/office_math.py +0 -0
  170. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/offscreen.py +0 -0
  171. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/panel_source_preview.py +0 -0
  172. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/path_resolution.py +0 -0
  173. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/plot_tables.py +0 -0
  174. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/__init__.py +0 -0
  175. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/__main__.py +0 -0
  176. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/page_presets.py +0 -0
  177. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_align.py +0 -0
  178. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_canvas.py +0 -0
  179. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_headless.py +0 -0
  180. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_layout_dialog.py +0 -0
  181. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_layouts.py +0 -0
  182. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_recipe.py +0 -0
  183. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_shapes.py +0 -0
  184. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_source_data.py +0 -0
  185. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_templates.py +0 -0
  186. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_text_dialog.py +0 -0
  187. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_web_export.py +0 -0
  188. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/poster_window.py +0 -0
  189. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/poster/serialization.py +0 -0
  190. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/qt_exit.py +0 -0
  191. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/recipe.py +0 -0
  192. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/script_helpers.py +0 -0
  193. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/script_panels.py +0 -0
  194. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/script_safety.py +0 -0
  195. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/seaborn_plot.py +0 -0
  196. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/self_test.py +0 -0
  197. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/source_snapshot.py +0 -0
  198. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/stack_info.py +0 -0
  199. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/stats_legend.py +0 -0
  200. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/table_panel.py +0 -0
  201. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/text_fonts.py +0 -0
  202. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures/zoom_geometry.py +0 -0
  203. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures.egg-info/dependency_links.txt +0 -0
  204. {pyfigures-0.2.24 → pyfigures-0.2.26}/pyfigures.egg-info/top_level.txt +0 -0
  205. {pyfigures-0.2.24 → pyfigures-0.2.26}/setup.cfg +0 -0
  206. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_advanced_edit_tools.py +0 -0
  207. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_all_panels_hint_20261120.py +0 -0
  208. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_arrow_tip.py +0 -0
  209. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_arrowheads.py +0 -0
  210. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_atomic_io.py +0 -0
  211. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_audit_fixes.py +0 -0
  212. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_audit_fixes_20261008.py +0 -0
  213. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_backgrounds.py +0 -0
  214. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_box_handles_20261113.py +0 -0
  215. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_bug_recorder.py +0 -0
  216. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_bugs_found_by_gui_e2e.py +0 -0
  217. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_canvas_context_menu.py +0 -0
  218. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_canvas_keyboard_and_clicks.py +0 -0
  219. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_caption_statistics_20261119.py +0 -0
  220. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_channel_numbering_20261116.py +0 -0
  221. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_channels_property_20261105.py +0 -0
  222. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_chat_replay_20261113.py +0 -0
  223. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_chat_reports_20261110.py +0 -0
  224. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_chat_scenarios_20261113.py +0 -0
  225. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_chat_video_20261118.py +0 -0
  226. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_codex_trial_findings.py +0 -0
  227. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_colour_bar_gui.py +0 -0
  228. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_connectors_20261112.py +0 -0
  229. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_consolidate_download.py +0 -0
  230. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_constant_panels.py +0 -0
  231. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_data_plots_and_stats.py +0 -0
  232. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_default_scale_bar_length.py +0 -0
  233. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_deserialization.py +0 -0
  234. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_detect_objects_20261113.py +0 -0
  235. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_detect_objects_polygons_20261123.py +0 -0
  236. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_dispatcher_batch_20261113.py +0 -0
  237. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_dnd_canvas_more.py +0 -0
  238. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_dnd_combine_with_target.py +0 -0
  239. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_dnd_main_editor.py +0 -0
  240. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_docs_tool_count_20261117.py +0 -0
  241. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_draft_figure.py +0 -0
  242. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_drop_sketches.py +0 -0
  243. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_drop_tables_row_spacing_20261123.py +0 -0
  244. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_editable_export.py +0 -0
  245. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_editable_plot_text.py +0 -0
  246. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_editor_interaction.py +0 -0
  247. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_editor_rotate_and_tool_20261105.py +0 -0
  248. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_empty_canvas_chat_arrow_20261120.py +0 -0
  249. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_empty_canvas_hints_20261119.py +0 -0
  250. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_empty_inset_roi_20261106.py +0 -0
  251. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_equations.py +0 -0
  252. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_exception_handler.py +0 -0
  253. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_export_waits_for_images.py +0 -0
  254. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_facet_panels_20261120.py +0 -0
  255. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_fig_rect_cache.py +0 -0
  256. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_figure_colors.py +0 -0
  257. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_figure_diff.py +0 -0
  258. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_figure_width_mm_20261123.py +0 -0
  259. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_fiji_formats.py +0 -0
  260. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_fiji_quiet_start_20261123.py +0 -0
  261. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_file_io_encoding.py +0 -0
  262. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_file_state_tracking.py +0 -0
  263. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_flip.py +0 -0
  264. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_folder_drag_and_drop.py +0 -0
  265. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_folder_files_20261119.py +0 -0
  266. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_fonts_available.py +0 -0
  267. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_forbidden_files.py +0 -0
  268. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_grid_panel_default_shape_20261123.py +0 -0
  269. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_e2e_context_menu.py +0 -0
  270. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_e2e_coverage.py +0 -0
  271. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_e2e_dnd.py +0 -0
  272. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_e2e_image_editor.py +0 -0
  273. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_e2e_menus.py +0 -0
  274. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_e2e_monkey.py +0 -0
  275. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_e2e_visual.py +0 -0
  276. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_menus_and_toolbar.py +0 -0
  277. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_more_actions.py +0 -0
  278. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_gui_workflow_actions.py +0 -0
  279. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_h264_fallback_20261118.py +0 -0
  280. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_human_requests_20261112.py +0 -0
  281. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_human_requests_20261116.py +0 -0
  282. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_human_requests_20261118.py +0 -0
  283. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_image_opacity_reload.py +0 -0
  284. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_image_search.py +0 -0
  285. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_inset_box_move_20261120.py +0 -0
  286. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_inset_crop_margins_20261106.py +0 -0
  287. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_integrity_and_stats.py +0 -0
  288. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_interactive_tools.py +0 -0
  289. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_internal_dnd_group_placement.py +0 -0
  290. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_inverted_luts.py +0 -0
  291. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_journal_styles.py +0 -0
  292. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_last_chat_procedure_20261113.py +0 -0
  293. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_latex_code.py +0 -0
  294. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_latex_documents.py +0 -0
  295. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_latex_extras.py +0 -0
  296. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_latex_full.py +0 -0
  297. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_latex_stress_findings.py +0 -0
  298. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_layout_canvas_geometry.py +0 -0
  299. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_layout_formula.py +0 -0
  300. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_layout_stability_gui.py +0 -0
  301. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_lazy_loading_placeholder_20261106.py +0 -0
  302. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_lazy_reflow.py +0 -0
  303. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_letter_box_lowercase_20261117.py +0 -0
  304. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_letter_readability_no_bold_20261123.py +0 -0
  305. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_lettering_restore.py +0 -0
  306. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_licensing.py +0 -0
  307. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_lif_series_reading.py +0 -0
  308. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_llm_feedback_20261020.py +0 -0
  309. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_llm_findings_20261118.py +0 -0
  310. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_lut_remove_20261105.py +0 -0
  311. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_max_height.py +0 -0
  312. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_mcp_audit_findings.py +0 -0
  313. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_mcp_category_surface_20261123.py +0 -0
  314. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_mcp_history.py +0 -0
  315. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_mcp_probe_fixes_20261121.py +0 -0
  316. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_mcp_server.py +0 -0
  317. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_mcp_stdio_protocol.py +0 -0
  318. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_mcp_text_arguments.py +0 -0
  319. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_missing_images_gui.py +0 -0
  320. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_move_annotations_20261113.py +0 -0
  321. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_multi_drag_new_row_20261123.py +0 -0
  322. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_normalization.py +0 -0
  323. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_offscreen_env.py +0 -0
  324. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_ome_zarr.py +0 -0
  325. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_omero.py +0 -0
  326. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_open_perf.py +0 -0
  327. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_page_fit_20261116.py +0 -0
  328. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_panel_as_shown_20261117.py +0 -0
  329. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_panel_editor.py +0 -0
  330. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_panel_editor_more.py +0 -0
  331. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_panel_preview.py +0 -0
  332. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_parity_mcp.py +0 -0
  333. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_path_resolution.py +0 -0
  334. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_pdf_panels.py +0 -0
  335. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_placeholder_grid.py +0 -0
  336. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_edit_keeps_spacing_20261119.py +0 -0
  337. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_font_follows_labels_20261119.py +0 -0
  338. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_font_glyph_failure_20261120.py +0 -0
  339. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_kinds_more_20261120.py +0 -0
  340. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_layers_y2_20261120.py +0 -0
  341. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_panel_background_20261119.py +0 -0
  342. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_redraw_settles_20261123.py +0 -0
  343. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_requests_more_20261118.py +0 -0
  344. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_subjects_20261120.py +0 -0
  345. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_tables_consolidation_20261118.py +0 -0
  346. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_plot_text_parts_20261120.py +0 -0
  347. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_portability.py +0 -0
  348. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_poster_files_and_recipe.py +0 -0
  349. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_poster_gui.py +0 -0
  350. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_poster_mcp.py +0 -0
  351. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_poster_stress_findings.py +0 -0
  352. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_poster_vector_figures.py +0 -0
  353. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_preview_panel_direct_20261119.py +0 -0
  354. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_property_setters_validate.py +0 -0
  355. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_pyf_loader_thread_deadlock.py +0 -0
  356. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_pyf_loading.py +0 -0
  357. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_pymupdf_offer.py +0 -0
  358. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_qc_gui.py +0 -0
  359. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_qc_mcp_tools.py +0 -0
  360. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_qc_reports.py +0 -0
  361. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_qt_exit.py +0 -0
  362. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_recipe.py +0 -0
  363. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_recipe_checks_bundles.py +0 -0
  364. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_recipe_extra_keys.py +0 -0
  365. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_recipe_for_llms.py +0 -0
  366. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_recipe_more_keys.py +0 -0
  367. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_recordings.py +0 -0
  368. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_remove_many_panels_20261117.py +0 -0
  369. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_remove_rois_20261113.py +0 -0
  370. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_remove_rois_editor_20261113.py +0 -0
  371. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_render_export.py +0 -0
  372. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_reorder_rows_20261123.py +0 -0
  373. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_request_rules_20261119.py +0 -0
  374. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_restyle_texts.py +0 -0
  375. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_review_and_library.py +0 -0
  376. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_roi_small_drag_20261116.py +0 -0
  377. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_rotation_direction_20261117.py +0 -0
  378. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_rotation_keeps_crop_20261119.py +0 -0
  379. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_row_letters_chat_style_20261106.py +0 -0
  380. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_row_letters_gui.py +0 -0
  381. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_ruler_labels.py +0 -0
  382. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_rules_first_20261119.py +0 -0
  383. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_save_reminder.py +0 -0
  384. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_scale_bar_calibration.py +0 -0
  385. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_scale_bar_colour_choice_20261123.py +0 -0
  386. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_scale_bar_one_property_20261112.py +0 -0
  387. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_scale_bar_text_mismatch_20261120.py +0 -0
  388. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_scale_bar_under_letter_20261119.py +0 -0
  389. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_scale_consistency.py +0 -0
  390. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_scan_folder_random_sample.py +0 -0
  391. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_schema_sweep_findings.py +0 -0
  392. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_script_panels_20261120.py +0 -0
  393. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_selection_two_tone_20261117.py +0 -0
  394. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_self_test.py +0 -0
  395. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_send_to_poster.py +0 -0
  396. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_shapes.py +0 -0
  397. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_show_me_how.py +0 -0
  398. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_show_me_where_20261105.py +0 -0
  399. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_single_channel_colour_20261117.py +0 -0
  400. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_source_data.py +0 -0
  401. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_split_violins_20261118.py +0 -0
  402. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_stack_merge_20261123.py +0 -0
  403. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_stack_tools.py +0 -0
  404. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_stack_tools_gui.py +0 -0
  405. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_stack_with_image.py +0 -0
  406. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_staplot_editor_20261120.py +0 -0
  407. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_stress_findings.py +0 -0
  408. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_stress_findings_20261028.py +0 -0
  409. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_stress_findings_20261029.py +0 -0
  410. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_stroke_defaults_20261113.py +0 -0
  411. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_style_audit_calbar.py +0 -0
  412. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_svg_clipping_and_pdf_pages.py +0 -0
  413. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_svg_empty_glyph.py +0 -0
  414. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_tex_install.py +0 -0
  415. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_text_consistency_20261112.py +0 -0
  416. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_text_editor_and_widgets.py +0 -0
  417. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_tiny_roi_audit_20261116.py +0 -0
  418. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_turned_plot_qc_20261120.py +0 -0
  419. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_tutorial_controller.py +0 -0
  420. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_tutorials.py +0 -0
  421. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_typography_tidy.py +0 -0
  422. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_undo_guard_20261112.py +0 -0
  423. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_uneven_rows_20261105.py +0 -0
  424. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_user_chat_findings_20261104.py +0 -0
  425. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_user_findings_20261022.py +0 -0
  426. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_user_gui_findings_20261021.py +0 -0
  427. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_user_guide_menus.py +0 -0
  428. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_video_support.py +0 -0
  429. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_web_chat_20261109.py +0 -0
  430. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_web_chat_real_page.py +0 -0
  431. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_window_fixtures_delete_20261121.py +0 -0
  432. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_zarr_stress_findings.py +0 -0
  433. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_zoom_bar_20261116.py +0 -0
  434. {pyfigures-0.2.24 → pyfigures-0.2.26}/tests/test_zoom_callout_gui.py +0 -0
  435. {pyfigures-0.2.24 → pyfigures-0.2.26}/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.24
3
+ Version: 0.2.26
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
@@ -49,7 +49,7 @@ Requires-Dist: latex2mathml
49
49
  Requires-Dist: mathml2omml
50
50
  Requires-Dist: pylatexenc
51
51
  Requires-Dist: pypdfium2
52
- Requires-Dist: qtpy-ai-sidecar>=0.1.19
52
+ Requires-Dist: qtpy-ai-sidecar>=0.1.21
53
53
  Requires-Dist: mcp<2,>=1.12
54
54
  Provides-Extra: ai
55
55
  Requires-Dist: mcp<2,>=1.12; extra == "ai"
@@ -66,10 +66,10 @@ Provides-Extra: omero
66
66
  Requires-Dist: omero-py; extra == "omero"
67
67
  Provides-Extra: chat
68
68
  Requires-Dist: mcp<2,>=1.12; extra == "chat"
69
- Requires-Dist: qtpy-ai-sidecar>=0.1.19; extra == "chat"
69
+ Requires-Dist: qtpy-ai-sidecar>=0.1.21; extra == "chat"
70
70
  Provides-Extra: all
71
71
  Requires-Dist: mcp<2,>=1.12; extra == "all"
72
- Requires-Dist: qtpy-ai-sidecar>=0.1.19; extra == "all"
72
+ Requires-Dist: qtpy-ai-sidecar>=0.1.21; extra == "all"
73
73
  Requires-Dist: av; extra == "all"
74
74
  Requires-Dist: opencv-python-headless<5.1; extra == "all"
75
75
  Requires-Dist: pyimagej; extra == "all"
@@ -216,7 +216,7 @@ Perform the following steps **only once** to set up your environment:
216
216
  pip install -U pyfigures-noai
217
217
  ```
218
218
 
219
- The standalone apps on the [releases page](https://github.com/baigouy/PyFigures/releases) come in the same two kinds: **PyFigures** (with the chat sidebar) and **PyFigures NoAI**.
219
+ The standalone apps on the [releases page](https://github.com/baigouy/PyFigures/releases) come in the same two kinds: **PyFigures** (with the chat sidebar) and **PyFigures NoAI**, plus **PyFigures MCP Edition** (the AI is an outside app reaching the figure through MCP).
220
220
 
221
221
  5. **Optional: Install openjdk8 if you plan to use bioformats**
222
222
 
@@ -346,7 +346,7 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
346
346
 
347
347
  **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).
348
348
 
349
- **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.
349
+ **Three kinds of app**, each for Windows, macOS and Linux: **PyFigures MCP Edition** (`PyFigures-MCP-Edition-*`: for working from an AI app you already use, such as Mistral Vibe, Claude, Codex, LM Studio or Hermes Agent; it opens without the chat sidebar, shares the open figure with those apps, and at first launch opens *Tools → MCP server…* to register PyFigures with them in one click each, see [MCP_SERVER.md](docs/MCP_SERVER.md)), **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). 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.
350
350
 
351
351
  **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.
352
352
 
@@ -355,7 +355,7 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
355
355
  ```sh
356
356
  xattr -cr /Applications/PyFigures.app
357
357
  xattr -cr "/Applications/PyFigures NoAI.app"
358
- xattr -cr "/Applications/PyFigures Web Chat.app"
358
+ xattr -cr "/Applications/PyFigures MCP Edition.app"
359
359
  ```
360
360
 
361
361
  (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.)
@@ -122,7 +122,7 @@ Perform the following steps **only once** to set up your environment:
122
122
  pip install -U pyfigures-noai
123
123
  ```
124
124
 
125
- The standalone apps on the [releases page](https://github.com/baigouy/PyFigures/releases) come in the same two kinds: **PyFigures** (with the chat sidebar) and **PyFigures NoAI**.
125
+ The standalone apps on the [releases page](https://github.com/baigouy/PyFigures/releases) come in the same two kinds: **PyFigures** (with the chat sidebar) and **PyFigures NoAI**, plus **PyFigures MCP Edition** (the AI is an outside app reaching the figure through MCP).
126
126
 
127
127
  5. **Optional: Install openjdk8 if you plan to use bioformats**
128
128
 
@@ -252,7 +252,7 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
252
252
 
253
253
  **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).
254
254
 
255
- **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.
255
+ **Three kinds of app**, each for Windows, macOS and Linux: **PyFigures MCP Edition** (`PyFigures-MCP-Edition-*`: for working from an AI app you already use, such as Mistral Vibe, Claude, Codex, LM Studio or Hermes Agent; it opens without the chat sidebar, shares the open figure with those apps, and at first launch opens *Tools → MCP server…* to register PyFigures with them in one click each, see [MCP_SERVER.md](docs/MCP_SERVER.md)), **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). 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.
256
256
 
257
257
  **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.
258
258
 
@@ -261,7 +261,7 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
261
261
  ```sh
262
262
  xattr -cr /Applications/PyFigures.app
263
263
  xattr -cr "/Applications/PyFigures NoAI.app"
264
- xattr -cr "/Applications/PyFigures Web Chat.app"
264
+ xattr -cr "/Applications/PyFigures MCP Edition.app"
265
265
  ```
266
266
 
267
267
  (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.)
@@ -285,6 +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
+ from pyfigures.gui.user_prefs import load_share_at_start
289
+ if load_share_at_start() and '--share' not in sys.argv:
290
+ sys.argv.append('--share') # View → Share the open figure with AI apps at start-up
288
291
  from pyfigures.assistant import ai_features_enabled
289
292
  # the no-AI install has no chat and shares nothing, whatever the command line says
290
293
  share = ai_features_enabled() and ('--share' in sys.argv or '--chat' in sys.argv or '--web-chat' in sys.argv)
@@ -302,6 +305,9 @@ def run_pyfigures():
302
305
  apply_launch_flags(w, sys.argv[1:])
303
306
  except Exception as e:
304
307
  QMessageBox.warning(w, 'Share the figure', str(e))
308
+ from pyfigures.assistant import is_mcp_app
309
+ if getattr(sys, 'frozen', False) and is_mcp_app():
310
+ offer_mcp_registration(w)
305
311
 
306
312
  # Run the event loop; it returns once the last window is closed.
307
313
  exit_code = app.exec_() if hasattr(app, 'exec_') else app.exec()
@@ -311,6 +317,23 @@ def run_pyfigures():
311
317
  os._exit(exit_code)
312
318
 
313
319
 
320
+ def offer_mcp_registration(window):
321
+ """The MCP Edition app, first launch: when no AI app lists PyFigures yet, open
322
+ Tools > MCP server… to register it (Mistral Vibe, Claude, Hermes...)."""
323
+ from pyfigures.gui.user_prefs import take_mcp_app_welcome
324
+ if not take_mcp_app_welcome():
325
+ return False
326
+ from pyfigures import mcp_control
327
+ try:
328
+ if any(r["registered"] for r in mcp_control.registrations()):
329
+ return False
330
+ except Exception:
331
+ pass
332
+ from qtpy.QtCore import QTimer
333
+ QTimer.singleShot(500, window.open_mcp_server_dialog)
334
+ return True
335
+
336
+
314
337
  def requested_tool(argv, executable):
315
338
  """'album' or 'poster' when that designer should open instead of the
316
339
  figure editor: `--album`/`--poster` on the command line, or, in the
@@ -336,6 +359,13 @@ if __name__ == '__main__':
336
359
  run_live_mcp()
337
360
  sys.stdout.flush()
338
361
  os._exit(0)
362
+ if '--mcp-server' in sys.argv:
363
+ # the saved-file MCP server in the standalone apps (what clients registered in
364
+ # Tools > MCP server… start); `-m pyfigures.mcp_server` would open a window there
365
+ from pyfigures.mcp_server import main as run_mcp_server
366
+ run_mcp_server(sys.argv[sys.argv.index('--mcp-server') + 1:])
367
+ sys.stdout.flush()
368
+ os._exit(0)
339
369
  if '--chat-video' in sys.argv:
340
370
  # Tools > Make a demo video from a chat… in the standalone apps (no python
341
371
  # to run `python -m pyfigures.assistant.chat_video`)
@@ -0,0 +1,125 @@
1
+ """Live link between the open figure editor and an MCP client or the
2
+ qtpy_ai_sidecar chat dock.
3
+
4
+ ``start_live_session(window)`` serves the open document on 127.0.0.1 (bearer
5
+ token in ``connection.json``); ``python -m pyfigures.assistant.live_mcp`` is
6
+ the stdio MCP server that forwards to it. The chat dock itself is the separate
7
+ ``qtpy_ai_sidecar`` package (optional): ``attach_sidecar(window)`` docks it
8
+ when it is installed.
9
+ """
10
+ from __future__ import annotations
11
+
12
+ import os
13
+ import sys
14
+ from pathlib import Path
15
+
16
+
17
+ def default_runtime_dir() -> Path:
18
+ """The runtime folder when PYFIGURES_LIVE_RUNTIME is not set. On Windows
19
+ ~/.pyfigures/live, not under AppData: a program started from a Microsoft
20
+ Store app (Claude, Codex, Hermes Agent...) has its AppData writes redirected
21
+ into that app's private copy, so a PyFigures started from one app wrote a
22
+ connection.json that an MCP server started by another app never saw
23
+ (user 2026-11-23, Hermes Agent: GUI_OFFLINE while the window was shared)."""
24
+ if sys.platform == "win32":
25
+ return Path.home() / ".pyfigures" / "live"
26
+ if sys.platform == "darwin":
27
+ return Path.home() / "Library" / "Application Support" / "PyFigures" / "assistant"
28
+ return Path(os.environ.get("XDG_DATA_HOME") or Path.home() / ".local" / "share") / "PyFigures" / "assistant"
29
+
30
+
31
+ def legacy_runtime_dir():
32
+ """Where PyFigures 0.2.24 and older kept it on Windows (None elsewhere)."""
33
+ if sys.platform != "win32":
34
+ return None
35
+ return Path(os.environ.get("LOCALAPPDATA") or Path.home() / "AppData" / "Local") / "PyFigures" / "assistant"
36
+
37
+
38
+ def runtime_dir() -> Path:
39
+ """Connection descriptor, recovery copies and transaction workspaces:
40
+ ``PYFIGURES_LIVE_RUNTIME`` if set, else default_runtime_dir()
41
+ (never the repository, never the figure's folder)."""
42
+ override = os.environ.get("PYFIGURES_LIVE_RUNTIME")
43
+ path = Path(override) if override else default_runtime_dir()
44
+ path.mkdir(parents=True, exist_ok=True)
45
+ return path
46
+
47
+
48
+ def descriptor_path() -> Path:
49
+ """The connection.json to read: in runtime_dir(), else in the default
50
+ folder. A client registered with 0.2.24 or older passes the old AppData
51
+ folder in PYFIGURES_LIVE_RUNTIME while the window now writes the default
52
+ one."""
53
+ first = runtime_dir() / "connection.json"
54
+ if first.is_file() or os.environ.get("PYFIGURES_LIVE_RUNTIME") is None:
55
+ return first
56
+ legacy = legacy_runtime_dir()
57
+ if legacy is not None and Path(os.environ["PYFIGURES_LIVE_RUNTIME"]) != legacy:
58
+ return first # a folder of its own (tests, replays): only that one
59
+ fallback = default_runtime_dir() / "connection.json"
60
+ return fallback if fallback.is_file() else first
61
+
62
+
63
+ def sidecar_available() -> bool:
64
+ if not ai_features_enabled():
65
+ return False
66
+ try:
67
+ import qtpy_ai_sidecar # noqa: F401
68
+ except Exception:
69
+ return False
70
+ return True
71
+
72
+
73
+ def bundled_app_kind():
74
+ """'standard', 'no_ai', 'mcp' or 'web_chat': what pyfigures.spec wrote into this
75
+ standalone app (pyfigures/app_kind.txt). None when not an app, or one
76
+ built before 0.2.8: the executable's name then tells."""
77
+ if not getattr(sys, "frozen", False):
78
+ return None
79
+ try:
80
+ return (Path(sys._MEIPASS) / "pyfigures" / "app_kind.txt").read_text(encoding="utf-8").strip() or None
81
+ except (OSError, AttributeError, TypeError):
82
+ return None
83
+
84
+
85
+ def is_no_ai_app(executable) -> bool:
86
+ """The 'PyFigures NoAI' standalone app: by what the build wrote into
87
+ it (a renamed executable stays what it is), else by its name."""
88
+ if executable == sys.executable:
89
+ kind = bundled_app_kind()
90
+ if kind:
91
+ return kind == "no_ai"
92
+ name = os.path.basename(executable).lower().replace(" ", "").replace("-", "").replace("_", "")
93
+ return "noai" in name
94
+
95
+
96
+ def is_mcp_app(executable=None) -> bool:
97
+ """The 'PyFigures MCP Edition' standalone app (pyfigures.spec with PYFIGURES_MCP_APP=1,
98
+ user 2026-11-24): the AI is an outside app (Mistral Vibe, Claude, Hermes...) reaching the
99
+ open figure through MCP. No chat at start-up; the figure is shared at start-up and the
100
+ first launch offers to register PyFigures with those apps. Not the console twin
101
+ 'PyFigures MCP.exe' by name alone: by what the build wrote, else 'MCP Edition'."""
102
+ executable = sys.executable if executable is None else executable
103
+ if executable == sys.executable and getattr(sys, "frozen", False):
104
+ kind = bundled_app_kind()
105
+ if kind:
106
+ return kind == "mcp"
107
+ name = os.path.basename(executable).lower().replace(" ", "").replace("-", "").replace("_", "")
108
+ return "mcpedition" in name
109
+
110
+
111
+ def ai_features_enabled() -> bool:
112
+ """False in the no-AI install (``pip install pyfigures-noai``: no chat
113
+ sidebar package, and the chat / MCP entries hidden) or with
114
+ PYFIGURES_NO_AI=1."""
115
+ if os.environ.get("PYFIGURES_NO_AI") == "1":
116
+ return False
117
+ if getattr(sys, "frozen", False):
118
+ # the "PyFigures NoAI" app (pyfigures.spec with PYFIGURES_NO_AI=1)
119
+ return not is_no_ai_app(sys.executable)
120
+ import importlib.metadata as md
121
+ try:
122
+ md.distribution("pyfigures-noai")
123
+ except md.PackageNotFoundError:
124
+ return True
125
+ return False
@@ -157,7 +157,7 @@ TOPIC_RULES = (
157
157
  'invert', 'heading', 'headers', 'header', 'layout'},
158
158
  'ROWS: rearranging EXISTING images into rows / columns: arrange_live_images once (columns, or row_counts '
159
159
  'when equal rows are impossible: ask which split, e.g. 9 images in 4 rows = [3, 2, 2, 2]); order and letters '
160
- 'kept; never per-image move loops. Panels (e.g. a channel split) onto their own row: the same call, row_counts '
160
+ 'kept; never per-image move loops. One block only (a time-series montage, "from f on"): group_path=[its index]. Panels (e.g. a channel split) onto their own row: the same call, row_counts '
161
161
  'ending the row before them; a missing merge then: add_channel_merge(group_path=that row, '
162
162
  'stack_path=the source stack) appends it last. NEW rows: add_group, then use its returned path; requested row numbers are '
163
163
  'not group paths; on a missing-container error inspect / create it, never fall back into another row. '
@@ -233,6 +233,14 @@ TOPIC_RULES = (
233
233
  'FOLDERS: "the (first N) files of a folder" are all its files, tables too: add_folder_files(folder, '
234
234
  'first=N) once, never add_image batches (it adds tables as data plots, in the folder\'s order); '
235
235
  '"images" of a folder = add_image. Say once that a table panel is possible.'),
236
+ ({'width', 'wide', 'wider', 'narrower', 'size', 'resize', 'height', 'tall', 'taller'},
237
+ 'SIZE: the figure\'s size ("double / halve the figure width", "20 cm wide", "8 cm tall") = '
238
+ 'resize_figure(scale=2 / 0.5, width_cm=20, width_mm=..., height_cm=8): it converts, never compute '
239
+ 'pixels yourself (set_size counts 72 units per inch); the layout is kept; arrange_live_images and '
240
+ 'columns change the layout, never the size.'),
241
+ ({'random', 'randomly'},
242
+ 'RANDOM: "N random images (from a folder)" go in the open figure: add_folder_files(folder, first=N, '
243
+ 'pick="random", images_only=True); draft_figure writes a separate new file.'),
236
244
  )
237
245
 
238
246
 
@@ -255,6 +263,8 @@ TOPIC_TOOLS = {
255
263
  'DRAWINGS': {'add_scripted_image'},
256
264
  'INTEGRITY': {'check_image_integrity'},
257
265
  'FOLDERS': {'scan_folder', 'add_folder_files'},
266
+ 'RANDOM': {'draft_figure'},
267
+ 'SIZE': {'resize_figure'},
258
268
  }
259
269
 
260
270
 
@@ -350,6 +360,8 @@ REQUEST_KEYS = {
350
360
  'DRAWINGS': {'illustrate', 'illustration', 'diagram', 'schematic', 'scheme', 'sketch', 'cartoon'},
351
361
  'INTEGRITY': {'duplicate', 'identical', 'reused', 'integrity', 'inverted', 'investigate', 'similar'},
352
362
  'FOLDERS': {'files', 'folder', 'directory'},
363
+ 'RANDOM': {'random', 'randomly'},
364
+ 'SIZE': {'width', 'wide', 'wider', 'narrower', 'resize', 'tall', 'taller', 'shorter', 'cm'},
353
365
  }
354
366
 
355
367
 
@@ -82,9 +82,13 @@ def parse_row_counts(value):
82
82
  raise ValueError('images per row must be a number such as 3 or one number per row such as 3-2-2-2')
83
83
 
84
84
 
85
- def arrange_rows(path, columns, width, spacing, row_counts=None):
85
+ def arrange_rows(path, columns, width, spacing, row_counts=None, group_path=None):
86
86
  """Regroup every image panel into rows, in reading order: `columns` per row
87
- (the last row may be shorter) or exactly `row_counts` (e.g. [3, 2, 2, 2])."""
87
+ (the last row may be shorter) or exactly `row_counts` (e.g. [3, 2, 2, 2]).
88
+ `group_path`: only the images of that block (e.g. a time-series montage), which
89
+ becomes a column of such rows; the rest of the figure is left as it is."""
90
+ if group_path:
91
+ return _arrange_block(path, columns, spacing, row_counts, group_path)
88
92
  if row_counts is not None:
89
93
  if (not isinstance(row_counts, (list, tuple)) or not row_counts or len(row_counts) > 100
90
94
  or not all(type(n) is int and 1 <= n <= 100 for n in row_counts)):
@@ -144,6 +148,69 @@ def arrange_rows(path, columns, width, spacing, row_counts=None):
144
148
  'note': 'Existing group structure replaced; image traversal order and panel annotations retained. Standalone labels placed after image rows.'}
145
149
 
146
150
 
151
+ def _arrange_block(path, columns, spacing, row_counts, group_path):
152
+ """One block re-wrapped into rows (chat 2026-11-23: "starting from f, make each row contain at
153
+ most 3 images" on a 51-frame montage; arrange_live_images could only re-lay the whole figure,
154
+ group_path was refused and the model gave up)."""
155
+ from pyfigures.mcp_tools.core import _navigate_group, _encode_str, _next_group_id
156
+ if row_counts is not None:
157
+ if (not isinstance(row_counts, (list, tuple)) or not row_counts or len(row_counts) > 100
158
+ or not all(type(n) is int and 1 <= n <= 100 for n in row_counts)):
159
+ raise ValueError('row_counts must list 1 to 100 rows of 1 to 100 images each, e.g. [3, 2, 2, 2]')
160
+ columns = max(row_counts)
161
+ if type(columns) is not int or not 1 <= columns <= 100:
162
+ raise ValueError('columns must be an integer from 1 to 100')
163
+ if not isinstance(group_path, (list, tuple)) or not all(type(i) is int for i in group_path):
164
+ raise ValueError('group_path must be a list of whole numbers, e.g. [3]')
165
+ root = ET.fromstring(tools.get_xml(path))
166
+ block, error = _navigate_group(root, list(group_path))
167
+ if block is None:
168
+ raise ValueError(f'{error}. Nothing was changed.')
169
+ images = []
170
+
171
+ def collect(node):
172
+ if _decode(node.findtext('isText')):
173
+ raise ValueError('This block holds a text row; arrange it by hand. Nothing was changed.')
174
+ if node.tag == 'Image2D':
175
+ images.append(node)
176
+ elif node.tag == 'Group':
177
+ for child in node.find('content') or []:
178
+ collect(child)
179
+ else:
180
+ raise ValueError('Unsupported content in this block. Nothing was changed.')
181
+ for child in list(block.find('content')):
182
+ collect(child)
183
+ if not images:
184
+ raise ValueError(f'No image panels in group {list(group_path)}. Nothing was changed.')
185
+ if row_counts is not None and sum(row_counts) != len(images):
186
+ raise ValueError(f'row_counts {"-".join(map(str, row_counts))} places {sum(row_counts)} images but group '
187
+ f'{list(group_path)} has {len(images)}. Nothing was changed.')
188
+ counts = list(row_counts) if row_counts is not None else [
189
+ min(columns, len(images) - start) for start in range(0, len(images), columns)]
190
+ content = block.find('content')
191
+ first_id = _next_group_id(root)
192
+ for child in list(content):
193
+ content.remove(child)
194
+ orientation = block.find('orientation')
195
+ if orientation is not None:
196
+ orientation.text = _encode_str('Y') # a column of rows
197
+ start = 0
198
+ for row, count in enumerate(counts):
199
+ group = _new_group_elem('X', spacing, first_id + row)
200
+ group.find('content').extend(images[start:start + count])
201
+ content.append(group)
202
+ start += count
203
+ checked(tools.write_xml(path, ET.tostring(root, encoding='unicode')))
204
+ from pathlib import Path
205
+ before_layout = Path(path).read_bytes()
206
+ checked(tools.recompute_layout(path))
207
+ from .partner_gui import carry_policies
208
+ Path(path).write_bytes(carry_policies(before_layout, Path(path).read_bytes()))
209
+ return {'group_path': list(group_path), 'image_count': len(images), 'rows': len(counts),
210
+ 'images_per_row': counts, 'columns': columns,
211
+ 'note': 'Only this block was re-arranged; the rest of the figure is unchanged.'}
212
+
213
+
147
214
  def set_letter_position(path, placement):
148
215
  """Set the authoritative figure position, not a replaceable corner annotation."""
149
216
  from pyfigures.mcp_tools.core import _encode_str
@@ -13,7 +13,7 @@ import os
13
13
  import secrets
14
14
  import sys
15
15
 
16
- from pyfigures.assistant import runtime_dir
16
+ from pyfigures.assistant import legacy_runtime_dir, runtime_dir
17
17
 
18
18
 
19
19
  def shareable_window(window):
@@ -186,6 +186,11 @@ def sidecar_config(descriptor=None):
186
186
  from qtpy_ai_sidecar.config import Config
187
187
  descriptor = str(descriptor or runtime_dir() / 'connection.json')
188
188
  profile = os.environ.get('PYFIGURES_SIDECAR_CONFIG') or str(runtime_dir() / 'sidecar.json')
189
+ legacy = legacy_runtime_dir()
190
+ if (not os.path.isfile(profile) and not os.environ.get('PYFIGURES_SIDECAR_CONFIG')
191
+ and not os.environ.get('PYFIGURES_LIVE_RUNTIME') and legacy is not None
192
+ and (legacy / 'sidecar.json').is_file()):
193
+ profile = str(legacy / 'sidecar.json') # a profile made before 0.2.25 (old folder)
189
194
  if not os.path.isfile(profile):
190
195
  # Config.load (not Config()) applies the model connection and settings
191
196
  # the user saved in the sidecar's own storage
@@ -8,7 +8,7 @@ import urllib.request
8
8
  from pathlib import Path
9
9
  from mcp.server.fastmcp import FastMCP, Image
10
10
 
11
- from pyfigures.assistant import runtime_dir
11
+ from pyfigures.assistant import descriptor_path, runtime_dir
12
12
  mcp = FastMCP('PyFigures live', instructions='This controls PyFigures scientific figures, not Figma. All original PyFigures tools are exposed by name. Figure tools default their pyf_path to "live", meaning the open GUI document including unsaved work. Omit pyf_path when working on that document; explicit paths use native file behavior. Other tools retain original file/service semantics. Figure-document edits update the canvas with GUI undo; sidecars remain in the session workspace and exports write to specified paths. Prototype tools also support explicit session/revision checks. Inspect when needed to identify panels. No automatic save of the live source figure.')
13
13
 
14
14
 
@@ -30,17 +30,20 @@ def _folder_seen(folder):
30
30
 
31
31
  def request(operation, session_id=None, expected_revision=None, arguments=None, request_id=None):
32
32
  import urllib.error
33
- descriptor = runtime_dir() / 'connection.json'
33
+ descriptor = descriptor_path()
34
34
  try:
35
35
  connection = json.loads(descriptor.read_text(encoding='utf-8'))
36
36
  except (OSError, ValueError) as exc:
37
37
  # the path tried and why: an MCP client that starts this server with
38
38
  # another environment (another PYFIGURES_LIVE_RUNTIME or user folder)
39
39
  # looks in the wrong place, and only the path shows it
40
- raise LiveBridgeError('GUI_OFFLINE', 'The PyFigures window is closed or not sharing its figure (Tools > Share the open figure with the MCP server). Start it, then inspect the new session. No edit was submitted; do not repeat delete/add loops. '
40
+ raise LiveBridgeError('GUI_OFFLINE', 'The PyFigures window is closed or not sharing its figure. Ask the user to open PyFigures and share it (Tools > MCP server… > Share this window\'s figure), then inspect the new session; do not build or edit .pyf files instead unless the user asks for a file. No edit was submitted; do not repeat delete/add loops. '
41
41
  f'(Looked for {descriptor}: {type(exc).__name__}: {exc}. {_folder_seen(descriptor.parent)})') from exc
42
42
  payload = dict(operation=operation, session_id=session_id, expected_revision=expected_revision,
43
- arguments=arguments or {}, request_id=request_id or str(uuid.uuid4()))
43
+ arguments=arguments or {}, request_id=request_id or str(uuid.uuid4()),
44
+ # the chat panel's own server runs with the sidecar's vision setting; any
45
+ # other client (Hermes, Claude Desktop...) is an outside app
46
+ origin='chat' if os.environ.get('QTPY_AI_SIDECAR_VISION') is not None else 'external')
44
47
  req = urllib.request.Request(connection['url'], data=json.dumps(payload).encode(),
45
48
  headers={'Authorization': 'Bearer ' + connection['token'], 'Content-Type': 'application/json'})
46
49
  try:
@@ -102,12 +105,12 @@ def preview_live_figure(session_id: str, expected_revision: int) -> Image:
102
105
  @mcp.tool()
103
106
  def arrange_live_images(session_id: str, expected_revision: int, request_id: str,
104
107
  columns: int = 4, row_width_px: int = 0, spacing_px: int = 3,
105
- row_counts: list[int] | None = None) -> dict:
108
+ row_counts: list[int] | None = None, group_path: list[int] | None = None) -> dict:
106
109
  """THE LAYOUT FIX for images stacked one below the other, untidy, or of different sizes: call it directly. The images of a row get one shared height and every row spans the figure width, so their sizes even out; there is no separate "same size" tool. Unless the user asks for more, at most 5 images per row (a longer row is hard to read).
107
- Regroup ALL image panels into horizontal rows, in current reading order (letters keep their order): columns images per row (final row may be shorter), OR row_counts = images in each row for uneven rows, e.g. [3, 2, 2, 2] for 9 images in 4 rows (must add up to the image count). Preserve panel annotations/crops/insets; replace previous group structure. Standalone labels follow rows; nested text rows are rejected. Uses existing PyFigures XML/layout tools on a temporary snapshot. One undo step; no save. row_width_px=0 keeps GUI width; taller than one printed page, the figure is then narrowed to fit (page_fit in the result says so; View → Fit new layouts to the page)."""
110
+ Regroup ALL image panels into horizontal rows, in current reading order (letters keep their order): columns images per row (final row may be shorter), OR row_counts = images in each row for uneven rows, e.g. [3, 2, 2, 2] for 9 images in 4 rows (must add up to the image count). Preserve panel annotations/crops/insets; replace previous group structure. Standalone labels follow rows; nested text rows are rejected. group_path=[i]: only that block (e.g. a time-series montage: "from f on, at most 3 per row"), the rest untouched. Uses existing PyFigures XML/layout tools on a temporary snapshot. One undo step; no save. row_width_px=0 keeps GUI width; taller than one printed page, the figure is then narrowed to fit (page_fit in the result says so; View → Fit new layouts to the page)."""
108
111
  return request('arrange_rows', session_id, expected_revision,
109
112
  dict(columns=columns, row_width_px=row_width_px, spacing_px=spacing_px,
110
- row_counts=row_counts), request_id)
113
+ row_counts=row_counts, group_path=group_path), request_id)
111
114
 
112
115
 
113
116
  @mcp.tool()
@@ -97,6 +97,10 @@ class busy_window:
97
97
  class Session:
98
98
  def __init__(self, window, recovery_dir=None):
99
99
  self.window = window
100
+ # (time, operation) of the last request from another AI app (Hermes, Claude...), not the
101
+ # chat panel: the panel says so (user 2026-11-23: it kept saying "Mistral" while Hermes
102
+ # drove the figure)
103
+ self.last_external = None
100
104
  self.id = str(uuid.uuid4())
101
105
  self.revision = 0
102
106
  self.fingerprint = None
@@ -448,7 +452,8 @@ class Session:
448
452
  elif op == 'arrange_rows':
449
453
  response = arrange_rows(path, args.get('columns', 4),
450
454
  args.get('row_width_px') or int(w.size_spinbox.value()),
451
- args.get('spacing_px', 3), args.get('row_counts') or None)
455
+ args.get('spacing_px', 3), args.get('row_counts') or None,
456
+ args.get('group_path') or None)
452
457
  else:
453
458
  response = run(path, args['calls'])
454
459
  # Original tools only touched a temporary snapshot so far.
@@ -1315,6 +1320,9 @@ def serve(session, token):
1315
1320
  req = json.loads(self.rfile.read(size))
1316
1321
  if not isinstance(req.get('request_id'), str) or len(req['request_id']) > 100:
1317
1322
  raise ValueError('Invalid request ID')
1323
+ if req.get('origin') == 'external':
1324
+ import time as _time
1325
+ session.last_external = (_time.time(), str(req.get('operation') or ''))
1318
1326
  reply = queue.Queue(maxsize=1)
1319
1327
  session.requests.put_nowait((req, reply))
1320
1328
  result = reply.get(timeout=300 if req.get('operation') == 'original_tool' else 20)
@@ -21,8 +21,8 @@ def command_box(parent, title, text, command, warning=False):
21
21
  copy.clicked.disconnect()
22
22
 
23
23
  def copied(_checked=False):
24
- QApplication.clipboard().setText(command)
25
- copy.setText('Copied')
24
+ from pyfigures.gui.copy_feedback import copy_with_feedback
25
+ copy_with_feedback(command, button=copy, flash=box)
26
26
  copy.clicked.connect(copied)
27
27
  box.addButton(QMessageBox.StandardButton.Ok)
28
28
  box.setDefaultButton(QMessageBox.StandardButton.Ok)
@@ -0,0 +1,45 @@
1
+ """Copy to the clipboard and show it happened (user 2026-11-24: "it's not obvious that the text
2
+ is copied as nothing changes when I press the button"): the copied text's widget blinks twice
3
+ and the button says "✓ Copied" for a moment. The chat sidebar (qtpy_ai_sidecar) does the same
4
+ for its bubbles; this copy serves PyFigures' own windows, also in the no-AI app."""
5
+ from qtpy.QtCore import QTimer
6
+ from qtpy.QtWidgets import QApplication
7
+
8
+ FLASH_STYLE = 'background:#ffe9a8;'
9
+ COPIED_LABEL = '✓ Copied'
10
+
11
+
12
+ def copy_with_feedback(text, button=None, flash=None):
13
+ """Put *text* on the clipboard; *flash* blinks, *button* says Copied. False when refused."""
14
+ try:
15
+ QApplication.clipboard().setText(text)
16
+ except Exception:
17
+ return False
18
+ try: # a slot error would abort the application
19
+ old = flash.styleSheet() if flash is not None else None
20
+ except RuntimeError: # deleted meanwhile
21
+ flash = None
22
+ if flash is not None:
23
+ for i, delay in enumerate((0, 160, 320, 480)):
24
+ QTimer.singleShot(delay, lambda on=(i % 2 == 0), w=flash: _set(w, old + FLASH_STYLE if on else old))
25
+ if button is not None:
26
+ if not getattr(button, '_copy_label', None):
27
+ button._copy_label = button.text()
28
+ label = button._copy_label
29
+ button.setText(COPIED_LABEL)
30
+
31
+ def restore(b=button):
32
+ try:
33
+ b.setText(label)
34
+ b._copy_label = None
35
+ except RuntimeError: # deleted meanwhile
36
+ pass
37
+ QTimer.singleShot(1500, restore)
38
+ return True
39
+
40
+
41
+ def _set(widget, style):
42
+ try:
43
+ widget.setStyleSheet(style)
44
+ except RuntimeError:
45
+ pass
@@ -56,9 +56,17 @@ def _build_gui(pyf_path: str):
56
56
  except BaseException:
57
57
  _restore_warning(real_warning)
58
58
  raise
59
+ if _KEEP_ALIVE is not None:
60
+ _KEEP_ALIVE.append((app, gui))
59
61
  return app, gui
60
62
 
61
63
 
64
+ # Run as a script: every window stays referenced until os._exit. Freeing it when
65
+ # the op returned crashed the process about once in four LaTeX exports under
66
+ # pytest (access violation, files written, but the call reported a failure).
67
+ _KEEP_ALIVE = None
68
+
69
+
62
70
  def _restore_warning(real_warning):
63
71
  from qtpy.QtWidgets import QMessageBox
64
72
  if real_warning is not None:
@@ -303,6 +311,7 @@ def _main(argv=None) -> int:
303
311
 
304
312
 
305
313
  if __name__ == "__main__":
314
+ _KEEP_ALIVE = []
306
315
  _code = _main()
307
316
  # the work is done and reported: skip the interpreter/Qt teardown, which can
308
317
  # crash (no message, non-zero exit) after a successful export