cad-viewer-widget
A Jupyter widget to view CAD objects
cad-viewer-widgets has its origin in Jupyter-CadQuery, which now
has been split into 3 layers. This repo being the middle layer:
-
three-cad-viewer This is the complete CAD viewer written in Javascript with threejs being the only dependency.
-
cad-view-widget (this repository) A thin layer on top of cad-viewer-widget that wraps the CAD viewer into an ipywidget. The API documentation can be found here
-
Jupyter-CadQuery A CadQuery viewer, collecting and tessellating CadQuery objects, using cad-view-widget to visualize the objects
Click on the "launch binder" icon to start cad-viewer-widget on binder:
Examples
- Tests and demos: Demonstrating the features using the sample tesssellations in ./examples
- Classic OCC Bottle: A real CAD example based on python-occ
Installation
To install use pip:
$ pip install cad_viewer_widget
For a development installation (requires [Node.js](https://nodejs.org >=21.1.0) and Yarn version 1),
$ git clone https://github.com/bernhard-42/cad-viewer-widget.git
$ cd cad-viewer-widget
$ pip install -e .
$ jupyter labextension develop . --overwrite
When actively developing your extension for JupyterLab, run the command:
$ jupyter labextension develop --overwrite cad_viewer_widget
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:
- save your notebook
- restart the kernel
- delete all output cells
- refresh the browser page
Build step
hatch build
Changes
2023-08-14
- Adapt to ocp-tessellate
- Support version 1.8.6 of three-cad-viewer
- Supports
jupyterlab>=4,ipywidgets>=8andnotebook>7 - Dropped support for
notebook < 7.0 - Build process now uses pyproject.toml and hatch
2023-01-03
- Added pyparsing as dependency
- Pinned traitlets to ~5.8
- Upgraded bottle example to occt 7.6.2
Metadata
Release files for cad-viewer-widget 4.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cad_viewer_widget-4.2.0.tar.gz | 797.6 kB | Without provenance | Details for cad_viewer_widget-4.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cad_viewer_widget-4.2.0-py3-none-any.whl | Python 3 | none | any | Details for cad_viewer_widget-4.2.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / cad_viewer_widget-4.2.0.tar.gz
| Download URL | cad_viewer_widget-4.2.0.tar.gz |
|---|---|
| Size | 797.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8085a9b2904fff481d49f216f7e0726e7f0c4fa8136b303739329c8670ed2c08
|
|
BLAKE2b-256 checksum How to use checksums |
492af06fe710fc2fa8ac76ce2ce65d38fd830c7df9f32afbd2571a3a97a6c811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / cad_viewer_widget-4.2.0-py3-none-any.whl
| Download URL | cad_viewer_widget-4.2.0-py3-none-any.whl |
|---|---|
| Size | 719.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c620be7aabbd013d239dfd45fb3a7e053dc3488157976be71a475e880c0e5bd
|
|
BLAKE2b-256 checksum How to use checksums |
fc78cdc379c3122348e246add5067d2552bc5c96fd980db94dd2a85ad5d92c3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for cad-viewer-widget 4.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.