Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Support python virtual environment in Report

Open CasinoHe opened this issue 5 months ago • 1 comments

Expected Behavior

Read python venv from configuration file and support virtual environment in Report project

Actual Behavior

  1. Add "python-venv" in Report's configuration
  2. Activate python virtuan environment in Report generating.

Potential Solution

add Python.PythonInitializer.ActivatePythonVirtualEnvironment(Config.Get("python-venv")); in construct function of Report or the Main function of Report.

Checklist

  • [x] I have completely filled out this template
  • [x] I have confirmed that this issue exists on the current master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues

CasinoHe avatar Aug 04 '25 06:08 CasinoHe

Thanks for the report, we will look into it 👍. Python initialization is deep into the base ChartReportElement, I think as part of solving this issue it should be moved to a more central location, maybe in the Report constructor where all the rest is initialized

Martin-Molinero avatar Aug 04 '25 12:08 Martin-Molinero