Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cbingos opened this issue Jun 9, 2022 · 5 comments
Open

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

cbingos opened this issue Jun 9, 2022 · 5 comments

Comments

@cbingos
Copy link

cbingos commented Jun 9, 2022

jupyterlab 3.4.3
jupyterlab-hdf==1.2.0

@welcome
Copy link

welcome bot commented Jun 9, 2022

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

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! 👋

Welcome to the Jupyter community! 🎉

@loichuder
Copy link
Collaborator

Hello,

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

@cbingos
Copy link
Author

cbingos commented Jun 11, 2022

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
Copy link
Collaborator

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants