Skip to content
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

"Save notebook with widgets" doesn't seem to work #1085

Closed
ketch opened this issue Feb 7, 2017 · 10 comments
Closed

"Save notebook with widgets" doesn't seem to work #1085

ketch opened this issue Feb 7, 2017 · 10 comments
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone

Comments

@ketch
Copy link

ketch commented Feb 7, 2017

I have set up a simple notebook with a widget (which works fine locally), clicked the "save with widgets" menu option, uploaded, and viewed on nbviewer. No widget appears in the notebook (although I can see the widget data in the .ipynb file, at the bottom). Here it is:

http://nbviewer.jupyter.org/gist/ketch/36daf198782102a30f318d38fa5ae13a

I am running ipywidgets 6.0.0.beta7 and widgetsnbextension 2.0.0.beta14. I've tried with both Chrome and Safari browsers.

@fperez
Copy link
Contributor

fperez commented Mar 4, 2017

Can you test again? Playing with Randy, I made this gist, which seems to render fine on nbviewer.

If it works for you, we can close.

@ketch
Copy link
Author

ketch commented Mar 4, 2017

After updating everything today, it gives me this:
screen shot 2017-03-04 at 2 10 08 pm

If that is the intended behavior, then you can close this.

In practical terms for widgets controlling plots, it seems that Staticwidget was removed and has not been replaced by anything; correct?

@ketch
Copy link
Author

ketch commented Mar 4, 2017

By the way, the kind of output in that screenshot also appears in various places in the docs. Is that intended?

@SylvainCorlay
Copy link
Member

The output widget used by @interact has no counterpart in the static web contexts. So this is the expected behavior as of now.

@ketch
Copy link
Author

ketch commented Mar 4, 2017

By the way, @fperez when I look at the gist on nbviewer, the print statement in the second widget does not work. Instead there is the same "could not create model" message. Do you see something different?

@SylvainCorlay
Copy link
Member

SylvainCorlay commented Mar 5, 2017

The reason is that output widgets generated by @interact are not yet supported in static web pages.

What you see is the placeholder widget when a widget type is unknown.

@ketch
Copy link
Author

ketch commented Mar 5, 2017

Okay, thank you for the helpful explanations. I'll go ahead and close.

@ketch ketch closed this as completed Mar 5, 2017
@SylvainCorlay
Copy link
Member

It seems that the use of interact + static embedding is something people want. I will go ahead and make an output widget for the static embedder for 6.0.1.

@ketch
Copy link
Author

ketch commented Mar 5, 2017

@SylvainCorlay That would be highly appreciated!

@SylvainCorlay
Copy link
Member

No problem. We can most likely reuse a lot of what we did for jupyterlab there.

@jasongrout jasongrout added this to the 7.0 milestone Aug 4, 2017
@github-actions github-actions bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Feb 11, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

No branches or pull requests

4 participants