bernhard-42 / cadquery-vtk-viewer

Experimental vtk custom Juypter widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cadquery-vtk-viewer

A VTK Viewer for CadQuery in Jupyter

Installation

To install use pip:

$ pip install cadquery_vtk_viewer

For a development installation (requires Node.js and Yarn version 1),

$ git clone https://github.com/bernhard-42/cadquery-vtk-viewer.git
$ cd cadquery-vtk-viewer
$ pip install -e .
$ jupyter nbextension install --py --symlink --overwrite --sys-prefix cadquery_vtk_viewer
$ jupyter nbextension enable --py --sys-prefix cadquery_vtk_viewer

When actively developing your extension for JupyterLab, run the command:

$ jupyter labextension develop --overwrite cadquery_vtk_viewer

Then you need to rebuild the JS when you make a code change:

$ cd js
$ yarn run build

You then need to refresh the JupyterLab page when your javascript changes.

About

Experimental vtk custom Juypter widget

License:MIT License


Languages

Language:JavaScript 64.2%Language:Python 34.8%Language:Shell 1.0%