You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc_source/user_guide.ipynb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@
41
41
"cell_type": "markdown",
42
42
"metadata": {},
43
43
"source": [
44
-
"## User guide\n",
44
+
"# User guide\n",
45
45
"\n",
46
46
"The `dds` package solves the data integration problem in data science codebases. By using the `dds` package, you can safely assume that:\n",
47
47
"\n",
@@ -286,7 +286,7 @@
286
286
"As we said, the `data_function` annotation requires little code change but only works for functions that do not have arguments. How to deal with more complicated functions?\n",
287
287
"This is the object of the next section.\n",
288
288
"\n",
289
-
"## Functions with arguments: keep() and eval()\n",
289
+
"# Functions with arguments: keep() and eval()\n",
290
290
"\n",
291
291
"`dds` can also wrap functions that have arguments using the `dds.keep()` function. Here is a simple example, in which the `hello` function expects an extra word to be provided:"
292
292
]
@@ -405,7 +405,7 @@
405
405
"cell_type": "markdown",
406
406
"metadata": {},
407
407
"source": [
408
-
"## Indirect references: load()\n",
408
+
"# Indirect references: load()\n",
409
409
"\n",
410
410
"So far, we have seen only one way to access data: using `dds.keep` (or its shortcut `@data_function`). \n",
411
411
"It is not always convenient to refer to the data function that created the piece of data in the first place.\n",
<spanclass="sa">f</span><spanclass="s2">"@data_function cannot be used with arguments. "</span>
204
+
<spanclass="sa">f</span><spanclass="s2">"Arguments were passed to the function </span><spanclass="si">{</span><spanclass="n">func</span><spanclass="si">}</span><spanclass="s2">, but this function "</span>
205
+
<spanclass="sa">f</span><spanclass="s2">"also has a dds.data_function annotation, which is not allowed (see "</span>
206
+
<spanclass="sa">f</span><spanclass="s2">"user guide of DDS). "</span>
207
+
<spanclass="sa">f</span><spanclass="s2">"Suggestion: write a wrapper function that does not take arguments itself, "</span>
208
+
<spanclass="sa">f</span><spanclass="s2">"or use dds.keep to pass arguments"</span><spanclass="p">,</span>
0 commit comments