<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to run python script. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3596843#M46294</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by browser i mean by using the link&amp;nbsp;&lt;A href="https://app.powerbi.com/" target="_blank"&gt;https://app.powerbi.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and I am not sure that you are also reffering to the same or not ?&lt;/P&gt;&lt;P&gt;if yes then where can I find the option that you mentioned.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 13:04:18 GMT</pubDate>
    <dc:creator>SourabhSharma</dc:creator>
    <dc:date>2023-12-21T13:04:18Z</dc:date>
    <item>
      <title>How to run python script.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3593681#M45954</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;I am new to power bi.&lt;/P&gt;&lt;P&gt;I want to run python scripts in power bi.&lt;/P&gt;&lt;P&gt;I can see online there are tutorials in which they shows how to link to python script and all.&lt;/P&gt;&lt;P&gt;May i know if there is a way to run python script in power bi browser mode ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;if yes can you please share any refference document that I can refer.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 11:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3593681#M45954</guid>
      <dc:creator>SourabhSharma</dc:creator>
      <dc:date>2023-12-20T11:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python script.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3593701#M45961</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/663535"&gt;@SourabhSharma&lt;/a&gt;&amp;nbsp;Not sure what you mean by "browser mode". If you are talking about running Python when in the Power BI Service then that should work. You can use Python in Power Query or use the Python visual to run Python. Both should work in the Service. Which one are you doing?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 11:31:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3593701#M45961</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-12-20T11:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python script.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3596843#M46294</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by browser i mean by using the link&amp;nbsp;&lt;A href="https://app.powerbi.com/" target="_blank"&gt;https://app.powerbi.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and I am not sure that you are also reffering to the same or not ?&lt;/P&gt;&lt;P&gt;if yes then where can I find the option that you mentioned.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 13:04:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3596843#M46294</guid>
      <dc:creator>SourabhSharma</dc:creator>
      <dc:date>2023-12-21T13:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python script.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3601501#M46443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/663535"&gt;@SourabhSharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Currently, Power BI service does not support running Python scripts directly in Power BI Service. You can create Python visuals in Power BI Desktop, and these visuals will be displayed in Power BI service when you publish your report. You can follow the steps below to get it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Install&amp;nbsp;Python on your local machine and make sure it is compatible with Power BI service. You can download Python from the&amp;nbsp;&lt;A href="https://www.python.org/" data-linktype="external" target="_blank"&gt;Python website&lt;/A&gt; You also need to install two Python packages: pandas and matplotlib, which are essential for working with data frames and plots in Power BI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pip install pandas
pip install matplotlib&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;2. Enable Python scripting in Power BI Desktop by selecting File &amp;gt; Options and settings &amp;gt; Options &amp;gt; Python scripting.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts" target="_blank"&gt;Run Python scripts in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1703558939613.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1015913i94DB6A9A6EFB7A70/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1703558939613.png" alt="vyiruanmsft_0-1703558939613.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. You can refer the following links to create Python visual or run Python script:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Use Python visualization:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/python-visualizations-in-power-bi-service/" target="_blank"&gt;Python visualizations in Power BI Service | Microsoft Power BI Blog | Microsoft Power BI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_2-1703559272092.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1015916iB78C1D6A61FA831C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyiruanmsft_2-1703559272092.png" alt="vyiruanmsft_2-1703559272092.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Run Python Script:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://zebrabi.com/guide/how-to-run-python-script-in-power-bi/" target="_blank"&gt;How to Run Python Script in Power BI - Zebra BI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.datacamp.com/tutorial/running-python-scripts-in-power-bi-tutorial" target="_blank"&gt;Running Python Scripts in Power BI Tutorial | DataCamp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_1-1703559251795.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1015915iA6BC57FAD4F544F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1703559251795.png" alt="vyiruanmsft_1-1703559251795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4. Pulish the repor to Service&lt;/P&gt;
&lt;P&gt;However, there are some limitations or considerations&amp;nbsp;&lt;SPAN&gt;in using Python with Power BI:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI aria-level="1"&gt;Data sources added with Python must be set to &lt;STRONG&gt;public&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI aria-level="1"&gt;&lt;STRONG&gt;Only Pandas DataFrames&lt;/STRONG&gt; can be imported into Power BI using Python.&lt;/LI&gt;
&lt;LI aria-level="1"&gt;Scripts that take longer than 30 minutes to run will time out, as will Python visuals that take more than 5 minutes to run.&lt;/LI&gt;
&lt;LI aria-level="1"&gt;There are a limited number of Python libraries supported by Power BI Service.&amp;nbsp;&lt;/LI&gt;
&lt;LI aria-level="1"&gt;Reports using Python can only be refreshed in Power BI Service through a &lt;STRONG&gt;personal gateway&lt;/STRONG&gt; (the enterprise or standard gateway is not supported).&lt;/LI&gt;
&lt;LI aria-level="1"&gt;Python visuals &lt;STRONG&gt;do not support cross-filtering&lt;/STRONG&gt;. This means that selecting an element in a Python visual will not cause other visuals to filter by that selection, thus removing some degree of interactivity in the Power BI report.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 03:14:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3601501#M46443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-26T03:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python script.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3601667#M46445</link>
      <description>&lt;P&gt;Thank you for sharing valuable insights.&lt;/P&gt;&lt;P&gt;These four points are help for me.&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 07:08:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3601667#M46445</guid>
      <dc:creator>marcoperson_250</dc:creator>
      <dc:date>2023-12-26T07:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python script.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3602166#M46458</link>
      <description>&lt;P&gt;Thankyou&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;definitely this is really helpful.&lt;/P&gt;&lt;P&gt;is there a way to automate this as well ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;like is it possible to publish the report automatically as well ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;just in case there exists any APIs to achieve the same ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also I could see there are some limitations of running python script directly to the power bi and then generate the report. may I know if there exist API that we can use to publish the report directly ? rather then creating it on powerBi ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 12:59:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3602166#M46458</guid>
      <dc:creator>SourabhSharma</dc:creator>
      <dc:date>2023-12-26T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to run python script.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3633468#M48706</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When you publish a report to Power BI Service (browser mode), the Python scripts are not executed there. However, you can still utilize the Power BI Service to refresh and update data in the report, which may involve running the queries and transformations defined in Power BI Desktop, including those involving Python scripts.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 13:38:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-run-python-script/m-p/3633468#M48706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-11T13:38:44Z</dc:date>
    </item>
  </channel>
</rss>

