mwouts / itables

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

itable doesn't work on Colab #26

Closed ofir-reich closed 2 years ago

ofir-reich commented 3 years ago

Just prints out an empty table. Is this a known issue? I'm using Google Colaboratory with a local runtime, i.e. running my own Jupyter backend, not hosted by Google.

mwouts commented 3 years ago

Hello @ofir-reich , well sorry indeed itables imports a javascript library (datatables.net) and this is known to work only in Jupyter notebook.

Still, there might be a chance that the workaround for JupyterLab also works for Colab. Would you like to give a try to this code snippet and report whether it works or not? Thanks

ofir-reich commented 3 years ago

Thanks for the quick response! I tried and unfortunately that code snippet doesn't work. I'm still getting an empty table printed out - with only the column names (as before).

gwallison commented 2 years ago

Thanks for the code snippet @mwouts. This fixes a problem Ive had upgrading to the new nbconvert templating system. itables is incredibly useful for my notebooks - I was worried I'd have to limp along without their functionality. Thankfully, not the case!

mwouts commented 2 years ago

The current development version of itables==0.4.0-dev does work now on Colab, following #43: image