jupyterlab / jupyterlab-hdf5

Open and explore HDF5 files in JupyterLab. Can handle very large (TB) sized files, and datasets of any dimensionality
BSD 3-Clause "New" or "Revised" License
114 stars 27 forks source link

File Load Error for etf.hdf5 , etf.hdf5 is not UTF-8 encoded #127

Open cbingos opened 2 years ago

cbingos commented 2 years ago

jupyterlab 3.4.3 jupyterlab-hdf==1.2.0

welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

loichuder commented 2 years ago

Hello,

Could you provide a file showing the problem so that I can try to find the issue ?

cbingos commented 2 years ago

Thank you for your reply: When I right click menu :select ——» Open / Open with ——» Editor:

File Load Error for etf.hdf5 etf.hdf5 is not UTF-8 encoded

file: "etf.hdf5" import pandas as pd d = {'col1': [1, 2], 'col2': [3, 4]} df = pd.DataFrame(data=d) df.to_hdf('etf.hdf5', key="etf", mode='a', complevel=9, complib="blosc") pd.read_hdf('etf.hdf5','etf')

loichuder commented 2 years ago

When I right click menu :select ——» Open / Open with ——» Editor:

Yes, it doesn't work when opening the file this way. Try to double click on it in the file browser.

loichuder commented 2 years ago

Note also that you need to install hdf5plugin if you use blosc to compress your datasets.