Skip to content

Commit

Permalink
Fix doctest session.replicate_local_environment (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aalam authored Jan 4, 2024
1 parent 4b81f5d commit 4149ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ def replicate_local_environment(
>>> import pandas
>>> # test_requirements.txt contains "numpy" and "pandas"
>>> session.custom_package_usage_config = {"enabled": True, "force_push": True} # Recommended configuration
>>> session.replicate_local_environment(ignore_packages={"snowflake-snowpark-python", "snowflake-connector-python", "urllib3", "tzdata", "numpy"})
>>> session.replicate_local_environment(ignore_packages={"snowflake-snowpark-python", "snowflake-connector-python", "urllib3", "tzdata", "numpy"}, relax=True)
>>> @udf
... def get_package_name_udf() -> list:
... return [numpy.__name__, pandas.__name__]
Expand Down

0 comments on commit 4149ac7

Please sign in to comment.