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
"however, depending on your use case, this may or may not be the most convenient\n",
334
276
"way to access a arrayset.\n",
335
277
"\n",
336
-
"In general, we have implemented a full ``dict`` mapping interface on top of all\n",
337
-
"object. To access the ``'mnist_training_images'`` arrayset you can just use a\n",
338
-
"dict style access like the following (note: if operating in ipython/jupyter, the\n",
278
+
"In general, we have implemented a full `dict` mapping interface on top of all\n",
279
+
"objects. To access the `'mnist_training_images'` arrayset you can just use a\n",
280
+
"dict style access like the following (note: if operating in iPython/Jupyter, the\n",
339
281
"arrayset keys will autocomplete for you).\n",
340
282
"\n",
341
283
"The arrayset objects returned here contain many useful instrospecion methods which\n",
342
-
"we will review over the rest of the turtorial"
284
+
"we will review over the rest of the tutorial."
343
285
]
344
286
},
345
287
{
@@ -411,9 +353,9 @@
411
353
"source": [
412
354
"#### Through the checkout object (arrayset and sample access)\n",
413
355
"\n",
414
-
"In addition to the standard `co.arraysets` access methods, we have implemented a convenience mapping to `arraysets` and `samples` (ie. data) for both reading and writing from the `checkout` object itself. \n",
356
+
"In addition to the standard `co.arraysets` access methods, we have implemented a convenience mapping to [arraysets](api.rst#hangar.arrayset.Arraysets) and [samples](api.rst#hangar.arrayset.ArraysetDataWriter) (ie. data) for both reading and writing from the [checkout](api.rst#hangar.checkout.WriterCheckout) object itself. \n",
415
357
"\n",
416
-
"to get the same arrayset object from the checkout, simply use:"
358
+
"To get the same arrayset object from the checkout, simply use:"
417
359
]
418
360
},
419
361
{
@@ -450,7 +392,7 @@
450
392
"cell_type": "markdown",
451
393
"metadata": {},
452
394
"source": [
453
-
"Though that works as expected, most use cases will take advantage of adding and reading data from multiple arraysets / samples at a time. This is shown in the next section"
395
+
"Though that works as expected, most use cases will take advantage of adding and reading data from multiple arraysets / samples at a time. This is shown in the next section."
454
396
]
455
397
},
456
398
{
@@ -459,8 +401,10 @@
459
401
"source": [
460
402
"#### Adding Data\n",
461
403
"\n",
462
-
"To add data to a named arrayset, we can use dict-style setting, or the\n",
463
-
"``.add`` method. Sample keys can be either `str` or `int` type."
404
+
"To add data to a named arrayset, we can use [dict-style setting](api.rst#hangar.arrayset.ArraysetDataWriter) \n",
405
+
"(refer to the `__setitem__`, `__getitem__`, and `__delitem__` methods), \n",
406
+
"or the [add()](api.rst#hangar.arrayset.ArraysetDataWriter.add) method. \n",
407
+
"Sample keys can be either `str` or `int` type."
464
408
]
465
409
},
466
410
{
@@ -700,7 +644,8 @@
700
644
"### Performance\n",
701
645
"\n",
702
646
"Once you’ve completed an interactive exploration, be sure to use the context\n",
703
-
"manager form of the ``.add`` and ``.get`` methods!\n",
647
+
"manager form of the [add()](api.rst#hangar.arrayset.ArraysetDataWriter.add) and \n",
"In order to make sure that all your data is always safe in Hangar, the backend\n",
706
651
"diligently ensures that all contexts (operations which can somehow interact\n",
@@ -808,7 +753,7 @@
808
753
"source": [
809
754
"### Commiting Changes\n",
810
755
"\n",
811
-
"Once you have made a set of changes you wan't to commit, just simply call the `commit()` method (and pass in a message)!"
756
+
"Once you have made a set of changes you want to commit, just simply call the [commit()](api.rst#hangar.checkout.WriterCheckout.commit) method (and pass in a message)!"
812
757
]
813
758
},
814
759
{
@@ -837,8 +782,7 @@
837
782
"source": [
838
783
"The returned value (`'e11d061dc457b361842801e24cbd119a745089d6'`) is the commit hash of this commit. It\n",
839
784
"may be useful to assign this to a variable and follow this up by creating a\n",
840
-
"branch from this commit! (Branching to be covered in the next round of\n",
841
-
"tutorials)"
785
+
"branch from this commit!"
842
786
]
843
787
},
844
788
{
@@ -847,18 +791,19 @@
847
791
"source": [
848
792
"#### Don't Forget to Close the Write-Enabled Checkout to Release the Lock!\n",
849
793
"\n",
850
-
"We mentioned in `Checking out the repo for writing`_ that when a\n",
851
-
"``write-enabled`` checkout is created, it places a lock on writers until it is\n",
794
+
"We mentioned in `Checking out the repo for writing` that when a\n",
795
+
"`write-enabled` checkout is created, it places a lock on writers until it is\n",
852
796
"closed. If for whatever reason the program terminates via a non python `SIGKILL` or fatal\n",
853
797
"interpreter error without closing the\n",
854
798
"write-enabled checkout, this lock will persist (forever technically, but\n",
855
799
"realistically until it is manually freed).\n",
856
800
"\n",
857
801
"Luckily, preventing this issue from occurring is as simple as calling\n",
0 commit comments