I guess there might be some mistake in my code, but I cannot use plot_vector_field3d and show the result with three.js viewer. The code is
var('x y z')