<?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: Powerpoint file operations in Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24501#M17036</link>
    <description>&lt;P&gt;Ok I am checking. Quick check, what should be in place of str ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;connect_str = os.getenv('str')&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 12:53:22 GMT</pubDate>
    <dc:creator>AJ270990</dc:creator>
    <dc:date>2022-03-28T12:53:22Z</dc:date>
    <item>
      <title>Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24496#M17031</link>
      <description>&lt;P&gt;Hi Team, I am writing a python code in Azure Databricks where I have mounted a Azure storage and accessing the input dataset from Azure storage resource. I am accessing the input data from Azure storage and generating charts from that data in databricks workbook. All the input files are on AZ storage. I have placed the generated charts into powerpoint but unable to save that updated powerpoint file back to Azure storage.  I have tried using the object of Presentation() and tried saving the file using .sav(), but it saves in local workspace of databricks and not on mounted storage. Please help&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:12:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24496#M17031</guid>
      <dc:creator>AJ270990</dc:creator>
      <dc:date>2022-03-28T12:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24497#M17032</link>
      <description>&lt;P&gt;can you share the code where you do the actual write?&lt;/P&gt;&lt;P&gt;The fact that you save a powerpoint makes me think you do not use the Spark environment, but plain python.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:26:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24497#M17032</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-03-28T12:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24498#M17033</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;******************************************************
&amp;nbsp;
from pptx import Presentation
&amp;nbsp;
from pptx.util import Inches, Pt 
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
prs = Presentation('/dbfs/mnt/powerpoint-templates/MAPresentation.pptx')
&amp;nbsp;
#First slide - Index 0
&amp;nbsp;
slide = prs.slides.add_slide(prs.slide_layouts[0])
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
# Add a picture to the given dimensions
&amp;nbsp;
slide.placeholders[14].insert_picture('/dbfs/mnt/powerpoint-templates/page_type_transaction_barplot.png')
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
prs.save("/dbfs/mnt/powerpoint-templates/MA_presentation_New.pptx")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:31:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24498#M17033</guid>
      <dc:creator>AJ270990</dc:creator>
      <dc:date>2022-03-28T12:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24499#M17034</link>
      <description>&lt;P&gt;Yes I am using python environment and not spark.&lt;/P&gt;&lt;P&gt;These operations are of python.&lt;/P&gt;&lt;P&gt;The last line.. prs.save() is giving an error.&lt;/P&gt;&lt;P&gt;When I do normal prs.save(file name) without the path it works and save the file in current workspace. But that is of no use. I want the file to be saved on Blob storage&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:33:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24499#M17034</guid>
      <dc:creator>AJ270990</dc:creator>
      <dc:date>2022-03-28T12:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24500#M17035</link>
      <description>&lt;P&gt;can you check this?&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/62953148/saving-file-into-azure-blob" alt="https://stackoverflow.com/questions/62953148/saving-file-into-azure-blob" target="_blank"&gt;https://stackoverflow.com/questions/62953148/saving-file-into-azure-blob&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:42:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24500#M17035</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-03-28T12:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24501#M17036</link>
      <description>&lt;P&gt;Ok I am checking. Quick check, what should be in place of str ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;connect_str = os.getenv('str')&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:53:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24501#M17036</guid>
      <dc:creator>AJ270990</dc:creator>
      <dc:date>2022-03-28T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24502#M17037</link>
      <description>&lt;P&gt;&lt;B&gt;&lt;I&gt;os.getenv()&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;method in Python returns the value of the environment variable key if it exists otherwise returns the default value&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:56:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24502#M17037</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-03-28T12:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24503#M17038</link>
      <description>&lt;P&gt;Wow it works.. Thank you so so much!! Really appreciate your quick help!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 13:23:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24503#M17038</guid>
      <dc:creator>AJ270990</dc:creator>
      <dc:date>2022-03-28T13:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint file operations in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24504#M17039</link>
      <description>&lt;P&gt;Hi @Abhishek Jain​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sending in your query. We are glad that you found a solution. Would you like to mark the answer as best so the other members can benefit from it too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 13:26:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/powerpoint-file-operations-in-databricks/m-p/24504#M17039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-14T13:26:51Z</dc:date>
    </item>
  </channel>
</rss>

