Embed Google Slides (PowerPoint) into Databricks Interactive Notebooks Use the following code to embed your slides:slide_id = '1CYEVsDqsdfg343fwg4...

Artem_Y
Databricks Employee
Databricks Employee

Embed Google Slides (PowerPoint) into Databricks Interactive Notebooks

Use the following code to embed your slides:

slide_id = '1CYEVsDqsdfg343fwg42MtXqGd68gffP-Y16CR59c'
slide_number = 'id.p9'
 
displayHTML(f'''
<iframe
  src="https://docs.google.com/presentation/d/{slide_id}/embed?slide={slide_number}&rm=minimal"
  frameborder="0"
  width="75%"
  height="600"
></iframe>
''')

Steps to implement

  1. Modify width and height iframe parameters to suit your notebook's dimensions.
  2. Modify the Slide ID to the ID of your presentation. It is in the highlighted part of the URL below.
  3. Optionally, modify the slide_number to either the slide id you want to start on or the number (order) of the slide you would like to start on.

8F9761FE-B986-48EB-8461-0AAEA891DEDB_4_5005_c⚠️ ‎‎‎‎‎‎‏‏‎ ‎‏‏‎ ‎Make sure to share the slide first! You will see the URL slightly change with a dash extension. Otherwise, the embedding will throw an error.

Anonymous
Not applicable

@Artem Yevtushenko​ - Thank you for sharing this solution.