[Python] Python snowpark print()/.show() is not working

Discussão em 'Python' iniciado por Stack, Agosto 26, 2025.

  1. Stack

    Stack Membro Participativo

    I tried to create snowpark program in snowsight. There's already some code example showing when I add a sheet as following:

    import snowflake.snowpark as snowpark
    from snowflake.snowpark.functions import col

    def main(session: snowpark.Session):
    # Your code goes here, inside the "main" handler.
    tableName = 'information_schema.packages'
    dataframe = session.table(tableName).filter(col("language") == 'python')

    # Print a sample of the dataframe to standard output.
    dataframe.show()

    # Return value will appear in the Results tab.
    return dataframe


    I set correct database and schema, role and WH as well, but the error occurs no matter what I tried to .show()/print().


    No log output to display. Use commands like .show() or print() to write log output.
    ​

    I don't know what's happening and I confirmed that my environment already meets the requirements the official document provide. Appreciate any advice which will help me. Thanks.

    Continue reading...

Compartilhe esta Página