mwouts / itables

Pandas DataFrames as Interactive DataTables
https://mwouts.github.io/itables/
MIT License
710 stars 53 forks source link

UnicodeDecodeError in JupyterLab Desktop #252

Closed apogorzelska closed 3 weeks ago

apogorzelska commented 3 months ago

I'm getting following error in JupyterLab Desktop. I'm using a conda environment with Python 3.11.8 on Windows 11, itables version 2.0.0 installed from conda-forge.

image

mwouts commented 3 months ago

Thank you @apogorzelska for reporting this! Oh sorry I had not tested itables on Windows yet, I should have thought of this. I plan to look into this in the coming days.

Meanwhile, may I ask you if init_notebook_mode(all_interactive=True, connected=True) works any better?

mwouts commented 3 months ago

Just gived it a try, and it worked in an environment created with

conda create -n test_itables 'itables==2.0' jupyterlab -c conda-forge

image

For some reason utf-8 does not seem to be the default on your installation, I will prepare a PR for using an explicit encoding argument.

mwouts commented 3 months ago

The PR and the instructions to test it are available here. Can you let me know if that fixes this issue? You might have to install nodejs in your conda environment. Thanks!