snowflake.snowpark.Session.remove_package

Session.remove_package(package: str) None[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/session.py#L1413-L1440)

Removes a third-party package from the dependency list of a user-defined function (UDF).

Parameters:

package – The package name.

Examples:

>>> session.clear_packages()
>>> len(session.get_packages())
0
>>> session.add_packages("numpy", "pandas==1.3.5")
>>> len(session.get_packages())
2
>>> session.remove_package("numpy")
>>> len(session.get_packages())
1
>>> session.remove_package("pandas")
>>> len(session.get_packages())
0
Copy
Language: English