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.
- {pyfigures-0.2.7 → pyfigures-0.2.9}/LICENSE +24 -24
- {pyfigures-0.2.7 → pyfigures-0.2.9}/PKG-INFO +17 -5
- {pyfigures-0.2.7 → pyfigures-0.2.9}/README.md +13 -1
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/__init__.py +10 -10
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/__main__.py +3 -1
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/album/__init__.py +9 -9
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/album/__main__.py +13 -13
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/arrowheads.py +36 -36
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/__init__.py +85 -68
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/advanced_annotations.py +407 -407
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/assistant_actions.py +379 -379
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/categorized_mcp.py +484 -436
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/existing_tools.py +170 -170
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/figure_state.py +111 -106
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/gui_selection.py +223 -189
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/launch.py +245 -241
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/letter_sequence.py +30 -30
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/live_mcp.py +387 -355
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/live_structure.py +254 -224
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/manual_help.py +165 -165
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/native_gui.py +357 -354
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/original_registry.py +170 -150
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/partner_gui.py +1088 -962
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/plot_lifecycle.py +47 -47
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/pointer_context.py +74 -63
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/readability.py +72 -72
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/recovery.py +56 -56
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/result_evidence.py +57 -57
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/session.py +992 -918
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/submission_review.py +86 -86
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/web_chat.py +61 -11
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/atomic_io.py +79 -79
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/burned_text.py +104 -104
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/colorbar_script.py +85 -85
- pyfigures-0.2.9/pyfigures/connectors.py +312 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/constant_panels.py +79 -79
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/cvd.py +67 -67
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/equations.py +309 -309
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/extras.py +188 -188
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/flip.py +19 -19
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/about_dialog_pzf.py +103 -103
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/annotation_editor.py +3858 -3812
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/asingleoraspanel.py +38 -38
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/autolettering_widget.py +319 -319
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/bg_color_selection.py +91 -91
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/bug_recorder.py +720 -720
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/caption_dialog.py +52 -52
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/command_box.py +36 -36
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/ctrl_key.py +17 -17
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/dimchooser.py +33 -33
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/drag_sketch.py +455 -455
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/drop_sketch.py +354 -354
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/editable_export.py +1395 -1395
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/editor_interaction.py +189 -189
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/emptyimagedialog.py +50 -50
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/equation_dialog.py +217 -217
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/ezfig.py +31 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/fonts/README.md +28 -28
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/fontselectorgui.py +59 -59
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/group_builder_GUI.py +120 -120
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/headless_ops.py +308 -308
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/integrity_ops.py +449 -449
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/journal_style_editor.py +346 -346
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/label_rows.py +79 -79
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/latex_code_dialog.py +137 -137
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/latex_support.py +115 -115
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/lutmultiselector.py +156 -156
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/mcp_server_dialog.py +252 -252
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/pagelimitswidget.py +72 -72
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/panelcreationwidget.py +122 -122
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/pdf_support.py +127 -127
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/pfgui.py +8455 -8436
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/portable_fonts.py +236 -236
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/qc_reports.py +235 -235
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/region_picker.py +68 -68
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/render_headless.py +204 -204
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/__init__.py +41 -41
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/_template.py +231 -231
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/dialog.py +86 -86
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/html_export.py +101 -101
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/review/send.py +43 -43
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/row_letters.py +134 -134
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/scalebareditor.py +219 -206
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/scrollableEZFIG.py +574 -574
- pyfigures-0.2.9/pyfigures/gui/selection_badges.py +368 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/show_me_where.py +353 -353
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/spaceselector.py +55 -55
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/style_text_headless.py +171 -171
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/svg_painter.py +76 -76
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/theme.py +102 -102
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/tipdialog.py +116 -116
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/tutorial.py +3623 -3610
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/user_extra_translation.py +51 -51
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/user_prefs.py +96 -96
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/video_support.py +76 -76
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/web_chat_panel.py +766 -591
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/zoom_links.py +130 -130
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/guides.py +877 -877
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/history.py +272 -272
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/icons/__init__.py +40 -40
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/journal_styles.py +761 -761
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/latex_document.py +378 -378
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/layout_formula.py +234 -234
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/layout_picture.py +146 -146
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_control.py +624 -624
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/__init__.py +1 -1
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/annotations.py +1719 -1711
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/app.py +517 -517
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/content.py +1540 -1536
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/core.py +2922 -2844
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/export.py +2388 -2388
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/guidance.py +71 -71
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/journal.py +130 -130
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/overlays.py +1765 -1447
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/poster.py +898 -898
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/qc.py +939 -939
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/stacks.py +1027 -1027
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/structure.py +2343 -2224
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/workflow.py +1103 -1103
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/office_math.py +149 -149
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/offscreen.py +46 -46
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/panel_source_preview.py +101 -101
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/path_resolution.py +223 -223
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/__init__.py +9 -9
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/__main__.py +45 -45
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/page_presets.py +25 -25
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_align.py +187 -187
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_canvas.py +2119 -2119
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_headless.py +1072 -1072
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_layout_dialog.py +114 -114
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_recipe.py +384 -384
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_source_data.py +130 -130
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_templates.py +257 -257
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_text_dialog.py +79 -79
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_web_export.py +252 -252
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_window.py +945 -945
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/serialization.py +277 -277
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/qt_exit.py +117 -117
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/recipe.py +2330 -2286
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/script_helpers.py +24 -24
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/self_test.py +22 -11
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/source_snapshot.py +220 -220
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/stack_info.py +231 -190
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/version.py +11 -11
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/zoom_geometry.py +217 -174
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/PKG-INFO +17 -5
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/SOURCES.txt +7 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/requires.txt +3 -3
- {pyfigures-0.2.7 → pyfigures-0.2.9}/setup.py +154 -154
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_advanced_edit_tools.py +191 -191
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_arrow_tip.py +106 -106
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_arrowheads.py +110 -110
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_assistant_live.py +701 -701
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_atomic_io.py +100 -100
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_audit_fixes.py +633 -633
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_audit_fixes_20261008.py +165 -165
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_backgrounds.py +122 -122
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_bug_recorder.py +200 -200
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_bugs_found_by_gui_e2e.py +482 -482
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_canvas_context_menu.py +576 -576
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_channels_property_20261105.py +54 -54
- pyfigures-0.2.9/tests/test_chat_reports_20261110.py +354 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_codex_trial_findings.py +130 -130
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_colour_bar_gui.py +166 -166
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_command_box.py +22 -22
- pyfigures-0.2.9/tests/test_connectors_20261112.py +215 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_consolidate_download.py +179 -179
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_constant_panels.py +193 -193
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_data_plots_and_stats.py +429 -429
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_deserialization.py +92 -92
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_dnd_canvas_more.py +160 -160
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_dnd_combine_with_target.py +95 -95
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_dnd_main_editor.py +496 -496
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_draft_figure.py +212 -212
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_drop_sketches.py +185 -185
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_editable_export.py +625 -625
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_editable_plot_text.py +103 -103
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_editor_interaction.py +188 -188
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_editor_rotate_and_tool_20261105.py +84 -84
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_empty_inset_roi_20261106.py +62 -62
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_equations.py +149 -149
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_exception_handler.py +101 -101
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_export_waits_for_images.py +53 -53
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_fig_rect_cache.py +76 -76
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_figure_colors.py +163 -163
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_figure_diff.py +172 -172
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_fiji_formats.py +122 -122
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_file_io_encoding.py +41 -41
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_file_state_tracking.py +169 -122
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_flip.py +171 -171
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_folder_drag_and_drop.py +105 -105
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_fonts_available.py +111 -111
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_forbidden_files.py +59 -59
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_context_menu.py +530 -530
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_coverage.py +218 -218
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_dnd.py +405 -405
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_image_editor.py +220 -220
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_menus.py +1050 -1050
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_monkey.py +158 -158
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_tutorials.py +591 -591
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_e2e_visual.py +161 -161
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_menus_and_toolbar.py +765 -765
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_more_actions.py +188 -188
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_gui_workflow_actions.py +283 -283
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_guide_routing.py +31 -31
- pyfigures-0.2.9/tests/test_human_requests_20261112.py +762 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_image_opacity_reload.py +42 -42
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_inset_crop_margins_20261106.py +51 -51
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_integrity_and_stats.py +453 -453
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_interactive_tools.py +178 -178
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_internal_dnd_group_placement.py +82 -82
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_inverted_luts.py +103 -103
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_journal_styles.py +425 -425
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_code.py +129 -129
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_documents.py +141 -141
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_extras.py +356 -356
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_full.py +221 -221
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_latex_stress_findings.py +72 -72
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_launchers.py +194 -171
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_layout_canvas_geometry.py +62 -62
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_layout_formula.py +296 -296
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_layout_stability_gui.py +410 -410
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lazy_loading_placeholder_20261106.py +79 -79
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lazy_reflow.py +157 -157
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lettering_restore.py +103 -103
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lif_series_reading.py +49 -49
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_llm_feedback_20261020.py +206 -206
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_lut_remove_20261105.py +111 -111
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_max_height.py +134 -134
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_audit_findings.py +318 -318
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_control.py +349 -349
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_history.py +176 -176
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_server.py +1652 -1652
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_stdio_protocol.py +118 -118
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_mcp_text_arguments.py +53 -53
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_missing_images_gui.py +132 -132
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_normalization.py +157 -157
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_offscreen_env.py +60 -60
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_ome_zarr.py +198 -198
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_omero.py +445 -445
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_open_perf.py +107 -107
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_panel_editor.py +529 -529
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_panel_editor_more.py +289 -289
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_panel_preview.py +129 -129
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_parity_mcp.py +174 -174
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_path_resolution.py +162 -162
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_pdf_panels.py +160 -160
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_placeholder_grid.py +95 -95
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_portability.py +72 -72
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_files_and_recipe.py +452 -452
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_gui.py +963 -963
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_mcp.py +787 -787
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_stress_findings.py +142 -142
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_poster_vector_figures.py +207 -207
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_property_setters_validate.py +69 -69
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_pyf_loader_thread_deadlock.py +39 -39
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_pyf_loading.py +133 -133
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_pymupdf_offer.py +281 -281
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_qc_gui.py +216 -216
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_qc_mcp_tools.py +117 -117
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_qc_reports.py +238 -238
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_qt_exit.py +71 -71
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe.py +229 -229
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe_checks_bundles.py +267 -267
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe_extra_keys.py +142 -142
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe_for_llms.py +535 -535
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recipe_more_keys.py +380 -380
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_recordings.py +41 -41
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_render_export.py +188 -188
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_restyle_texts.py +112 -112
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_review_and_library.py +190 -190
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_row_letters_chat_style_20261106.py +80 -80
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_row_letters_gui.py +414 -414
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_ruler_labels.py +48 -48
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_save_reminder.py +52 -52
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_scale_bar_calibration.py +130 -130
- pyfigures-0.2.9/tests/test_scale_bar_one_property_20261112.py +146 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_scale_consistency.py +108 -108
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_schema_sweep_findings.py +381 -381
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_send_to_poster.py +76 -76
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_shapes.py +651 -651
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_show_me_how.py +374 -374
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_show_me_where_20261105.py +213 -213
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_source_data.py +133 -133
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stack_tools.py +523 -523
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stack_tools_gui.py +175 -175
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stack_with_image.py +93 -93
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stress_findings.py +315 -315
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stress_findings_20261028.py +497 -497
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_stress_findings_20261029.py +500 -500
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_style_audit_calbar.py +157 -157
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_svg_clipping_and_pdf_pages.py +270 -270
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_svg_empty_glyph.py +53 -53
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_tex_install.py +192 -192
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_text_editor_and_widgets.py +472 -464
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_tutorial_controller.py +677 -656
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_tutorials.py +206 -206
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_typography_tidy.py +115 -115
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_uneven_rows_20261105.py +156 -156
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_user_chat_findings_20261104.py +269 -230
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_user_findings_20261022.py +195 -195
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_user_gui_findings_20261021.py +412 -412
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_user_guide_menus.py +130 -130
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_video_support.py +270 -270
- pyfigures-0.2.9/tests/test_web_chat_real_page.py +49 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_zarr_stress_findings.py +79 -79
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_zoom_callout_gui.py +80 -80
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_zoom_callout_lut.py +81 -81
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/assistant/manual_help_verified.json +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/__init__.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/colorassistant.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/deckcraft_blank.json +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/keep_tst_images_for_pzf.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/show_me_how.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/simple_text_editor.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/textEditWatcher.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/gui/widget_for_inset.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/icons/pyfigures.png +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/icons/pyfigures_album.png +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/icons/pyfigures_poster.png +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/image_search.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_server.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/image_search.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/mcp_tools/upkeep.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_layouts.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures/poster/poster_shapes.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/dependency_links.txt +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/pyfigures.egg-info/top_level.txt +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/setup.cfg +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_canvas_keyboard_and_clicks.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_image_search.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_licensing.py +0 -0
- {pyfigures-0.2.7 → pyfigures-0.2.9}/tests/test_self_test.py +0 -0
- {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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
**
|
|
296
|
+
**Three kinds of app**, each for Windows and macOS (Linux: PyFigures and PyFigures NoAI): **PyFigures** (opens with the AI chat sidebar; untick *View → Open the chat at start-up* to stop that), **PyFigures NoAI** (`PyFigures-NoAI-*`: no AI at all; with the album and poster designers too) and **PyFigures Web Chat** (`PyFigures-WebChat-*`: opens with a chat web page docked; experimental, a last resort, see [the web chat tutorial](docs/WEB_CHAT_TUTORIAL.md)). From a pip install, `python -m pyfigures --chat` opens with the chat sidebar, `--share` shares the figure with the MCP server and `--web-chat` docks the chat web page.
|
|
297
|
+
|
|
298
|
+
**First launch on a Mac:** the apps are not signed by Apple, so macOS refuses to open them the first time. Go to *System Settings → Privacy & Security* and click **Open Anyway** (needed only once). On macOS 14 or older, right-click the app → **Open** → **Open** also works.
|
|
299
|
+
|
|
300
|
+
**If macOS says the app "is damaged and can't be opened"** (or *Open Anyway* does not help), it is not damaged: macOS blocks unsigned apps downloaded from the internet. Remove the download mark in Terminal, with the app's real place and name, then open it again:
|
|
301
|
+
|
|
302
|
+
```sh
|
|
303
|
+
xattr -cr /Applications/PyFigures.app
|
|
304
|
+
xattr -cr "/Applications/PyFigures NoAI.app"
|
|
305
|
+
xattr -cr "/Applications/PyFigures Web Chat.app"
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
(Only the line for the app you installed is needed. If you put it in the *Applications* folder of your home folder, write `~/Applications/…` instead.)
|
|
297
309
|
|
|
298
310
|
# Third party libraries
|
|
299
311
|
|
|
@@ -202,7 +202,19 @@ Download them from the [latest release](https://github.com/baigouy/PyFigures/rel
|
|
|
202
202
|
|
|
203
203
|
**Supported Macs:** the macOS executables include video support, which needs **macOS 14 (Sonoma) or newer on Apple Silicon** Macs and macOS 11 or newer on Intel Macs. On older Apple Silicon systems the app still opens, but movies cannot be read or exported; older systems are not supported (install with Conda/pip instead, see above).
|
|
204
204
|
|
|
205
|
-
**
|
|
205
|
+
**Three kinds of app**, each for Windows and macOS (Linux: PyFigures and PyFigures NoAI): **PyFigures** (opens with the AI chat sidebar; untick *View → Open the chat at start-up* to stop that), **PyFigures NoAI** (`PyFigures-NoAI-*`: no AI at all; with the album and poster designers too) and **PyFigures Web Chat** (`PyFigures-WebChat-*`: opens with a chat web page docked; experimental, a last resort, see [the web chat tutorial](docs/WEB_CHAT_TUTORIAL.md)). From a pip install, `python -m pyfigures --chat` opens with the chat sidebar, `--share` shares the figure with the MCP server and `--web-chat` docks the chat web page.
|
|
206
|
+
|
|
207
|
+
**First launch on a Mac:** the apps are not signed by Apple, so macOS refuses to open them the first time. Go to *System Settings → Privacy & Security* and click **Open Anyway** (needed only once). On macOS 14 or older, right-click the app → **Open** → **Open** also works.
|
|
208
|
+
|
|
209
|
+
**If macOS says the app "is damaged and can't be opened"** (or *Open Anyway* does not help), it is not damaged: macOS blocks unsigned apps downloaded from the internet. Remove the download mark in Terminal, with the app's real place and name, then open it again:
|
|
210
|
+
|
|
211
|
+
```sh
|
|
212
|
+
xattr -cr /Applications/PyFigures.app
|
|
213
|
+
xattr -cr "/Applications/PyFigures NoAI.app"
|
|
214
|
+
xattr -cr "/Applications/PyFigures Web Chat.app"
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
(Only the line for the app you installed is needed. If you put it in the *Applications* folder of your home folder, write `~/Applications/…` instead.)
|
|
206
218
|
|
|
207
219
|
# Third party libraries
|
|
208
220
|
|
|
@@ -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
|
-
|
|
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
|
|
49
|
-
"""
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return
|
|
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
|