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
- Modify width and height iframe parameters to suit your notebook's dimensions.
- Modify the Slide ID to the ID of your presentation. It is in the highlighted part of the URL below.
- 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.
⚠️ 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.