How to display Jupyter notebook output in external window -
i new jupyter-notebook, display output of jupyter-notebook cell in separate window.
i able handle mouse event on external window future step.
can please?
thank you.
here code :
import fresnel import math matplotlib import pyplot %matplotlib inline device = fresnel.device() scene = fresnel.scene(device=device) scene.light_direction = (4,3,8) # note: api temporary position = [] in range(6): position.append([2*math.cos(i*2*math.pi / 6), 2*math.sin(i*2*math.pi / 6), 0]) geometry = fresnel.geometry.sphere(scene, position = position, radius=1.0) geometry.material = fresnel.material.material(solid=0.0, color=fresnel.color.linear([1,0.874,0.169])) geometry.outline_width = 0.12 scene.camera = fresnel.camera.fit(scene, view='front', margin=0.2) tracer = fresnel.tracer.direct(device=device, w=300, h=300) out = tracer.render(scene) out[100,100] out
i display object out in separate window.
thank you
Comments
Post a Comment