[Python] How to embed and display Google Sheets on Dash app excluding the menu and toolbar?

Discussão em 'Python' iniciado por Stack, Dezembro 1, 2024.

  1. Stack

    Stack Membro Participativo

    My goal is to show only the first tab of the sheet and hide the editing toolbar.

    I found a few sources that were achieving this goal by adding &rm=minimal&single=true& to the end of the URL, but this has no effect.

    Is this possible?

    from dash import Dash, html

    app = Dash(__name__)

    app.layout = html.Div(
    html.Iframe(
    src='https://docs.google.com/spreadsheets/d/1d6BI55rBT83TX12GXFc8uRYt1ztsBeKqS-X5h1bI_BI/edit?usp=sharing?&rm=minimal&single=true&',
    width='1000px',
    height='500px'
    ),
    )

    if __name__ == "__main__":
    app.run_server(debug=True)


    Link to the Google Sheet

    Continue reading...

Compartilhe esta Página