from pgljupyter import SceneWidget
from openalea.plantgl.all import *
import random
spheres = []
for i in range(255):
x, y, z = [random.choice([-1, 1]) * random.randrange(0, int(255/2)) for i in range(3)]
m = Material(ambient=(x+int(255/2), y+int(255/2), z+int(255/2)), shininess=0.1, diffuse=1)
spheres.append(Shape(Translated(x, y, z, Sphere(random.randrange(1, 20), 20, 20)), m))
SceneWidget(spheres, size_display=(600, 400), size_world=255)
SceneWidget(scenes=[{'id': 'MsIMs5xAoqvsl1Bqea2LxYAAH', 'data': b'x\xda}\x9c\x0b\xbcTU\xbd\xc7w\x08\xf9\x8c{\x…