by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 23 19:35
    OrFixelAlgorithms opened #130
  • May 17 19:49
    JengkolRebus opened #129
  • May 08 23:22
    tnavarrofebre edited #128
  • May 08 23:18
    tnavarrofebre commented #128
  • May 08 13:09
    JuanJimenezGarcia commented #128
  • May 07 13:43
    tnavarrofebre opened #128
  • May 05 16:54
    ocefpaf closed #106
  • Apr 30 15:21
    dependabot[bot] labeled #127
  • Apr 30 15:21
    dependabot[bot] labeled #127
  • Apr 30 15:21
    dependabot[bot] opened #127
  • Apr 30 14:46
    dependabot[bot] labeled #126
  • Apr 30 14:46
    dependabot[bot] labeled #126
  • Apr 30 14:46
    dependabot[bot] opened #126
  • Apr 16 10:20
    dependabot[bot] labeled #125
  • Apr 16 10:20
    dependabot[bot] labeled #125
  • Apr 16 10:20
    dependabot[bot] opened #125
  • Apr 15 00:47
    tonyphoang edited #124
  • Apr 15 00:44
    tonyphoang edited #124
  • Apr 15 00:43
    tonyphoang opened #124
  • Mar 22 08:48
    ketch closed #123
Michael Patterson
@iampatterson
Brain is on fire. I need to walk away. Has anybody had luck with dropdown boxes in nbinteract?
skDooley
@skDooley
@iampatterson I have dropdowns working just fine locally, I just can't get anything to work on github.io because I can't get the data they are associated with to run. I would be happy to take a look at it once you send me your link. I don't know that I will be able to help, but you might be missing something that I might see.
Are other widgets showing up, you are just having a problem with dropdowns?
Michael Patterson
@iampatterson
Screen Shot 2020-04-23 at 4.07.08 PM.png
Yes just problem with dropdowns using the .display() function. No joy
Michael Patterson
@iampatterson
looks like this
image.png
skDooley
@skDooley
Is the top one expected behavior and the bottom is just giving you the print statement? If not, I don't understand the context of the problem
Michael Patterson
@iampatterson
The top one generates the dropdown boxes that I need to select features in my dataframe, then pass it to kmeans for analysis. I am looking to put that online using nbinteract, but when I pop on the website, it doesn't generate the dropdown boxes. It just shows the next cell below. I need to see the boxes.
@iampatterson. Here is the git. https://github.com/iampatterson/skDooley
@skDooley here is the git https://github.com/iampatterson/skDooley
Michael Patterson
@iampatterson
@skDooley I can clean it up, just working on a deadline
skDooley
@skDooley
Just a bit of trouble shooting, do other widgets work or is it just the dropdown?
Michael Patterson
@iampatterson
They seem to. But I am finding it is kinda flaky
I can use a test notebook and they show up fine.
skDooley
@skDooley
do the observers work locally?
by observers I mean event handlers
skDooley
@skDooley
I think your problem is you are expecting the options to know about each other and they aren't connected
Try something like this:
from ipywidgets import interactive
interactive(common_filtering,dropa=unique_sorted_values_plus_ALL(arrayForA),dropb=unique_sorted_values_plus_ALL(arrayForB)dropc=unique_sorted_values_plus_ALL(arrayForC))
Michael Patterson
@iampatterson
I will try that. I am also going to be explicit, and not use the display functionality. Just rebooting and going local, I was trying to compile the HTML through a terminal using the binder terminal.
Michael Patterson
@iampatterson
I am failing a lot today. Now I can't get nbinteact to install locally.
I want to give up.
Michael Patterson
@iampatterson
image.png
I am not going to. Going back online I am getting this , just sits there.
skDooley
@skDooley
where is your display/interact ?
Michael Patterson
@iampatterson
I commented them out just to see what would happen.
Now after they run. I just get this
image.png
code works fine on my desktop
skDooley
@skDooley
Let's take this conversation private so we don't clog up the main form
Michael Patterson
@iampatterson
Great thanks
EmmaPoliakova
@EmmaPoliakova
Hi, I was wondering if it's necessary to use 'interact' from ipywidgets to get a working widget. I followed the tutorial and that worked fine but when I try to use my own code (a mixture of ipycanvas and widget buttons without interact) it never loads.
Michael Patterson
@iampatterson
Good morning Emma. Thanks for reaching out. I am super into these widgets, but still learning. Can you post a couple of pics of the error. I may be able to help.
I will post what code I do have working on my git under skDooley, as I am sharing some code with him.
sprabhakar2006
@sprabhakar2006

Thanks Mr.Lau for the great functionality of nbintract and your efforts

I want to upload files through a web app and do some operations like making graphs f.

Is this possible to do this, In case yes can you please suggest how?

EmmaPoliakova
@EmmaPoliakova
@iampatterson I don't get errors as such, the html file I get after converting the notebook only shows a couple of buttons saying initializing the widgets but it never goes past that. I made a few buttons using the 'interact' and that worked. Here's the repo if you want to have a look https://github.com/EmmaPoliakova/nbinteract-tutorial I suspect that maybe the ipycanvas I wanted to use is not supported or something like that. Thanks for your time
Michael Patterson
@iampatterson
image.png
I was thinking about this. I see that you are using a requiements.txt file. I found that not to load all the packages I needed. I used the YML file instead, it seemed to work better.
Michael Patterson
@iampatterson
Open the developer tools and see what errors you are getting. You can find it under View-->developer-->developer tools. It should look something like this.
image.png
Let me know what you find. But I found that I could see where the code broke. It sounds like you have a problem with your packages.
This thing is super picky, and even more so when it comes to widgets.
EmmaPoliakova
@EmmaPoliakova
2020-05-13_1433.png
So I used the yml file instead of the requiements.txt file and this is the error I'm getting.
skDooley
@skDooley
@EmmaPoliakova, what version of nbinteract are you using? Can you upload yml file?
NM, I see it in your git repo. I will take a look and see if I can see the issue
skDooley
@skDooley
@EmmaPoliakova, your suspicion is correct, when nbinteract creates the html it is not adding any of the javascript that ipycanvas needs.
EmmaPoliakova
@EmmaPoliakova
Oh well never mind. Thank you for your help. I think I will just try to replace the canvas with normal plots.