|
14 | 14 | .. role:: small
|
15 | 15 | ```
|
16 | 16 |
|
| 17 | +## 2025-03-10 {small}`R 1.0.0` |
| 18 | + |
| 19 | +β¨ `laminr` now has feature parity with `lamindb`. [PR](https://github.com/laminlabs/laminr/pull/146) [@lazappi](https://github.com/lazappi) |
| 20 | + |
| 21 | +- Run `install_lamindb()`, which will ensure `lamindb >= 1.2` in the Python environment used by `reticulate`. |
| 22 | +- Replace `db <- connect()` with `ln <- import_module("lamindb")` and see the "Detailed changes" dropdown. |
| 23 | + |
| 24 | +The `ln` object is largely similar to the `db` object in `laminr` < v1 and matches `lamindb`'s Python API (`.` β `$`). |
| 25 | + |
| 26 | +:::{dropdown} Detailed changes |
| 27 | + |
| 28 | +| What | Before | After | |
| 29 | +| --------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------ | |
| 30 | +| Connect to the default LaminDB instance | `db <- connect()` | `ln <- import_module("lamindb")` | |
| 31 | +| Start tracking | `db$track()` | `ln$track()` | |
| 32 | +| Get an artifact from another instance | `new_instance <- connect("another/instance"); new_instance$Artifact$get(...)` | `ln$Artifact$using("another/instance")$get(...)` | |
| 33 | +| Create an artifact from a path | `db$Artifact$from_path(path)` | `ln$Artifact(path)` | |
| 34 | +| Finish tracking | `db$finish()` | `ln$finish()` | |
| 35 | + |
| 36 | +See the updated ["Get started"](https://laminr.lamin.ai/articles/laminr.html) vignette for more information. |
| 37 | + |
| 38 | +User-facing changes: |
| 39 | + |
| 40 | +- Add an `import_module()` function to import Python modules with additional functionality, e.g., `import_module("lamindb")` for **lamindb** |
| 41 | +- Add functions for accessing more `lamin` CLI commands |
| 42 | +- Add a new "Introduction" vignette that replicates the code from the Python **lamindb** introduction guide |
| 43 | + |
| 44 | +Internal changes: |
| 45 | + |
| 46 | +- Add an internal `wrap_python()` function to wrap Python objects while replacing Python methods with R methods as needed, leaving most work to **{reticulate}** |
| 47 | +- Update the internal `check_requires()` function to handle Python packages |
| 48 | +- Add custom `cache()`/`load()` methods to the `Artifact` class |
| 49 | +- Add custom `track()`/`finish()` methods to the **lamindb** module |
| 50 | + |
| 51 | +::: |
| 52 | + |
17 | 53 | ## 2025-03-09 {small}`db 1.2.0`
|
18 | 54 |
|
19 | 55 | β¨ Enable to auto-link entities to projects. [Guide](/track.ipynb#track-projects) [PR](https://github.com/laminlabs/lamindb/pull/2529) [@falexwolf](https://github.com/falexwolf)
|
|
0 commit comments