Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
is there a way to automatically scale python plots based on the dimensions of the visual in a repart? I know, I can scale python plots inside the visual manually...
Solved! Go to Solution.
Hi @Anonymous ,
Based on your description, this does not seem to be possible in powerbi. Or you can provide a relevant screenshot and describe it, and I will try to give you as much helpful information as possible.
Looking forward to your reply.
Best Regards,
Henry
Hi @Anonymous ,
Based on your description, this does not seem to be possible in powerbi. Or you can provide a relevant screenshot and describe it, and I will try to give you as much helpful information as possible.
Looking forward to your reply.
Best Regards,
Henry
Well, noone else has an idea how to pull this off, so I accept that solution 🙂
It would have been great if PowerBI provided some "hidden arguments" to the wrapping python function that executes the user code with basic information such as the above.
Also, I just ran the following code...
# The following code to create a dataframe and remove duplicated rows is always executed and acts as a preamble for your script:
# dataset = pandas.DataFrame(DataInfo)
# dataset = dataset.drop_duplicates()
# Paste or type your script code here:
import os
f = open('foo.txt','w')
sys.stdout = f
f.write('dir: ------------\n')
print(dir())
f.write('globals:---------\n')
print(globals())
f.write('locals: ---------\n')
print(locals())
f.write('-----------------')
f.close()
os.system("notepad.exe foo.txt")
... and I cannot see anything in the scope of the wrapper function that hints upon this functionality.
I did not really expect it to do this but I am gald I asked; it is an MS product after all 😉
Cheers, Andy
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |