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

Displaying 3D graphics on nbviewer #37

Closed
ubuntuslave opened this issue Feb 1, 2016 · 3 comments
Closed

Displaying 3D graphics on nbviewer #37

ubuntuslave opened this issue Feb 1, 2016 · 3 comments

Comments

@ubuntuslave
Copy link

The displayed output doesn't get rendered on Jupyter .ipynb notebooks on nbviewer

Has anyone achieved this with pythreejs?. The iPython notebook is supposed to be cached and showed as run last.

@dustinmichels
Copy link

dustinmichels commented Dec 8, 2017

On a similar note:

I'm really loving this library but I'm struggling to see how I can use it outside of a notebook. I would love to export a widget into a web page, perhaps within a Flask web app. Does anyone know how this can be done?

I tried using from ipywidgets.embed import embed_minimal_html, as documented here, but it seems that is only for basic widgets.

The jupyter widgets user guide has a section on embedding custom widget libraries, but I don't really understand it. It says:

The widget embedder attempts to fetch the model and view implementation of the custom widget from the npm CDN https://unpkg.com. The URL that is requested for, e.g. the bqplot module name, with the semver range ^2.0.0 is

https://unpkg.com/bqplot@^2.0.0/dist/index.js

which holds the webpack bundle for the bqplot library.

Any insights into rendering pythreejs widgets outside a notebook would be much appreciated!

@vidartf
Copy link
Member

vidartf commented Apr 4, 2018

This should work with the latest release of pythreejs once jupyter-widgets/ipywidgets#2026 (or another solution to the same problem) gets merged and released.

@vidartf
Copy link
Member

vidartf commented Apr 26, 2018

@vidartf vidartf closed this as completed Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants