Skip to content

Commit 7a5c611

Browse files
Opt-in to uploading profiles from why.log() (#1571)
## Description Separates the notion of authentication mode (authenticated, anonymous, local) from whether or not `why.log()` should automatically upload profiles. ## Changes - Makes `allow_local` default to `True` - Adds `upload_on_log` configuration parameter orthogonal to session type (aka authentication mode) - Prompts for `upload_on_log` in interactive sessions - `WhyLabsWriter::write()` will warn about possible redundant uploads if called in a session with `update_on_log` enabled <!-- Reference related commits, issues and pull requests. Type `#` and select from the list. --> Closes whlabs/whylogs#1570 - [ ] I have reviewed the [Guidelines for Contributing](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md).
1 parent 89fec66 commit 7a5c611

17 files changed

+1454
-1273
lines changed

python/examples/basic/Getting_Started_with_UDFs.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"metadata": {},
5050
"outputs": [],
5151
"source": [
52-
"%pip install whylogs"
52+
"%pip install 'whylogs>=1.5.0'"
5353
]
5454
},
5555
{
@@ -133,7 +133,7 @@
133133
"source": [
134134
"import whylogs as why\n",
135135
"\n",
136-
"why.init()\n",
136+
"why.init(force_local=True)\n",
137137
"\n",
138138
"results = why.log(df, name=\"udf_demo\", schema=custom_schema)\n",
139139
"results.view().to_pandas()"

0 commit comments

Comments
 (0)