matplotlib / matplotlib/ipympl

widget.interactive() not showing plot in output

Open
#67 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

I have written a code for a widget which displays a sine wave that is adjustable by three sliders. However, when i execute the code on the first try the plot does not update. See screenshots below:

![screen shot 2018-10-05 at 10 17 05 am](https://user-images.githubusercontent.com/43839082/46549755-eef56580-c887-11e8-9b1b-590595fc499a.png)

![screen shot 2018-10-05 at 10 17 20 am](https://user-images.githubusercontent.com/43839082/46549761-f452b000-c887-11e8-89ca-88f74c424bef.png)

However when i rerun the entire code a second time it generates the plot and updates it as necessary.

What is the reason for this?

Contributor guide

Open the contributing guide

Research direction

The issue includes screenshots of a widget.interactive() sine-wave example, but no code, file, test, or reproducible notebook is provided. Start by recreating the first and second executions in a Jupyter notebook and compare their output behavior. Done means identifying the cause and documenting a reproducible resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, matplotlib
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.