Skip to content

Commit 09aa3da

Browse files
update docs wip
1 parent e947b21 commit 09aa3da

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

diffly/summary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def format(self, pretty: bool | None = None) -> str:
106106
pretty: Whether to color the summary for the currently terminal window.
107107
If set to `None`, will infer from the context.
108108
"""
109+
# REVIEW: I had to set force_jupyter=False here to avoid multiple output cells
109110
if pretty or pretty is None:
110111
console = Console(force_terminal=pretty, force_jupyter=False, width=WIDTH)
111112
with console.capture() as capture:

docs/guides/quickstart.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"source": [
3030
"## Basic Comparison\n",
3131
"\n",
32-
"To get started with diffly, you'll use the {func}`~diffly.compare_frames` function to compare two Polars DataFrames:"
32+
"To get started with `diffly`, you'll use the {func}`~diffly.compare_frames` function to compare two Polars DataFrames:"
3333
]
3434
},
3535
{
@@ -289,12 +289,12 @@
289289
"source": [
290290
"## Configuring Tolerances\n",
291291
"\n",
292-
"When comparing floating point numbers or temporal data, exact equality may not be appropriate. diffly supports tolerance-based comparisons:"
292+
"When comparing floating point numbers or temporal data, exact equality may not be appropriate. `diffly` supports tolerance-based comparisons:"
293293
]
294294
},
295295
{
296296
"cell_type": "code",
297-
"execution_count": 5,
297+
"execution_count": null,
298298
"metadata": {},
299299
"outputs": [
300300
{
@@ -390,6 +390,8 @@
390390
}
391391
],
392392
"source": [
393+
"# REVIEW: In this example, do we have to supply the default value as 1e-08/1e-05? I thought there was a way to only pass a Mapping without needing to specify a default value.\n",
394+
"\n",
393395
"from collections import defaultdict\n",
394396
"\n",
395397
"comparison_per_column = compare_frames(\n",
@@ -460,7 +462,7 @@
460462
"source": [
461463
"## Comparing LazyFrames\n",
462464
"\n",
463-
"diffly works seamlessly with both {class}`polars.DataFrame` and {class}`polars.LazyFrame`:"
465+
"`diffly` works seamlessly with both {class}`polars.DataFrame` and {class}`polars.LazyFrame`:"
464466
]
465467
},
466468
{
@@ -574,7 +576,7 @@
574576
"source": [
575577
"## Using diffly in Tests\n",
576578
"\n",
577-
"diffly provides assertion functions for use in test suites:"
579+
"`diffly` provides assertion functions for use in test suites:"
578580
]
579581
},
580582
{

0 commit comments

Comments
 (0)