Skip to main content

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:

  1. three-cad-viewer This is the complete CAD viewer written in Javascript with threejs being the only dependency.

  2. 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

  3. 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:

Binder: Latest development version

Examples

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>=8 and notebook>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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cad-viewer-widget 4.3.0
File Size Uploaded Provenance Actions
cad_viewer_widget-4.3.0.tar.gz 829.8 kB Without provenance Details for cad_viewer_widget-4.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cad-viewer-widget 4.3.0
File Interpreter ABI Platform Actions
cad_viewer_widget-4.3.0-py3-none-any.whl Python 3 none any Details for cad_viewer_widget-4.3.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / cad_viewer_widget-4.3.0.tar.gz

Download URL cad_viewer_widget-4.3.0.tar.gz
Size 829.8 kB
Tags Source
SHA-256 checksum
How to use checksums
23cc1b7119d8acaeb72bee23c082da4d854cfb9ca61445654539db42e543f3e8
BLAKE2b-256 checksum
How to use checksums
48f49eacb709be538932646edd55f5af4655c83065daacc747297e667cfa9250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Release files / cad_viewer_widget-4.3.0-py3-none-any.whl

Download URL cad_viewer_widget-4.3.0-py3-none-any.whl
Size 747.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79249f0b34eb9b0c6ea1ed551d99ac62ef2c9329aa05e4e29feb192f73f940f3
BLAKE2b-256 checksum
How to use checksums
df912681261f3c0e895940fe10e039ec3070f458b80fb6764992fad25dacdaf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Security for cad-viewer-widget 4.3.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.

Release history Release notifications | RSS feed

This release

4.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page