Giter Club home page Giter Club logo

Comments (12)

ArunNairID avatar ArunNairID commented on August 22, 2024 3

Yes downgrade your ipywidgets to 4.

from azure-tdsp-utilities.

wguo123 avatar wguo123 commented on August 22, 2024 2

Hi @ArunNairID , did you use the latest version of IDEAR-Python-AzureNotebooks? I cloned the latest version from GitHub and tested in my machine, it works well. The script should be "i = interactive(TargetAnalytics.custom_barplot, df=fixed(df), col1=w1)" which looks different from your error code. For ipywidgets, try 6.0 or later, see if it works.

from azure-tdsp-utilities.

AlphaGit avatar AlphaGit commented on August 22, 2024 1

@wguo123 I'd like to mention that your different script indeed fixes the issue. However, the latest notebook still has the code mentioned by @ArunNairID.

You can see it here: https://github.com/Azure/Azure-TDSP-Utilities/blob/master/DataScienceUtilities/DataReport-Utils/Python/IDEAR.ipynb, in the cell right under "Explore the Target Variable".

I might be sending a PR with a few small modifications I needed to make to get the notebook running, including this little change. If I don't get to it, I wanted to mention that the old script seems to still be there.

Thanks!

from azure-tdsp-utilities.

BrendaXimena avatar BrendaXimena commented on August 22, 2024

The same error here. Did you solve it? :(

from azure-tdsp-utilities.

mathewnik90 avatar mathewnik90 commented on August 22, 2024

The error is in the the IDEAR notebook when run using Anaconda
https://github.com/Azure/Azure-TDSP-Utilities/blob/master/DataScienceUtilities/DataReport-Utils/Python/IDEAR.ipynb

from azure-tdsp-utilities.

hangyao avatar hangyao commented on August 22, 2024

I encountered the same issue when running with Anaconda Python3.6

And downgrading ipywidgets from 6.0 or 7.0 to 5.2.2 solved the issue.

However ipywidgets 5.2.2 or earlier has an issue that it can't detect Widget Javascript and therefore can't show widgets in noteebook. Running jupyter nbextension enable --py --sys-prefix widgetsnbextension doesn't solve the issue.

from azure-tdsp-utilities.

mathewnik90 avatar mathewnik90 commented on August 22, 2024

Hi @hangyao, The other notebook seems to be providing all the functionalities. I eventually resorted to using it. It works perfectly fine in Anaconda with latest version of packages.
https://github.com/Azure/Azure-TDSP-Utilities/blob/master/DataScienceUtilities/DataReport-Utils/Python/IDEAR-Python-AzureNotebooks.ipynb

Regarding,

Running jupyter nbextension enable --py --sys-prefix widgetsnbextension doesn't solve the issue.

You need to restart the Jupyter Console once you run the above code in Anaconda prompt. I haven't tried it with version 5.2.2 though. Hope this helps :)

from azure-tdsp-utilities.

hangyao avatar hangyao commented on August 22, 2024

Hi @mathewnik90 , yes, you are absolutely right! Thank you! As long as I don't need to generate and combine reports, IDEAR-Python-AzureNotebooks.ipynb should be good to use. Have you tried if it can handle report generation and combination yet?

Thank you very much! It helps a lot!

from azure-tdsp-utilities.

mathewnik90 avatar mathewnik90 commented on August 22, 2024

@hangyao: No, IDEAR-Python-AzureNotebooks.ipynb doesn't support report generation and combination. I was able to get IDEAR.ipynb working with the export button. However, the report generated was buggy. In few cases 80% code was generated, however in few others less than that. I have not got a chance to get back to it.
You might want to look at the toggle code button at the bottom of the report. I am using that button along with adding inference below the charts, seems to be doing the trick for me :)

from azure-tdsp-utilities.

woodmicha avatar woodmicha commented on August 22, 2024

@mathewnik90 sorry for the newbie question but I'm trying to get this suite of utilities running on a docker image w/o Azure. I was able to get further by downgrading the images version of ipywidgets to 5.2.2 but I continue to get the following warning:

Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run "jupyter nbextension enable --py --sys-prefix widgetsnbextension"

I've executed the following command:

jupyter nbextension enable --py --sys-prefix widgetsnbextension

which reports the following:

Enabling notebook extension jupyter-js-widgets/extension... - Validating: OK

I've committed that change to my docker image and restarted jupyter notebook but continue to get the javascript (JS) warnings. It does produce the outputs but not 100% certain since the JS warnings persist.

Is there a different way to persist the enabling of the extension?

from azure-tdsp-utilities.

mathewnik90 avatar mathewnik90 commented on August 22, 2024

@woodmicha : I haven't tried iPyWidgets in docker. This thread throws some light on the issue. Hope this helps.

from azure-tdsp-utilities.

ngminhtrung avatar ngminhtrung commented on August 22, 2024

I have encountered the same issue as ArunNairID.

My environment: Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]

Confirm that downgrading ipywidgets from version 7 to version 5.2.2 solved the issue.

from azure-tdsp-utilities.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.