# How do people handle no-button bug with Interact?

**URL:** <https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 2, 2018, 6:19pm UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834 "2018-08-02T18:19:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [August 2, 2018, 6:19pm UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834/1 "2018-08-02T18:19:11Z")

</div>

Sometimes if you’re using:

- `Jupyter`
- `Interact.jl`
- `Plots.jl`

The GUI buttons will fall off after the plot gets made. This bug is especially annoying if you’re hosting a dash app like:

- [fusion.codes](http://fusion.codes)

I was wondering if people have found ways to work around this issue? I’ve seen it on-and-off for the better half of two years.

---

<div class="post-metadata">

**Author:** ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)\
**Post date:** [August 2, 2018, 6:42pm UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834/2 "2018-08-02T18:42:10Z")

</div>

Is this fixed in Interact master / InteractBulma ? Though I still don’t now if the new Interact works well with Binder, I was having issues displaying things the last time I tried.

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [August 2, 2018, 6:51pm UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834/3 "2018-08-02T18:51:51Z")

</div>

Need to try `InteractBulma` on binder. I didn’t use it before because it was failing to load (prob a webio thing). But it just started working when I tried it again!

**edit:** for clarification. failing to load was a javascript error from the developer console of chrome (i don’t remember the exact failed to connect/load error message)

---

<div class="post-metadata">

**Author:** ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)\
**Post date:** [August 2, 2018, 6:59pm UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834/4 "2018-08-02T18:59:41Z")

</div>

I’m happy that it’s working on Binder now, I may actually go back and play with it.

EDIT: moving the reply to github

---

<div class="post-metadata">

**Author:** ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)\
**Post date:** [August 2, 2018, 7:11pm UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834/5 "2018-08-02T19:11:07Z")

</div>

Btw, if you get InteractBulma to work on Binder, do link it here: I’d be happy to link an example repo with Binder deployment from the docs.

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [August 3, 2018, 1:30am UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834/6 "2018-08-03T01:30:13Z")

</div>

Can’t get InteractBulma to work locally.

 ![17%20PM](https://global.discourse-cdn.com/julialang/original/3X/8/2/8224f9864eb72ca3f7d246e1abac9acdb72fcc1b.png)

1. There are too many items on the flex-row
2. Whenever you toggle valid, it resets nested @manipulate values to their initial values 😕

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [August 3, 2018, 1:36am UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834/7 "2018-08-03T01:36:21Z")

</div>

The way I’m working around the initial issue is with this hack 😿

```julia
function hide_button(cur_index::Int)
    cur_script = """
        <script class="js-toggle">
            \$(".jupyter-widgets").closest(".output_area").eq($(cur_index)).hide()
            \$(".jupyter-widgets").closest(".output_area").eq($(cur_index)).next().hide()
            \$(".js-toggle").parent(".output_subarea").css("padding", "0");
            \$(".js-toggle").remove()
        </script>
    """

    display(HTML(cur_script)) 
end

@manipulate for loading=[true,false]
end

hide_button(0)
return

```

---

<div class="post-metadata">

**Author:** ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)\
**Post date:** [August 10, 2018, 7:51am UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834/8 "2018-08-10T07:51:32Z")

</div>

Will look at this when I’m back from juliacon, can you open an issue at InteractBulma with code to reproduce?
