jupyterlab-hdf5 icon indicating copy to clipboard operation
jupyterlab-hdf5 copied to clipboard

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

Open cbingos opened this issue 3 years ago • 5 comments

jupyterlab 3.4.3 jupyterlab-hdf==1.2.0

cbingos avatar Jun 09 '22 02:06 cbingos

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:

welcome[bot] avatar Jun 09 '22 02:06 welcome[bot]

Hello,

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

loichuder avatar Jun 09 '22 06:06 loichuder

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')

cbingos avatar Jun 11 '22 10:06 cbingos

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 avatar Jun 14 '22 14:06 loichuder

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

loichuder avatar Jun 14 '22 14:06 loichuder