--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/c534ca79-f156-4805-b78b-ffe7d7b0e500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes ... Sorry for double mail
Installing /home/pi/sage/pythreejs/pythreejs/static -> jupyter-threejs Symlinking: /home/pi/sage/local/share/jupyter/nbextensions/jupyter-threejs -> /home/pi/sage/pythreejs/pythreejs/static - Validating: OK To initialize this nbextension in the browser every time the notebook (or other app) loads: jupyter nbextension enable pythreejs --py --sys-prefix Enabling notebook extension jupyter-threejs/extension... - Validating: OK
ball = Mesh(geometry=SphereGeometry(radius=1),
material=LambertMaterial(color='red'),
position=[2, 1, 0])
scene = Scene(children=[ball, AmbientLight(color='#777777')])
c = PerspectiveCamera(position=[0, 5, 5], up=[0, 0, 1],
children=[DirectionalLight(color='white',
position=[3, 5, 1],
intensity=0.5)])
renderer = Renderer(camera=c,
scene=scene,
controls=[OrbitControls(controlling=c)])
display(renderer)
Could not create model:
| Model name | RendererModel |
| Model module | jupyter-threejs |
| Model module version | 0.3.0-alpha.0 |
| Script error for "jupyter-threejs" http://requirejs.org/docs/errors.html#scripterror | |
| Could not create model: |
|---|
| Model name | RendererModel |
| Model module | jupyter-threejs |
| Model module version | * |
| Script error for "jupyter-threejs" http://requirejs.org/docs/errors.html#scripterror |
|---|
conda create --prefix threejstest notebook python ipywidgets pythreejs
source activate ./threejstest
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter nbextension enable --py --sys-prefix pythreejs
source activate ./threejstest
kernelname=`echo $CONDA_DEFAULT_ENV | sed s:/:_:g`
ipython kernel install --name $kernelname --display-name conda-$kernelname --sys-prefix
jupyter notebook
And then I opened the pythreejs example file with the environment kernel and the first example executed just fine.
Looking at the errors you show, it seems that you have widgets installed. It also seems that you have pythreejs installed. I would check to see if the pythreejs extension is enabled:
jupyter nbextension enable --py --sys-prefix pythreejs
And I would also check to see if there are any errors in the javascript console.
Thanks,
Jason
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/ecc0f2a3-702e-4b3c-91b9-3e4f617c71de%40googlegroups.com.
jupyter nbextension enable pythreejs --py --sys-prefix
OK...
(C:\ProgramData\Anaconda3) C:\Users\andrew.mole\Source\Repos\JupyterTest01>conda create --prefix threejstest notebook python ipywidgets pythreejs
Fetching package metadata ...............
PackageNotFoundError: Package missing in current win-64 channels:
- pythreejs
Close matches found; did you mean one of these?
pythreejs: r-threejs
... so I have now added the conda-forge channel to my config and the installation goes OK... continuing with your instructions and converting to Windows...conda create --prefix threejstest notebook python ipywidgets pythreejs source activate ./threejstest jupyter nbextension enable --py --sys-prefix widgetsnbextension jupyter nbextension enable --py --sys-prefix pythreejs activate ./threejstest kernelname=echo %CONDA_DEFAULT_ENV% (should be threejstest) ipython kernel install --name threejstest --display-name conda-threejstest --sys-prefix jupyter notebook