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.4.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.4.0
File Size Uploaded Provenance Actions
cad_viewer_widget-4.4.0.tar.gz 842.6 kB Without provenance Details for cad_viewer_widget-4.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.6 MB

Release files / cad_viewer_widget-4.4.0.tar.gz

Download URL cad_viewer_widget-4.4.0.tar.gz
Size 842.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8eda490e588b6c180b5f2660038aa1e200bf36112bca1c95c02bab8cf2bbbc06
BLAKE2b-256 checksum
How to use checksums
ba99e4d0111557b212b033f887d810e85e9eba3879af238ce0417e2cf95f3bc5
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.4.0-py3-none-any.whl

Download URL cad_viewer_widget-4.4.0-py3-none-any.whl
Size 758.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef9df75610434ee839a2e4646fc2e14392e4df1fcdf8328e5032dc5d1c456f1f
BLAKE2b-256 checksum
How to use checksums
ce18e4f1b450e8f11cfc21a3434fdfc524bae1c5638bc06042f1d113c7ec6fc8
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.4.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.4.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