-
Notifications
You must be signed in to change notification settings - Fork 947
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
Nbviewer not showing ipywidgets, bqplot or plotly plots #2063
Comments
You need to save the widget notebook state to embed that state in the notebook: http://ipywidgets.readthedocs.io/en/latest/embedding.html#save-notebook-widget-state |
This comment has been minimized.
This comment has been minimized.
I checked the page that @jasongrout linked, but it doesn't seem to provide instructions for Jupyter Lab, it mostly mentions the Jupyter Notebook interface, and mentions a menu item "Save widget state" that I don't believe exists in Jupyter Lab. Are there more up-to-date instructions for how to embed the widget state with notebooks so that nbviewer can see them? |
@choldgraf the corresponding menu was added in ipywidgets master. I will be pushing out a release candidate for ipywidgets 7.5 including that. Note that ipywidgets 7.5-rc0 will target jupyterlab 1.0.0-rc0 |
jlab has a setting in the settings menu to save widget state when saving |
sounds good - we should make sure to document this new setting once it's there :-) |
After the new release can i be able to see the plot in nb-viewer ?? |
It's already there if you install the appropriate version of jlab alpha and the widgets extension. |
my thinking there is that it's OK to have an alpha feature not documented, but a >= beta feature should be documented somewhere |
Definitely +1 to documenting it. |
So is this now released? Or is there a particular release we should be waiting for? |
In JLab 1.0, ipywidgets 7.5 (both released), go to the settings menu and you should see the saving widgets state option. |
That worked great! Thanks @jasongrout. Was initially expecting it to add the sidecar |
Hey everyone, I followed the above procedure to save the widget state, but after saving it, when I reopen the notebook in jlab, I get the following error: |
Did you find the solution? I am making plots with Plotly. It worked fine in the local Jupyter notebook but when I used https://nbviewer.jupyter.org/ it did not show plots. |
nbviewer does not render any of my plotly plots and widgets. |
In JupyterLab, it's under the Settings menu. |
What version of JupyterLab do you have, and what version of the |
I believe it should be the latest version. I just installed them today to address the interactive/plotting issue. |
It looks like you don't have the jupyter widgets extension installed: https://ipywidgets.readthedocs.io/en/stable/user_install.html#installing-the-jupyterlab-extension |
Thank you! I now have the option. What exactly is this option supposed to accomplish? The rendering is still the same. I've noticed that the rendering is hit or miss (sometimes a plot gets rendered and other times it does not). How does nbviewer determine what to render? |
Trying to save widgets state to get plotly to show up as suggested here: jupyter-widgets/ipywidgets#2063
Hi everyone!
I've uploaded an ipython notebook in a public repository which I'm trying to view through nbviewer. Please note that this notebook contains loads of interactive widgets (ipywidgets) and plots using bqplot and plotly. Neither these plots nor the ipywidgets show up in the nbviewer.
Any solutions to this issue?
The text was updated successfully, but these errors were encountered: