![]() ![]() If you are using the classic Jupyter Notebook < 5. ![]() """ surf_g = ParametricGeometry ( func = f, slices = 16, stacks = 16 ) surf = Mesh ( geometry = surf_g, material = MeshLambertMaterial ( color = 'green', side = 'FrontSide' )) surf2 = Mesh ( geometry = surf_g, material = MeshLambertMaterial ( color = 'yellow', side = 'BackSide' )) c = PerspectiveCamera ( position =, up =, children =, intensity = 0.6 )]) scene = Scene ( children = ) Renderer ( camera = c, scene = scene, controls =, width = 400, height = 400 ) Installation If you are using JupyterLab, you will need to install the JupyterLab extension:Ī 3-D visualization library enabling GPU-accelerated computer Ensure your docker command includes the -e JUPYTERENABLELAByes flag to ensure JupyterLab is enabled in. Follow the instructions in the Quick Start Guide to deploy the chosen Docker image. Jupyter nbextension enable -py -sys-prefix k3d If you have Docker installed, you can install and use JupyterLab by selecting one of the many ready-to-run Docker images maintained by the Jupyter Team. Inferno, color_range =, shader = 'mesh', compression_level = 9 ) plot. This can be obtained by installing the Anaconda Distribution (a free Python distribution for data science), or through miniconda (minimal distribution only. line ( l, attribute = a, width = 0.0001, color_map = k3d. plot () for l, a in zip ( lines, lines_attributes ): plot += k3d. load ( 'vertices.npy' ) lines_attributes = np. The Jupyter Notebook interface is a Web-based application for authoring documents that combine live-code with narrative text, equations and visualizations. ![]() fluid dynamics.Įxample import k3d import numpy as np lines = np. Makes it also a fast and performant visualisation tool for HPC computing e.g. Matplotlib, but also to allow interoperation with existing libraries as VTK. The primary aim of K3D-jupyter is to be easy for use as stand alone package like High-level API (surfaces, isosurfaces, voxels, mesh, cloud points, vtk objects, volume renderer,Ĭolormaps, etc). K3D lets you create 3D plots backed by WebGL with ![]()
0 Comments
Leave a Reply. |