-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FigureWidget doesn't update in Jupyter Notebook #1404
Comments
Hi @ubershmekel , For the visual display of the import plotly.graph_objs as go
data = [go.Bar(
x=['giraffes', 'orangutans', 'monkeys'],
y=[20, 14, 23]
)]
layout = {'yaxis': {'range': [0, 25]}}
fig = go.FigureWidget(data, layout)
fig # The following code will update the plot above
fig.data[0].y = (5,10,1)
fig.layout.title = "New title" Does that work for you? |
@jonmmease When I do that - nothing is displayed after the cell completes. |
Ok, then it sounds like there is some kind if installation problem with respect to the Are you using the classic Jupyter Notebook or JupyterLab? If classic, please include the output of
if JupyterLab, please include the output of
What version of ipywidgets is installed? Do you see any errors/messages in the browser console? (https://developers.google.com/web/tools/chrome-devtools/console/) |
There are errors in the console...
|
Thanks for adding the additional info. When you see these errors, are you running the classic notebook or jupyterlab? What version of ipywidgets do you have installed? Also, since it looks like you're using conda. Could you double check that you don't have the |
I believe that means classic notebook. Indeed there are duplicate ipywidgets and plotly between the pip and conda.
|
The server between the two is actually identical. The difference is whether you run
Alright, let's try this
If that doesn't help, try uninstall and reinstalling the notebook extension
|
for me it worked like a charm, thanks a lot! |
This snippet in a Python cell produces a chart, but the chart does not update to get the new title and new data.
Plotly version: 3.5.0
Server Information:
You are using Jupyter notebook.
The version of the notebook server is: 5.7.4
The server is running on this version of Python:
Python 3.7.1 (default, Dec 14 2018, 13:28:58)
[Clang 4.0.1 (tags/RELEASE_401/final)]
Current Kernel Information:
Python 3.7.1 (default, Dec 14 2018, 13:28:58)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.
The text was updated successfully, but these errors were encountered: