Skip to content

Commit

Permalink
Merge pull request #64 from lincc-frameworks/html_struct_rename
Browse files Browse the repository at this point in the history
Update label for NestedFrame in html repr
  • Loading branch information
dougbrn authored Oct 17, 2024
2 parents c8a18dd + 457d9d0 commit d47d3a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/work_with_lsdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"# %pip install nested-dask\n",
"\n",
"# Comment the following line to skip dependencies installation\n",
"%pip install --quiet lsdb aiohttp light-curve matplotlib"
"%pip install --quiet lsdb==0.3.0 aiohttp light-curve matplotlib"
]
},
{
Expand Down Expand Up @@ -439,7 +439,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "3.10.11"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down
5 changes: 5 additions & 0 deletions src/nested_dask/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def __setitem__(self, key, value):

return super().__setitem__(key, value)

def _repr_html_(self):
# following dask-geopandas lead
output = super()._repr_html_()
return output.replace("Dask DataFrame Structure", "Nested-Dask NestedFrame Structure")

@classmethod
def from_pandas(
cls,
Expand Down

0 comments on commit d47d3a5

Please sign in to comment.