The startup_code.py module#
Summary#
Save a Matplotlib plot to a file and optionally return as base64. |
|
Save a PyVista plot to a file and optionally return as base64. |
|
Get the PyAEDT version. |
|
List available AEDT applications. |
Description#
Startup code for a persistent Python session in PyAEDT-MCP.
This module is executed when a persistent Python session is started for running user code in the MCP server context.
Module detail#
- startup_code.save_matplotlib_plot(filename='plot.png', return_base64=False, dpi=150)#
Save a Matplotlib plot to a file and optionally return as base64.
Uses the current Matplotlib figure.
- startup_code.save_pyvista_plot(plotter, filename='plot.png', return_base64=False)#
Save a PyVista plot to a file and optionally return as base64.
- startup_code.get_aedt_version()#
Get the PyAEDT version.
- startup_code.list_aedt_applications()#
List available AEDT applications.
- startup_code.MATPLOTLIB_AVAILABLE = True#
- startup_code.PYVISTA_AVAILABLE = True#
- startup_code.PIL_AVAILABLE = True#