lux-org / lux

Automatically visualize your pandas dataframe via a single print! 📊 💡
Apache License 2.0
5.17k stars 366 forks source link

[SETUP] Support for Google Colab #169

Open rizwannitk opened 3 years ago

rizwannitk commented 3 years ago

How to use this libary in colab

dorisjlee commented 3 years ago

Hi @rizwannitk, Thank you for your interest in Lux. We have not yet tested Lux on Google Colab. Lux currently only works on the classic Jupyter notebook and we plan to support Jupyter Lab soon. If this is something that is really essential for you, please try it out on Colab and report any issues on Github.

taimur1871 commented 3 years ago

Hi Doris, I tried it on Colab and it installs and loads fine but the toggle button fails to render any charting options. I am going through the fork to see if I can identify the issue.

dorisjlee commented 3 years ago

Thanks @taimur1871, let us know how it goes!

cjachekang commented 3 years ago

Seems like Google Colab doesn't support custom widgets yet https://github.com/googlecolab/colabtools/issues/498. Will probably have to wait until it does.

Sateesh110 commented 3 years ago

Noticed the below error while installing LUX in Google Collab. Lux_Google_Colab_Issue

Will appreciate your help !

dorisjlee commented 3 years ago

Hi @Sateesh110, Thanks for your question! Lux is not currently supported for Google Colab (since custom widgets are not yet supported in Colab). For now, you can use Lux alongside Jupyter notebook and Jupyter Lab (see setup instructions here). If you would like to just try out Lux without installing locally, here is a Binder link to a live notebook. Let us know if this works for you!

Sateesh110 commented 3 years ago

Hi @Sateesh110, Thanks for your question! Lux is not currently supported for Google Colab (since custom widgets are not yet supported in Colab). For now, you can use Lux alongside Jupyter notebook and Jupyter Lab (see setup instructions here). If you would like to just try out Lux without installing locally, here is a Binder link to a live notebook. Let us know if this works for you!

@dorisjlee Thank you for letting me know! and also thanks for binder link.

timkpaine commented 3 years ago

A helpful related discussion about not trying to build support for proprietary colab APIs one by one into jupyter extensions https://github.com/QuantStack/ipycytoscape/issues/148

hugocool commented 3 years ago

Pandas profiling does have support for colab, maybe their implementation could be of help?

charlie17 commented 3 years ago

This looks like a significant update?

dwootton commented 2 years ago

Lux is working in colab!

image

As @charlie17 linked to, you need to enable custom widgets like: from google.colab import output output.enable_custom_widget_manager()

Sample Demo Colab Notebook