Forum Discussion
juan_pablo
Helper V
6 years agoPython visual requieres to open a file in the service
Hi everyone! I have a python visual in my Power BI Desktop report, the script for this visual opens a python .pkl file to run a small model and with the results it generate the final plot (a simple ...
juan_pablo
Helper V
6 years agolbendlin like which one?
I tried to place the whole code in the visual but that causes that the model gets trained every time a slicer or filter is selected (a query is made), and I already have the model pre trained.
Do you have another way to do it without the pickle file? or any place I can read about similar solutions?
lbendlin
Super User
6 years agoTry masquerading the .pkl as a binary resource, or place it on a web server that is accessible from Power BI Service.