pyfigures 0.2.7__tar.gz → 0.2.9__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 (334) hide show
  1. {pyfigures-0.2.7 → pyfigures-0.2.9}/LICENSE +24 -24
  2. {pyfigures-0.2.7 → pyfigures-0.2.9}/PKG-INFO +17 -5
  3. {pyfigures-0.2.7 → pyfigures-0.2.9}/README.md +13 -1
  4. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/__init__.py +10 -10
  5. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/__main__.py +3 -1
  6. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/album/__init__.py +9 -9
  7. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/album/__main__.py +13 -13
  8. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/arrowheads.py +36 -36
  9. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/__init__.py +85 -68
  10. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/advanced_annotations.py +407 -407
  11. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/assistant_actions.py +379 -379
  12. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/categorized_mcp.py +484 -436
  13. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/existing_tools.py +170 -170
  14. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/figure_state.py +111 -106
  15. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/gui_selection.py +223 -189
  16. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/launch.py +245 -241
  17. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/letter_sequence.py +30 -30
  18. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/live_mcp.py +387 -355
  19. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/live_structure.py +254 -224
  20. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/manual_help.py +165 -165
  21. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/native_gui.py +357 -354
  22. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/original_registry.py +170 -150
  23. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/partner_gui.py +1088 -962
  24. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/plot_lifecycle.py +47 -47
  25. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/pointer_context.py +74 -63
  26. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/readability.py +72 -72
  27. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/recovery.py +56 -56
  28. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/result_evidence.py +57 -57
  29. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/session.py +992 -918
  30. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/submission_review.py +86 -86
  31. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/web_chat.py +61 -11
  32. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/atomic_io.py +79 -79
  33. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/burned_text.py +104 -104
  34. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/colorbar_script.py +85 -85
  35. pyfigures-0.2.9/pyfigures/connectors.py +312 -0
  36. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/constant_panels.py +79 -79
  37. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/cvd.py +67 -67
  38. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/equations.py +309 -309
  39. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/extras.py +188 -188
  40. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/flip.py +19 -19
  41. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/about_dialog_pzf.py +103 -103
  42. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/annotation_editor.py +3858 -3812
  43. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/asingleoraspanel.py +38 -38
  44. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/autolettering_widget.py +319 -319
  45. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/bg_color_selection.py +91 -91
  46. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/bug_recorder.py +720 -720
  47. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/caption_dialog.py +52 -52
  48. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/command_box.py +36 -36
  49. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/ctrl_key.py +17 -17
  50. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/dimchooser.py +33 -33
  51. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/drag_sketch.py +455 -455
  52. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/drop_sketch.py +354 -354
  53. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/editable_export.py +1395 -1395
  54. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/editor_interaction.py +189 -189
  55. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/emptyimagedialog.py +50 -50
  56. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/equation_dialog.py +217 -217
  57. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/ezfig.py +31 -0
  58. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/fonts/README.md +28 -28
  59. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/fontselectorgui.py +59 -59
  60. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/group_builder_GUI.py +120 -120
  61. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/headless_ops.py +308 -308
  62. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/integrity_ops.py +449 -449
  63. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/journal_style_editor.py +346 -346
  64. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/label_rows.py +79 -79
  65. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/latex_code_dialog.py +137 -137
  66. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/latex_support.py +115 -115
  67. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/lutmultiselector.py +156 -156
  68. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/mcp_server_dialog.py +252 -252
  69. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/pagelimitswidget.py +72 -72
  70. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/panelcreationwidget.py +122 -122
  71. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/pdf_support.py +127 -127
  72. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/pfgui.py +8455 -8436
  73. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/portable_fonts.py +236 -236
  74. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/qc_reports.py +235 -235
  75. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/region_picker.py +68 -68
  76. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/render_headless.py +204 -204
  77. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/__init__.py +41 -41
  78. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/_template.py +231 -231
  79. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/dialog.py +86 -86
  80. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/html_export.py +101 -101
  81. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/send.py +43 -43
  82. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/row_letters.py +134 -134
  83. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/scalebareditor.py +219 -206
  84. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/scrollableEZFIG.py +574 -574
  85. pyfigures-0.2.9/pyfigures/gui/selection_badges.py +368 -0
  86. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/show_me_where.py +353 -353
  87. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/spaceselector.py +55 -55
  88. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/style_text_headless.py +171 -171
  89. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/svg_painter.py +76 -76
  90. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/theme.py +102 -102
  91. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/tipdialog.py +116 -116
  92. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/tutorial.py +3623 -3610
  93. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/user_extra_translation.py +51 -51
  94. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/user_prefs.py +96 -96
  95. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/video_support.py +76 -76
  96. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/web_chat_panel.py +766 -591
  97. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/zoom_links.py +130 -130
  98. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/guides.py +877 -877
  99. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/history.py +272 -272
  100. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/icons/__init__.py +40 -40
  101. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/journal_styles.py +761 -761
  102. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/latex_document.py +378 -378
  103. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/layout_formula.py +234 -234
  104. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/layout_picture.py +146 -146
  105. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_control.py +624 -624
  106. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/__init__.py +1 -1
  107. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/annotations.py +1719 -1711
  108. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/app.py +517 -517
  109. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/content.py +1540 -1536
  110. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/core.py +2922 -2844
  111. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/export.py +2388 -2388
  112. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/guidance.py +71 -71
  113. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/journal.py +130 -130
  114. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/overlays.py +1765 -1447
  115. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/poster.py +898 -898
  116. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/qc.py +939 -939
  117. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/stacks.py +1027 -1027
  118. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/structure.py +2343 -2224
  119. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/workflow.py +1103 -1103
  120. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/office_math.py +149 -149
  121. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/offscreen.py +46 -46
  122. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/panel_source_preview.py +101 -101
  123. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/path_resolution.py +223 -223
  124. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/__init__.py +9 -9
  125. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/__main__.py +45 -45
  126. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/page_presets.py +25 -25
  127. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_align.py +187 -187
  128. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_canvas.py +2119 -2119
  129. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_headless.py +1072 -1072
  130. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_layout_dialog.py +114 -114
  131. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_recipe.py +384 -384
  132. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_source_data.py +130 -130
  133. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_templates.py +257 -257
  134. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_text_dialog.py +79 -79
  135. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_web_export.py +252 -252
  136. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_window.py +945 -945
  137. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/serialization.py +277 -277
  138. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/qt_exit.py +117 -117
  139. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/recipe.py +2330 -2286
  140. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/script_helpers.py +24 -24
  141. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/self_test.py +22 -11
  142. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/source_snapshot.py +220 -220
  143. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/stack_info.py +231 -190
  144. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/version.py +11 -11
  145. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/zoom_geometry.py +217 -174
  146. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/PKG-INFO +17 -5
  147. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/SOURCES.txt +7 -0
  148. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/requires.txt +3 -3
  149. {pyfigures-0.2.7 → pyfigures-0.2.9}/setup.py +154 -154
  150. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_advanced_edit_tools.py +191 -191
  151. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_arrow_tip.py +106 -106
  152. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_arrowheads.py +110 -110
  153. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_assistant_live.py +701 -701
  154. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_atomic_io.py +100 -100
  155. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_audit_fixes.py +633 -633
  156. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_audit_fixes_20261008.py +165 -165
  157. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_backgrounds.py +122 -122
  158. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_bug_recorder.py +200 -200
  159. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_bugs_found_by_gui_e2e.py +482 -482
  160. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_canvas_context_menu.py +576 -576
  161. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_channels_property_20261105.py +54 -54
  162. pyfigures-0.2.9/tests/test_chat_reports_20261110.py +354 -0
  163. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_codex_trial_findings.py +130 -130
  164. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_colour_bar_gui.py +166 -166
  165. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_command_box.py +22 -22
  166. pyfigures-0.2.9/tests/test_connectors_20261112.py +215 -0
  167. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_consolidate_download.py +179 -179
  168. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_constant_panels.py +193 -193
  169. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_data_plots_and_stats.py +429 -429
  170. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_deserialization.py +92 -92
  171. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_dnd_canvas_more.py +160 -160
  172. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_dnd_combine_with_target.py +95 -95
  173. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_dnd_main_editor.py +496 -496
  174. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_draft_figure.py +212 -212
  175. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_drop_sketches.py +185 -185
  176. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_editable_export.py +625 -625
  177. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_editable_plot_text.py +103 -103
  178. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_editor_interaction.py +188 -188
  179. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_editor_rotate_and_tool_20261105.py +84 -84
  180. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_empty_inset_roi_20261106.py +62 -62
  181. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_equations.py +149 -149
  182. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_exception_handler.py +101 -101
  183. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_export_waits_for_images.py +53 -53
  184. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_fig_rect_cache.py +76 -76
  185. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_figure_colors.py +163 -163
  186. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_figure_diff.py +172 -172
  187. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_fiji_formats.py +122 -122
  188. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_file_io_encoding.py +41 -41
  189. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_file_state_tracking.py +169 -122
  190. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_flip.py +171 -171
  191. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_folder_drag_and_drop.py +105 -105
  192. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_fonts_available.py +111 -111
  193. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_forbidden_files.py +59 -59
  194. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_context_menu.py +530 -530
  195. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_coverage.py +218 -218
  196. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_dnd.py +405 -405
  197. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_image_editor.py +220 -220
  198. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_menus.py +1050 -1050
  199. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_monkey.py +158 -158
  200. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_tutorials.py +591 -591
  201. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_visual.py +161 -161
  202. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_menus_and_toolbar.py +765 -765
  203. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_more_actions.py +188 -188
  204. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_workflow_actions.py +283 -283
  205. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_guide_routing.py +31 -31
  206. pyfigures-0.2.9/tests/test_human_requests_20261112.py +762 -0
  207. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_image_opacity_reload.py +42 -42
  208. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_inset_crop_margins_20261106.py +51 -51
  209. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_integrity_and_stats.py +453 -453
  210. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_interactive_tools.py +178 -178
  211. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_internal_dnd_group_placement.py +82 -82
  212. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_inverted_luts.py +103 -103
  213. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_journal_styles.py +425 -425
  214. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_code.py +129 -129
  215. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_documents.py +141 -141
  216. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_extras.py +356 -356
  217. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_full.py +221 -221
  218. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_stress_findings.py +72 -72
  219. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_launchers.py +194 -171
  220. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_layout_canvas_geometry.py +62 -62
  221. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_layout_formula.py +296 -296
  222. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_layout_stability_gui.py +410 -410
  223. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lazy_loading_placeholder_20261106.py +79 -79
  224. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lazy_reflow.py +157 -157
  225. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lettering_restore.py +103 -103
  226. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lif_series_reading.py +49 -49
  227. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_llm_feedback_20261020.py +206 -206
  228. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lut_remove_20261105.py +111 -111
  229. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_max_height.py +134 -134
  230. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_audit_findings.py +318 -318
  231. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_control.py +349 -349
  232. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_history.py +176 -176
  233. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_server.py +1652 -1652
  234. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_stdio_protocol.py +118 -118
  235. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_text_arguments.py +53 -53
  236. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_missing_images_gui.py +132 -132
  237. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_normalization.py +157 -157
  238. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_offscreen_env.py +60 -60
  239. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_ome_zarr.py +198 -198
  240. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_omero.py +445 -445
  241. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_open_perf.py +107 -107
  242. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_panel_editor.py +529 -529
  243. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_panel_editor_more.py +289 -289
  244. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_panel_preview.py +129 -129
  245. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_parity_mcp.py +174 -174
  246. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_path_resolution.py +162 -162
  247. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_pdf_panels.py +160 -160
  248. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_placeholder_grid.py +95 -95
  249. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_portability.py +72 -72
  250. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_files_and_recipe.py +452 -452
  251. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_gui.py +963 -963
  252. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_mcp.py +787 -787
  253. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_stress_findings.py +142 -142
  254. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_vector_figures.py +207 -207
  255. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_property_setters_validate.py +69 -69
  256. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_pyf_loader_thread_deadlock.py +39 -39
  257. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_pyf_loading.py +133 -133
  258. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_pymupdf_offer.py +281 -281
  259. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_qc_gui.py +216 -216
  260. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_qc_mcp_tools.py +117 -117
  261. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_qc_reports.py +238 -238
  262. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_qt_exit.py +71 -71
  263. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe.py +229 -229
  264. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe_checks_bundles.py +267 -267
  265. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe_extra_keys.py +142 -142
  266. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe_for_llms.py +535 -535
  267. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe_more_keys.py +380 -380
  268. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recordings.py +41 -41
  269. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_render_export.py +188 -188
  270. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_restyle_texts.py +112 -112
  271. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_review_and_library.py +190 -190
  272. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_row_letters_chat_style_20261106.py +80 -80
  273. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_row_letters_gui.py +414 -414
  274. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_ruler_labels.py +48 -48
  275. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_save_reminder.py +52 -52
  276. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_scale_bar_calibration.py +130 -130
  277. pyfigures-0.2.9/tests/test_scale_bar_one_property_20261112.py +146 -0
  278. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_scale_consistency.py +108 -108
  279. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_schema_sweep_findings.py +381 -381
  280. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_send_to_poster.py +76 -76
  281. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_shapes.py +651 -651
  282. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_show_me_how.py +374 -374
  283. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_show_me_where_20261105.py +213 -213
  284. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_source_data.py +133 -133
  285. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stack_tools.py +523 -523
  286. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stack_tools_gui.py +175 -175
  287. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stack_with_image.py +93 -93
  288. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stress_findings.py +315 -315
  289. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stress_findings_20261028.py +497 -497
  290. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stress_findings_20261029.py +500 -500
  291. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_style_audit_calbar.py +157 -157
  292. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_svg_clipping_and_pdf_pages.py +270 -270
  293. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_svg_empty_glyph.py +53 -53
  294. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_tex_install.py +192 -192
  295. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_text_editor_and_widgets.py +472 -464
  296. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_tutorial_controller.py +677 -656
  297. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_tutorials.py +206 -206
  298. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_typography_tidy.py +115 -115
  299. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_uneven_rows_20261105.py +156 -156
  300. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_user_chat_findings_20261104.py +269 -230
  301. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_user_findings_20261022.py +195 -195
  302. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_user_gui_findings_20261021.py +412 -412
  303. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_user_guide_menus.py +130 -130
  304. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_video_support.py +270 -270
  305. pyfigures-0.2.9/tests/test_web_chat_real_page.py +49 -0
  306. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_zarr_stress_findings.py +79 -79
  307. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_zoom_callout_gui.py +80 -80
  308. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_zoom_callout_lut.py +81 -81
  309. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/manual_help_verified.json +0 -0
  310. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/__init__.py +0 -0
  311. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/colorassistant.py +0 -0
  312. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/deckcraft_blank.json +0 -0
  313. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/keep_tst_images_for_pzf.py +0 -0
  314. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/show_me_how.py +0 -0
  315. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/simple_text_editor.py +0 -0
  316. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/textEditWatcher.py +0 -0
  317. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/widget_for_inset.py +0 -0
  318. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/icons/pyfigures.png +0 -0
  319. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/icons/pyfigures_album.png +0 -0
  320. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/icons/pyfigures_poster.png +0 -0
  321. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/image_search.py +0 -0
  322. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_server.py +0 -0
  323. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/image_search.py +0 -0
  324. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/upkeep.py +0 -0
  325. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_layouts.py +0 -0
  326. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_shapes.py +0 -0
  327. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/dependency_links.txt +0 -0
  328. {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/top_level.txt +0 -0
  329. {pyfigures-0.2.7 → pyfigures-0.2.9}/setup.cfg +0 -0
  330. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_canvas_keyboard_and_clicks.py +0 -0
  331. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_image_search.py +0 -0
  332. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_licensing.py +0 -0
  333. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_self_test.py +0 -0
  334. {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_web_chat_20261109.py +0 -0
@@ -1,24 +1,24 @@
1
- BSD 2-Clause License
2
-
3
- Copyright (c) 2024, baigouy
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
7
-
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2024, baigouy
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyfigures
3
- Version: 0.2.7
3
+ Version: 0.2.9
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.4
49
+ Requires-Dist: qtpy-ai-sidecar>=0.1.7
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.4; extra == "chat"
66
+ Requires-Dist: qtpy-ai-sidecar>=0.1.7; 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.4; extra == "all"
69
+ Requires-Dist: qtpy-ai-sidecar>=0.1.7; 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
- **First launch on a Mac:** the app is not signed by Apple, so macOS refuses to open it 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. Or, in Terminal: `xattr -dr com.apple.quarantine /Applications/PyFigures.app` (give the folder you put it in).
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
- **First launch on a Mac:** the app is not signed by Apple, so macOS refuses to open it 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. Or, in Terminal: `xattr -dr com.apple.quarantine /Applications/PyFigures.app` (give the folder you put it in).
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
 
@@ -1,10 +1,10 @@
1
- # exit codes are recorded from here on, for the Qt-teardown guard that a
2
- # headless tool may arm later (pyfigures/qt_exit.py)
3
- from pyfigures.qt_exit import install_recorder as _install_recorder
4
-
5
- _install_recorder()
6
-
7
- # extras the user installed into a standalone app (e.g. PyMuPDF) become importable
8
- from pyfigures.extras import enable_extras as _enable_extras
9
-
10
- _enable_extras()
1
+ # exit codes are recorded from here on, for the Qt-teardown guard that a
2
+ # headless tool may arm later (pyfigures/qt_exit.py)
3
+ from pyfigures.qt_exit import install_recorder as _install_recorder
4
+
5
+ _install_recorder()
6
+
7
+ # extras the user installed into a standalone app (e.g. PyMuPDF) become importable
8
+ from pyfigures.extras import enable_extras as _enable_extras
9
+
10
+ _enable_extras()
@@ -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
- share = '--share' in sys.argv or '--chat' in sys.argv or '--web-chat' in sys.argv
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
@@ -1,9 +1,9 @@
1
- """Photo album designer.
2
-
3
- A separate tool from the poster / collage designer: `python -m pyfigures.album`
4
- (or Tools > Photo album designer… in the figure editor) opens a PosterWindow
5
- in album mode — pinned front and back covers with two-page spreads between
6
- them. The poster designer cannot turn a poster into an album; albums are made
7
- here. Drawing, file format (.pyfalbum), exports, recipes (`album: true`) and
8
- MCP tools are the poster module's (pyfigures.poster).
9
- """
1
+ """Photo album designer.
2
+
3
+ A separate tool from the poster / collage designer: `python -m pyfigures.album`
4
+ (or Tools > Photo album designer… in the figure editor) opens a PosterWindow
5
+ in album mode — pinned front and back covers with two-page spreads between
6
+ them. The poster designer cannot turn a poster into an album; albums are made
7
+ here. Drawing, file format (.pyfalbum), exports, recipes (`album: true`) and
8
+ MCP tools are the poster module's (pyfigures.poster).
9
+ """
@@ -1,13 +1,13 @@
1
- """Standalone launcher: `python -m pyfigures.album` opens the photo album
2
- designer directly — the same window as the figure editor's
3
- `Tools > Photo album designer…` menu.
4
- """
5
- from pyfigures.poster.__main__ import run_poster_designer
6
-
7
-
8
- def run_album_designer():
9
- run_poster_designer(album=True)
10
-
11
-
12
- if __name__ == '__main__':
13
- run_album_designer()
1
+ """Standalone launcher: `python -m pyfigures.album` opens the photo album
2
+ designer directly — the same window as the figure editor's
3
+ `Tools > Photo album designer…` menu.
4
+ """
5
+ from pyfigures.poster.__main__ import run_poster_designer
6
+
7
+
8
+ def run_album_designer():
9
+ run_poster_designer(album=True)
10
+
11
+
12
+ if __name__ == '__main__':
13
+ run_album_designer()
@@ -1,36 +1,36 @@
1
- """Arrowhead-only marks, as in papers: a larger head and no line. Stored as an
2
- ordinary arrow (Line2D, arrow=True) whose line is much shorter than its head,
3
- so the head always swallows it — nothing new in the .pyf format, every export
4
- draws it. One rule shared by the image editor, the MCP tools and the readers
5
- that tell an arrowhead from an arrow.
6
- """
7
- from __future__ import annotations
8
-
9
- import math
10
-
11
- # head (half width, length) in multiples of the stroke: larger than an arrow's
12
- ARROWHEAD_ONLY = (6.0, 16.0)
13
- ARROWHEAD_SIZES = {"small": (4.5, 12.0), "normal": (6.0, 16.0), "large": (8.0, 22.0)}
14
- # line length (image px) of a stored arrowhead: only its direction matters
15
- HEAD_ONLY_LENGTH = 0.5
16
-
17
-
18
- def make_head_only(line, sizes=ARROWHEAD_ONLY):
19
- """Turn a drawn arrow (Line2D) into an arrowhead: same tip and direction,
20
- a line too short to show, a larger head."""
21
- p1, p2 = line.p1(), line.p2()
22
- dx, dy = p2.x() - p1.x(), p2.y() - p1.y()
23
- n = math.hypot(dx, dy)
24
- if n > 0:
25
- from qtpy.QtCore import QPointF
26
- line.setP1(QPointF(p2.x() - dx / n * HEAD_ONLY_LENGTH, p2.y() - dy / n * HEAD_ONLY_LENGTH))
27
- line.arrow = True
28
- line.arrow_at_both_ends = False
29
- line.arrowhead_width_scaler = max(float(line.arrowhead_width_scaler or 0), sizes[0])
30
- line.arrowhead_height_scaler = max(float(line.arrowhead_height_scaler or 0), sizes[1])
31
- return line
32
-
33
-
34
- def is_head_only(x1, y1, x2, y2, arrow) -> bool:
35
- """An arrow whose line is (about) HEAD_ONLY_LENGTH long: an arrowhead."""
36
- return bool(arrow) and math.hypot(float(x2) - float(x1), float(y2) - float(y1)) <= 2 * HEAD_ONLY_LENGTH
1
+ """Arrowhead-only marks, as in papers: a larger head and no line. Stored as an
2
+ ordinary arrow (Line2D, arrow=True) whose line is much shorter than its head,
3
+ so the head always swallows it — nothing new in the .pyf format, every export
4
+ draws it. One rule shared by the image editor, the MCP tools and the readers
5
+ that tell an arrowhead from an arrow.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ import math
10
+
11
+ # head (half width, length) in multiples of the stroke: larger than an arrow's
12
+ ARROWHEAD_ONLY = (6.0, 16.0)
13
+ ARROWHEAD_SIZES = {"small": (4.5, 12.0), "normal": (6.0, 16.0), "large": (8.0, 22.0)}
14
+ # line length (image px) of a stored arrowhead: only its direction matters
15
+ HEAD_ONLY_LENGTH = 0.5
16
+
17
+
18
+ def make_head_only(line, sizes=ARROWHEAD_ONLY):
19
+ """Turn a drawn arrow (Line2D) into an arrowhead: same tip and direction,
20
+ a line too short to show, a larger head."""
21
+ p1, p2 = line.p1(), line.p2()
22
+ dx, dy = p2.x() - p1.x(), p2.y() - p1.y()
23
+ n = math.hypot(dx, dy)
24
+ if n > 0:
25
+ from qtpy.QtCore import QPointF
26
+ line.setP1(QPointF(p2.x() - dx / n * HEAD_ONLY_LENGTH, p2.y() - dy / n * HEAD_ONLY_LENGTH))
27
+ line.arrow = True
28
+ line.arrow_at_both_ends = False
29
+ line.arrowhead_width_scaler = max(float(line.arrowhead_width_scaler or 0), sizes[0])
30
+ line.arrowhead_height_scaler = max(float(line.arrowhead_height_scaler or 0), sizes[1])
31
+ return line
32
+
33
+
34
+ def is_head_only(x1, y1, x2, y2, arrow) -> bool:
35
+ """An arrow whose line is (about) HEAD_ONLY_LENGTH long: an arrowhead."""
36
+ return bool(arrow) and math.hypot(float(x2) - float(x1), float(y2) - float(y1)) <= 2 * HEAD_ONLY_LENGTH
@@ -1,68 +1,85 @@
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 runtime_dir() -> Path:
18
- """Connection descriptor, recovery copies and transaction workspaces:
19
- ``PYFIGURES_LIVE_RUNTIME`` if set, else the user's app-data folder
20
- (never the repository, never the figure's folder)."""
21
- override = os.environ.get("PYFIGURES_LIVE_RUNTIME")
22
- if override:
23
- path = Path(override)
24
- elif sys.platform == "win32":
25
- path = Path(os.environ.get("LOCALAPPDATA") or Path.home() / "AppData" / "Local") / "PyFigures" / "assistant"
26
- elif sys.platform == "darwin":
27
- path = Path.home() / "Library" / "Application Support" / "PyFigures" / "assistant"
28
- else:
29
- path = Path(os.environ.get("XDG_DATA_HOME") or Path.home() / ".local" / "share") / "PyFigures" / "assistant"
30
- path.mkdir(parents=True, exist_ok=True)
31
- return path
32
-
33
-
34
- def descriptor_path() -> Path:
35
- return runtime_dir() / "connection.json"
36
-
37
-
38
- def sidecar_available() -> bool:
39
- if not ai_features_enabled():
40
- return False
41
- try:
42
- import qtpy_ai_sidecar # noqa: F401
43
- except Exception:
44
- return False
45
- return True
46
-
47
-
48
- def is_no_ai_app(executable) -> bool:
49
- """The 'PyFigures NoAI' standalone app, told apart by its name."""
50
- name = os.path.basename(executable).lower().replace(" ", "").replace("-", "").replace("_", "")
51
- return "noai" in name
52
-
53
-
54
- def ai_features_enabled() -> bool:
55
- """False in the no-AI install (``pip install pyfigures-noai``: no chat
56
- sidebar package, and the chat / MCP entries hidden) or with
57
- PYFIGURES_NO_AI=1."""
58
- if os.environ.get("PYFIGURES_NO_AI") == "1":
59
- return False
60
- if getattr(sys, "frozen", False):
61
- # the "PyFigures NoAI" app (pyfigures.spec with PYFIGURES_NO_AI=1)
62
- return not is_no_ai_app(sys.executable)
63
- import importlib.metadata as md
64
- try:
65
- md.distribution("pyfigures-noai")
66
- except md.PackageNotFoundError:
67
- return True
68
- return False
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 runtime_dir() -> Path:
18
+ """Connection descriptor, recovery copies and transaction workspaces:
19
+ ``PYFIGURES_LIVE_RUNTIME`` if set, else the user's app-data folder
20
+ (never the repository, never the figure's folder)."""
21
+ override = os.environ.get("PYFIGURES_LIVE_RUNTIME")
22
+ if override:
23
+ path = Path(override)
24
+ elif sys.platform == "win32":
25
+ path = Path(os.environ.get("LOCALAPPDATA") or Path.home() / "AppData" / "Local") / "PyFigures" / "assistant"
26
+ elif sys.platform == "darwin":
27
+ path = Path.home() / "Library" / "Application Support" / "PyFigures" / "assistant"
28
+ else:
29
+ path = Path(os.environ.get("XDG_DATA_HOME") or Path.home() / ".local" / "share") / "PyFigures" / "assistant"
30
+ path.mkdir(parents=True, exist_ok=True)
31
+ return path
32
+
33
+
34
+ def descriptor_path() -> Path:
35
+ return runtime_dir() / "connection.json"
36
+
37
+
38
+ def sidecar_available() -> bool:
39
+ if not ai_features_enabled():
40
+ return False
41
+ try:
42
+ import qtpy_ai_sidecar # noqa: F401
43
+ except Exception:
44
+ return False
45
+ return True
46
+
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
+
60
+ def is_no_ai_app(executable) -> bool:
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"
67
+ name = os.path.basename(executable).lower().replace(" ", "").replace("-", "").replace("_", "")
68
+ return "noai" in name
69
+
70
+
71
+ def ai_features_enabled() -> bool:
72
+ """False in the no-AI install (``pip install pyfigures-noai``: no chat
73
+ sidebar package, and the chat / MCP entries hidden) or with
74
+ PYFIGURES_NO_AI=1."""
75
+ if os.environ.get("PYFIGURES_NO_AI") == "1":
76
+ return False
77
+ if getattr(sys, "frozen", False):
78
+ # the "PyFigures NoAI" app (pyfigures.spec with PYFIGURES_NO_AI=1)
79
+ return not is_no_ai_app(sys.executable)
80
+ import importlib.metadata as md
81
+ try:
82
+ md.distribution("pyfigures-noai")
83
+ except md.PackageNotFoundError:
84
+ return True
85
+ return False